|
1 | | -import type { Metadata } from "next"; |
2 | | -import * as React from "react" |
3 | | -import Link from "next/link" |
4 | | - |
5 | | - |
6 | | - |
7 | | -import "./globals.css"; |
8 | | - |
9 | | - |
10 | | - |
11 | | -// font |
12 | | -import { Inter } from "next/font/google"; |
13 | | -const inter = Inter({ |
14 | | - subsets: ["latin"], |
15 | | - display: "swap", |
16 | | -}); |
17 | | - |
18 | | - |
19 | | - |
20 | | -export default function RootLayout({ |
21 | | - children, |
22 | | -}: Readonly<{ |
23 | | - children: React.ReactNode; |
24 | | -}>) { |
25 | | - return ( |
26 | | - <html lang="en" className={inter.className}> |
27 | | - <body id="#"> |
28 | | - |
29 | | - |
30 | | - |
31 | | - <header> |
32 | | - <div className="fixed right-0 bottom-0 m-6 z-20"> |
33 | | - <Link href="#" className="bg-background text-foreground hover:bg-[#FF668C] rounded-full flex justify-center items-center p-2 select-none"> |
34 | | - <span> |
35 | | - <svg fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" className="size-6"> |
36 | | - <path strokeLinecap="round" strokeLinejoin="round" d="m4.5 18.75 7.5-7.5 7.5 7.5" /> |
37 | | - <path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 7.5-7.5 7.5 7.5" /> |
38 | | - </svg> |
39 | | - </span> |
40 | | - </Link> |
41 | | - </div> |
42 | | - </header> |
43 | | - |
44 | | - |
45 | | - |
46 | | - {children} |
47 | | - |
48 | | - |
49 | | - |
50 | | - <footer className="w-full mb-32 flex flex-col gab-10"> |
51 | | - <div className="w-full pl-6 pr-6 flex flex-row justify-center mt-32"> |
52 | | - <div className="max-w-7xl w-full flex flex-row justify-between"> |
53 | | - <div className="flex-1 flex flex-col justify-start"> |
54 | | - <span className="select-none"> |
55 | | - FreeTacMan © 2025 |
56 | | - </span> |
57 | | - </div> |
58 | | - </div> |
59 | | - </div> |
60 | | - </footer> |
61 | | - |
62 | | - |
63 | | - |
64 | | - </body> |
65 | | - </html> |
66 | | - ); |
67 | | -} |
| 1 | +import type { Metadata } from "next"; |
| 2 | +import * as React from "react"; |
| 3 | +import Link from "next/link"; |
| 4 | + |
| 5 | +import "./globals.css"; |
| 6 | + |
| 7 | +// font |
| 8 | +import { Inter } from "next/font/google"; |
| 9 | +const inter = Inter({ |
| 10 | + subsets: ["latin"], |
| 11 | + display: "swap", |
| 12 | +}); |
| 13 | + |
| 14 | +export default function RootLayout({ |
| 15 | + children, |
| 16 | +}: Readonly<{ |
| 17 | + children: React.ReactNode; |
| 18 | +}>) { |
| 19 | + return ( |
| 20 | + <html lang="en" className={inter.className}> |
| 21 | + <body id="#"> |
| 22 | + <header> |
| 23 | + <div className="fixed right-0 bottom-0 m-6 z-20"> |
| 24 | + <Link |
| 25 | + href="#" |
| 26 | + className="bg-background text-foreground hover:bg-[#FF668C] rounded-full flex justify-center items-center p-2 select-none" |
| 27 | + > |
| 28 | + <span> |
| 29 | + <svg |
| 30 | + fill="none" |
| 31 | + viewBox="0 0 24 24" |
| 32 | + strokeWidth="1.5" |
| 33 | + stroke="currentColor" |
| 34 | + className="size-6" |
| 35 | + > |
| 36 | + <path |
| 37 | + strokeLinecap="round" |
| 38 | + strokeLinejoin="round" |
| 39 | + d="m4.5 18.75 7.5-7.5 7.5 7.5" |
| 40 | + /> |
| 41 | + <path |
| 42 | + strokeLinecap="round" |
| 43 | + strokeLinejoin="round" |
| 44 | + d="m4.5 12.75 7.5-7.5 7.5 7.5" |
| 45 | + /> |
| 46 | + </svg> |
| 47 | + </span> |
| 48 | + </Link> |
| 49 | + </div> |
| 50 | + </header> |
| 51 | + |
| 52 | + {children} |
| 53 | + </body> |
| 54 | + </html> |
| 55 | + ); |
| 56 | +} |
0 commit comments