|
| 1 | +import Background from "@/components/ui/background"; |
1 | 2 | import { Footer } from "@/app/footer"; |
2 | 3 | import { Header } from "@/app/header"; |
3 | | -import { |
4 | | - geist, |
5 | | - manrope, |
6 | | - montserrat, |
7 | | - poppins, |
8 | | - unbounded, |
9 | | - work, |
10 | | -} from "@/lib/fonts"; |
11 | | - |
| 4 | +import { geist } from "@/lib/fonts"; |
12 | 5 | import { cn } from "@/lib/utils"; |
13 | 6 | import { Providers } from "@/providers"; |
14 | 7 | import type { Metadata } from "next"; |
15 | 8 | import { Toaster } from "sonner"; |
16 | 9 | import "./globals.css"; |
17 | 10 |
|
18 | 11 | export const metadata: Metadata = { |
19 | | - title: "Universal Hybrid Substrate Faucet", |
20 | | - description: "A one-stop testnet faucet for all the substrate chains.", |
| 12 | + title: "Universal Hybrid Substrate Faucet", |
| 13 | + description: "A one-stop testnet faucet for all the substrate chains.", |
21 | 14 | }; |
22 | 15 |
|
23 | 16 | export default function RootLayout({ |
24 | | - children, |
25 | | -}: Readonly<{ |
26 | | - children: React.ReactNode; |
27 | | -}>) { |
28 | | - return ( |
29 | | - <html lang="en"> |
30 | | - <body |
31 | | - className={cn( |
32 | | - geist.variable, |
33 | | - manrope.variable, |
34 | | - montserrat.variable, |
35 | | - poppins.variable, |
36 | | - unbounded.variable, |
37 | | - work.variable, |
38 | | - "antialiased bg-background text-foreground" |
39 | | - )} |
40 | | - > |
41 | | - <Providers> |
42 | | - <div className="flex flex-col place-items-center min-h-dvh w-full px-2 pt-1 pb-2"> |
43 | | - <Header /> |
44 | | - <main className="flex flex-col flex-1 items-center justify-items-center font-geist-sans w-full p-2 text-center gap-2"> |
45 | | - {children} |
46 | | - </main> |
47 | | - <Footer /> |
48 | | - </div> |
49 | | - <Toaster richColors theme="dark" position="bottom-right" /> |
50 | | - </Providers> |
51 | | - </body> |
52 | | - </html> |
53 | | - ); |
| 17 | + children, |
| 18 | +}: { |
| 19 | + children: React.ReactNode; |
| 20 | +}) { |
| 21 | + return ( |
| 22 | + <html lang="en"> |
| 23 | + <body |
| 24 | + className={cn( |
| 25 | + geist.variable, |
| 26 | + "antialiased bg-background text-foreground" |
| 27 | + )} |
| 28 | + > |
| 29 | + <Providers> |
| 30 | + <Background /> |
| 31 | + <div className="relative z-10 flex flex-col min-h-dvh w-full px-2 pt-1 pb-2 pointer-events-none"> |
| 32 | + <div className="w-full pointer-events-auto"> |
| 33 | + <Header /> |
| 34 | + </div> |
| 35 | + <main className="flex flex-col flex-1 items-center justify-center font-geist-sans w-full p-2 text-center gap-2"> |
| 36 | + {children} |
| 37 | + </main> |
| 38 | + <div className="w-full pointer-events-auto"> |
| 39 | + <Footer /> |
| 40 | + </div> |
| 41 | + </div> |
| 42 | + <Toaster richColors theme="dark" position="bottom-right" /> |
| 43 | + </Providers> |
| 44 | + </body> |
| 45 | + </html> |
| 46 | + ); |
54 | 47 | } |
0 commit comments