Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(www): add webinar link/banner #9767

Merged
merged 4 commits into from
Nov 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/docs/migrating-from-v1-to-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: Migrating from v1 to v2
---

Looking for the v1 docs? [Find them here](https://v1.gatsbyjs.org/).

> This document is a work in progress. Have you upgraded your site and run into something that's not covered here? [Add your changes on GitHub](https://github.com/gatsbyjs/gatsby/edit/master/docs/docs/migrating-from-v1-to-v2.md)!

## Introduction
Expand Down
21 changes: 2 additions & 19 deletions www/src/components/banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,12 @@ const Link = styled(`a`)`

const Banner = ({ children, background }) => (
<BannerContainer background={background} className="banner">
<InnerContainer>
{children ? (
<Content>{children}</Content>
) : (
<Content>
These are the docs for v2.
{` `}
<Link href="https://v1.gatsbyjs.org/">
View the v1 docs
<span>
{` `}
instead
</span>
</Link>
.
</Content>
)}
</InnerContainer>
<InnerContainer>{children && <Content>{children}</Content>}</InnerContainer>
</BannerContainer>
)

Banner.propTypes = {
children: PropTypes.node,
children: PropTypes.node.isRequired,
background: PropTypes.any,
}

Expand Down
22 changes: 6 additions & 16 deletions www/src/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,28 +150,18 @@ class DefaultLayout extends React.Component {
<SiteMetadata pathname={this.props.location.pathname} />
<SkipNavLink css={styles.skipLink}>Skip to main content</SkipNavLink>
<Banner background={isHomepage ? `#402060` : false}>
These are the docs for v2.
{` `}
<a
href="https://v1.gatsbyjs.org/"
href="https://www.gatsbyjs.com/content-mesh-contentful"
css={{
color: `#fff`,
"&:hover": {
color: `#fff`,
},
}}
>
View the v1 docs
<span
css={{
display: `none`,
[presets.Mobile]: {
display: `inline`,
},
}}
>
{` `}
instead
</span>
Register now
</a>
.
{` for “Rise of the Content Mesh: Webcast with Contentful and Gatsby”.`}
</Banner>
<Navigation pathname={this.props.location.pathname} />
<div
Expand Down