From 51848341489b4981265cc8039fdd7983d8e3872a Mon Sep 17 00:00:00 2001 From: Kurt Kemple Date: Mon, 2 Apr 2018 20:14:13 -0400 Subject: [PATCH 1/2] fixes banner scrolling on www --- www/src/layouts/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/src/layouts/index.js b/www/src/layouts/index.js index 8a24130247a02..b0c45be0044fe 100644 --- a/www/src/layouts/index.js +++ b/www/src/layouts/index.js @@ -141,7 +141,7 @@ class DefaultLayout extends React.Component { fontFamily: options.headerFontFamily.join(`,`), textAlign: `center`, boxShadow: `inset 0px -3px 2px 0px ${colors.ui.bright}`, - zIndex: `2`, + zIndex: `3`, position: isHomepage || isBlog ? `absolute` : `fixed`, }} > From 40587bd2beb2d0e5bb7cb9d6a163e476e7646460 Mon Sep 17 00:00:00 2001 From: Kurt Kemple Date: Mon, 2 Apr 2018 20:38:44 -0400 Subject: [PATCH 2/2] fix banner positioning --- www/src/layouts/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/src/layouts/index.js b/www/src/layouts/index.js index b0c45be0044fe..682956f0edf2b 100644 --- a/www/src/layouts/index.js +++ b/www/src/layouts/index.js @@ -28,6 +28,7 @@ class DefaultLayout extends React.Component { render() { const isHomepage = this.props.location.pathname == `/` const isBlog = this.props.location.pathname.slice(0, 6) === `/blog/` + const isBlogLanding = this.props.location.pathname === `/blog/` const isDoc = this.props.location.pathname.slice(0, 6) === `/docs/` const isTutorial = this.props.location.pathname.slice(0, 10) === `/tutorial/` @@ -142,7 +143,7 @@ class DefaultLayout extends React.Component { textAlign: `center`, boxShadow: `inset 0px -3px 2px 0px ${colors.ui.bright}`, zIndex: `3`, - position: isHomepage || isBlog ? `absolute` : `fixed`, + position: isHomepage || isBlogLanding ? `absolute` : `fixed`, }} > Live 2-day Gatsby training with Kyle Mathews! Sign up for{" "}