Skip to content

Commit

Permalink
Remove workshop banner now that workshops have finished
Browse files Browse the repository at this point in the history
  • Loading branch information
m-allanson committed May 9, 2018
1 parent c5ae88b commit 7a21217
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 30 deletions.
1 change: 0 additions & 1 deletion www/src/components/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export default ({ pathname }) => {
zIndex: `2`,
left: 0,
right: 0,
top: `calc(2.8rem - 1px)`,
[presets.Tablet]: {
position: isHomepage || isBlog ? `absolute` : `fixed`,
},
Expand Down
30 changes: 3 additions & 27 deletions www/src/layouts/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react"
import Helmet from "react-helmet"
import { OutboundLink } from "gatsby-plugin-google-analytics"

import Navigation from "../components/navigation"
import MobileNavigation from "../components/navigation-mobile"
Expand All @@ -9,7 +8,7 @@ import SearchBar from "../components/searchbar-body"
import tutorialSidebar from "../pages/docs/tutorial-links.yml"
import docsSidebar from "../pages/docs/doc-links.yaml"
import featuresSidebar from "../pages/docs/features-links.yaml"
import { rhythm, options } from "../utils/typography"
import { rhythm } from "../utils/typography"
import presets, { colors } from "../utils/presets"
import hex2rgba from "hex2rgba"
import "../css/prism-coy.css"
Expand Down Expand Up @@ -61,9 +60,9 @@ class DefaultLayout extends React.Component {
width: rhythm(10),
display: `none`,
position: `fixed`,
top: `calc(${presets.headerHeight} + 2.8rem - 1px)`,
top: `calc(${presets.headerHeight} - 1px)`,
overflowY: `auto`,
height: `calc(100vh - ${presets.headerHeight} - 2.8rem + 1px)`,
height: `calc(100vh - ${presets.headerHeight} + 1px)`,
WebkitOverflowScrolling: `touch`,
"::-webkit-scrollbar": {
width: `6px`,
Expand Down Expand Up @@ -133,28 +132,6 @@ class DefaultLayout extends React.Component {
/>
<html lang="en" />
</Helmet>
<div
css={{
width: `100%`,
padding: rhythm(1 / 2),
background: colors.ui.bright,
color: colors.gatsby,
fontFamily: options.headerFontFamily.join(`,`),
textAlign: `center`,
boxShadow: `inset 0px -3px 2px 0px ${colors.ui.bright}`,
zIndex: `3`,
position: isHomepage || isBlogLanding ? `absolute` : `fixed`,
}}
>
Live 2-day Gatsby training with Kyle Mathews! Sign up for{` `}
<OutboundLink
target="_blank"
rel="noopener"
href="https://workshop.me/2018-05-gatsby"
>
NYC in May
</OutboundLink>!
</div>
<Navigation pathname={this.props.location.pathname} />
<div
className={hasSidebar ? `main-body has-sidebar` : `main-body`}
Expand Down Expand Up @@ -225,7 +202,6 @@ class DefaultLayout extends React.Component {

<div
css={{
marginTop: isHomepage || isBlog ? 0 : `calc(2.8rem - 1px)`,
...childrenMobileDisplay,
[presets.Tablet]: {
paddingLeft: leftPadding(10),
Expand Down
1 change: 0 additions & 1 deletion www/src/pages/blog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class BlogPostsIndex extends React.Component {
return (
<div
css={{
marginTop: `calc(2.8rem - 1px)`,
[presets.Tablet]: {
background: colors.ui.whisper,
paddingBottom: rhythm(options.blockMarginBottom * 4),
Expand Down
2 changes: 1 addition & 1 deletion www/src/pages/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Plugins extends Component {
css={{
alignItems: `center`,
display: `flex`,
minHeight: `calc(100vh - (${presets.headerHeight} + 2.8rem - 1px))`,
minHeight: `calc(100vh - ${presets.headerHeight})`,
}}
>
<div
Expand Down

0 comments on commit 7a21217

Please sign in to comment.