Skip to content

Commit

Permalink
fix(www): update banner children in layout-with-heading (#9794)
Browse files Browse the repository at this point in the history
  • Loading branch information
greglobinski authored and amberleyromo committed Nov 7, 2018
1 parent 983b970 commit af92d2d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions www/src/components/layout.js
Expand Up @@ -150,6 +150,7 @@ 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}>
{/* !!! If you change the children of Banner remember to do the same in layout/layout-with-heading.js */}
<a
href="https://www.gatsbyjs.com/content-mesh-contentful"
css={{
Expand Down
15 changes: 14 additions & 1 deletion www/src/components/layout/layout-with-heading.js
Expand Up @@ -78,7 +78,20 @@ const LayoutWithHeading = props => {

<StyledSkipNavLink>Skip to main content</StyledSkipNavLink>

<Banner />
<Banner>
<a
href="https://www.gatsbyjs.com/content-mesh-contentful"
css={{
color: `#fff`,
"&:hover": {
color: `#fff`,
},
}}
>
Register now
</a>
{` for “Rise of the Content Mesh: Webcast with Contentful and Gatsby”.`}
</Banner>

<Navigation pathname={props.location.pathname} />

Expand Down

0 comments on commit af92d2d

Please sign in to comment.