From b427c1f38a11763a1bbbdddaf04239083137a526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Leszczyk?= Date: Sun, 26 Jun 2022 11:27:32 +0200 Subject: [PATCH] Fix text in sticky header overlapping with content below --- src/components/Layout/Layout.js | 4 ++-- src/components/Layout/Section.js | 4 +--- src/components/Navigation/Navigation.js | 6 +++++- src/components/NewsHeader/NewsHeader.js | 2 +- src/pages/index.js | 2 +- src/pages/privacy.js | 2 +- src/pages/terms.js | 2 +- 7 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/Layout/Layout.js b/src/components/Layout/Layout.js index 9f6b8ab..93218e2 100644 --- a/src/components/Layout/Layout.js +++ b/src/components/Layout/Layout.js @@ -32,7 +32,7 @@ const FixedHeader = ({ uri }) => { }, [setMode, mode, y, uri]); return ( -
+
{mode && }
@@ -51,7 +51,7 @@ const Layout = ({ children, uri }) => { // `); return ( -
+
{children}
diff --git a/src/components/Layout/Section.js b/src/components/Layout/Section.js index 766c60c..5785d6f 100644 --- a/src/components/Layout/Section.js +++ b/src/components/Layout/Section.js @@ -6,7 +6,6 @@ export const Section = ({ children, className, width = "content", - first = false, marginBottom = true, marginTop = true, ...props @@ -15,8 +14,7 @@ export const Section = ({ className={classnames( "px-8", { - "pt-32 desktop:pt-48": marginTop && first, // + navigation offset => pt-32 desktop:pt-48 - "pt-12 desktop:pt-24": marginTop && !first, + "pt-12 desktop:pt-24": marginTop, "pb-12 desktop:pb-24": marginBottom, }, className diff --git a/src/components/Navigation/Navigation.js b/src/components/Navigation/Navigation.js index 1e722ba..38ddd55 100644 --- a/src/components/Navigation/Navigation.js +++ b/src/components/Navigation/Navigation.js @@ -41,7 +41,11 @@ const Navigation = ({ mode, uri }) => {