From 59748b4d4027c905c88cf2552fb5a7b1bfc18c7e Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Tue, 3 Aug 2021 13:13:48 +0200 Subject: [PATCH] relative top bar on mobile --- components/Shell.tsx | 202 ++++++++++++++++++++++--------------------- 1 file changed, 103 insertions(+), 99 deletions(-) diff --git a/components/Shell.tsx b/components/Shell.tsx index 063feaa8..1fe932e4 100644 --- a/components/Shell.tsx +++ b/components/Shell.tsx @@ -67,117 +67,121 @@ export default function Shell(props) { } return session ? ( -
- {/* Static sidebar for desktop */} -
-
- {/* Sidebar component, swap this element with another sidebar if you like */} -
-
- - - - - - +
+
+ +
-
-
- {/* show top navigation for md and smaller (tablet and phones) */} - - -
-
-
-
-

{props.heading}

-

{props.subtitle}

-
-
{props.CTA}
-
-
{props.children}
- - {/* show bottom navigation for md and smaller (tablet and phones) */} - +
+
+
+

{props.heading}

+

{props.subtitle}

+
+
{props.CTA}
+
+
{props.children}
- {/* add padding to content for mobile navigation*/} -
-
-
+ {/* show bottom navigation for md and smaller (tablet and phones) */} + + + {/* add padding to content for mobile navigation*/} +
+
+ +
- + ) : null; }