Skip to content

Commit 36239bb

Browse files
committed
Footer
1 parent 66b0e59 commit 36239bb

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

Diff for: app/layout.tsx

+28-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Metadata } from "next";
22
import { GeistSans } from "geist/font/sans";
3+
import { GeistMono } from "geist/font/mono";
34
import clsx from "clsx";
45
import "./globals.css";
56
import { Toaster } from "sonner";
@@ -19,15 +20,39 @@ export default function RootLayout({
1920
<html lang="en">
2021
<body
2122
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"
2426
)}
2527
>
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>
2746

2847
<Toaster richColors theme="system" />
2948
<Analytics />
3049
</body>
3150
</html>
3251
);
3352
}
53+
54+
function A(props: any) {
55+
return (
56+
<a {...props} className="text-black dark:text-white hover:underline" />
57+
);
58+
}

Diff for: tailwind.config.ts

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ const config: Config = {
1111
300: "#D1D1D1",
1212
},
1313
},
14+
fontFamily: {
15+
sans: ["var(--font-geist-sans)"],
16+
mono: ["var(--font-geist-mono)"],
17+
},
1418
},
1519
},
1620
future: {

0 commit comments

Comments
 (0)