File tree 2 files changed +13
-10
lines changed
2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,18 @@ import { ScrollRestoration } from 'react-router-dom'
3
3
import PageBackground from '../components/PageBackground'
4
4
import Footer from '../partials/Footer'
5
5
import Nav from '../partials/Nav'
6
+ import CenterLayout from './CenterLayout'
6
7
7
8
function Page ( { children } : PropsWithChildren < PageProps > ) {
8
9
return (
9
10
< div className = "flex flex-col items-center justify-center" >
10
11
< PageBackground />
11
12
< Nav />
12
- < div className = "relative z-10 w-full max-w-screen-lg p-8 md:p-16 lg:p-20 " >
13
+ < CenterLayout className = "pt-12 " >
13
14
< div className = "w-full" > { children } </ div >
14
15
< Footer />
15
- </ div >
16
+ </ CenterLayout >
17
+
16
18
< ScrollRestoration />
17
19
</ div >
18
20
)
Original file line number Diff line number Diff line change 1
- import { Github } from "lucide-react" ;
2
- import DarkModeSwitch from "../components/DarkModeSwitch.tsx" ;
3
- import HeaderNavAnchor from "../components/HeaderNavAnchor.tsx" ;
1
+ import { Github } from 'lucide-react'
2
+ import DarkModeSwitch from '../components/DarkModeSwitch.tsx'
3
+ import HeaderNavAnchor from '../components/HeaderNavAnchor.tsx'
4
+ import CenterLayout from '../layouts/CenterLayout.tsx'
4
5
5
6
const Nav = ( ) => {
6
7
return (
7
8
< div className = "sticky top-0 z-20 flex w-full items-stretch justify-center border-b border-b-slate-200/50 bg-white/20 text-zinc-800 shadow-lg backdrop-blur-sm dark:border-b-slate-600/50 dark:bg-slate-800/60 dark:text-zinc-300" >
8
- < div className = "flex w-full max-w-screen-lg items-stretch gap-2 px-8 py-2 md:px-16 lg:px-20 " >
9
+ < CenterLayout className = "flex items-stretch gap-2 py-2 sm:py-3 " >
9
10
< HeaderNavAnchor to = "/" > How To</ HeaderNavAnchor >
10
11
< HeaderNavAnchor to = "/docs" > Docs</ HeaderNavAnchor >
11
12
< HeaderNavAnchor to = "/tech" > Tech</ HeaderNavAnchor >
@@ -18,9 +19,9 @@ const Nav = () => {
18
19
>
19
20
< Github className = "group-hover:animate-bounce-bottom" />
20
21
</ a >
21
- </ div >
22
+ </ CenterLayout >
22
23
</ div >
23
- ) ;
24
- } ;
24
+ )
25
+ }
25
26
26
- export default Nav ;
27
+ export default Nav
You can’t perform that action at this time.
0 commit comments