File tree 4 files changed +34
-18
lines changed
4 files changed +34
-18
lines changed Original file line number Diff line number Diff line change @@ -100,15 +100,13 @@ export default function RootLayout({ children }: { children: React.ReactNode })
100
100
< body className = "min-h-screen bg-white pl-[calc(100vw-100%)] text-black antialiased dark:bg-gray-950 dark:text-white" >
101
101
< ThemeProviders >
102
102
{ /* <Analytics analyticsConfig={siteMetadata.analytics as AnalyticsConfig} /> */ }
103
- < div className = "flex min-h-screen flex-col" >
104
- < SectionContainer >
105
- < SearchProvider searchConfig = { siteMetadata . search as SearchConfig } >
106
- < Header />
107
- < main className = "mb-12 flex-grow" > { children } </ main >
108
- </ SearchProvider >
109
- </ SectionContainer >
110
- < Footer />
111
- </ div >
103
+ < SectionContainer >
104
+ < SearchProvider searchConfig = { siteMetadata . search as SearchConfig } >
105
+ < Header />
106
+ < main className = "mb-12 flex-grow" > { children } </ main >
107
+ </ SearchProvider >
108
+ </ SectionContainer >
109
+ < Footer />
112
110
</ ThemeProviders >
113
111
</ body >
114
112
</ html >
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import { PowdrLogo } from './powdrLogo'
3
3
4
4
export default function Footer ( ) {
5
5
return (
6
- < footer className = "mt-auto bg-[#1e1b4b] py-8 text-white" >
7
- < div className = "container mx-auto flex flex-col items-center" >
6
+ < footer className = "mt-auto bg-[#1e1b4b] px-8 py-8 text-white" >
7
+ < div className = "container mx-auto flex flex-col items-center text-center " >
8
8
< PowdrLogo className = "mb-4 h-24 w-auto text-white" />
9
9
< p className = "mb-2 text-sm" >
10
10
© powdr labs GmbH { new Date ( ) . getFullYear ( ) } -{ new Date ( ) . getFullYear ( ) + 1 } . All Rights
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ const Header = () => {
32
32
) ) }
33
33
</ div >
34
34
< SearchButton />
35
- < ThemeSwitch />
36
35
< MobileNav />
36
+ < ThemeSwitch />
37
37
</ div >
38
38
</ header >
39
39
)
Original file line number Diff line number Diff line change @@ -27,8 +27,25 @@ const MobileNav = () => {
27
27
} )
28
28
29
29
return (
30
- < >
31
- < button aria-label = "Toggle Menu" onClick = { onToggleNav } className = "sm:hidden" >
30
+ < div className = "sm:hidden" >
31
+ < nav
32
+ // ref={navRef}
33
+ // className="mt-8 flex h-full basis-0 flex-col items-start overflow-y-auto pl-12 pt-2 text-left"
34
+ >
35
+ { headerNavLinks . map ( ( link ) =>
36
+ link . title === 'Home' ? null : (
37
+ < Link
38
+ key = { link . title }
39
+ href = { link . href }
40
+ className = "mb-4 py-2 text-xl font-bold tracking-widest text-gray-900 outline outline-0 hover:text-primary-500 dark:text-gray-100 dark:hover:text-primary-400"
41
+ onClick = { onToggleNav }
42
+ >
43
+ { link . title }
44
+ </ Link >
45
+ )
46
+ ) }
47
+ </ nav >
48
+ { /* <button aria-label="Toggle Menu" onClick={onToggleNav} className="sm:hidden">
32
49
<svg
33
50
xmlns="http://www.w3.org/2000/svg"
34
51
viewBox="0 0 20 20"
@@ -41,8 +58,9 @@ const MobileNav = () => {
41
58
clipRule="evenodd"
42
59
/>
43
60
</svg>
44
- </ button >
45
- < Transition appear show = { navShow } as = { Fragment } unmount = { false } >
61
+ </button> */ }
62
+
63
+ { /* <Transition appear show={navShow} as={Fragment} unmount={false}>
46
64
<Dialog as="div" onClose={onToggleNav} unmount={false}>
47
65
<Transition.Child
48
66
as={Fragment}
@@ -100,8 +118,8 @@ const MobileNav = () => {
100
118
</Dialog.Panel>
101
119
</Transition.Child>
102
120
</Dialog>
103
- </ Transition >
104
- </ >
121
+ </Transition> */ }
122
+ </ div >
105
123
)
106
124
}
107
125
You can’t perform that action at this time.
0 commit comments