File tree 2 files changed +32
-3
lines changed
2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 1
1
import type { Metadata } from "next" ;
2
2
import { GeistSans } from "geist/font/sans" ;
3
+ import { GeistMono } from "geist/font/mono" ;
3
4
import clsx from "clsx" ;
4
5
import "./globals.css" ;
5
6
import { Toaster } from "sonner" ;
@@ -19,15 +20,39 @@ export default function RootLayout({
19
20
< html lang = "en" >
20
21
< body
21
22
className = { clsx (
22
- GeistSans . className ,
23
- "py-8 px-6 lg:p-10 dark:text-white bg-white dark:bg-black min-h-dvh flex flex-col items-center justify-center antialiased"
23
+ GeistSans . variable ,
24
+ GeistMono . variable ,
25
+ "py-8 px-6 lg:p-10 dark:text-white bg-white dark:bg-black min-h-dvh flex flex-col justify-between antialiased font-sans"
24
26
) }
25
27
>
26
- { children }
28
+ < main className = "flex flex-col items-center justify-center grow" >
29
+ { children }
30
+ </ main >
31
+
32
+ < footer className = "lg:flex flex-row justify-between text-center text-sm dark:text-gray-400 text-gray-600 font-mono" >
33
+ < p >
34
+ < A href = "https://github.com/ai-ng" > ai-ng</ A > /{ " " }
35
+ < A href = "https://nickoates.com" > nick oates</ A >
36
+ </ p >
37
+ < p >
38
+ Built with < A href = "https://groq.com/" > Groq</ A > & { " " }
39
+ < A href = "https://cartesia.ai/" > Cartesia</ A >
40
+ </ p >
41
+ < p >
42
+ < A href = "https://github.com/ai-ng/swift" > source</ A > /{ " " }
43
+ < A href = "" > ▲ deploy</ A >
44
+ </ p >
45
+ </ footer >
27
46
28
47
< Toaster richColors theme = "system" />
29
48
< Analytics />
30
49
</ body >
31
50
</ html >
32
51
) ;
33
52
}
53
+
54
+ function A ( props : any ) {
55
+ return (
56
+ < a { ...props } className = "text-black dark:text-white hover:underline" />
57
+ ) ;
58
+ }
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ const config: Config = {
11
11
300 : "#D1D1D1" ,
12
12
} ,
13
13
} ,
14
+ fontFamily : {
15
+ sans : [ "var(--font-geist-sans)" ] ,
16
+ mono : [ "var(--font-geist-mono)" ] ,
17
+ } ,
14
18
} ,
15
19
} ,
16
20
future : {
You can’t perform that action at this time.
0 commit comments