aboutsummaryrefslogtreecommitdiff
path: root/app/layout.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/layout.tsx')
-rw-r--r--app/layout.tsx41
1 files changed, 41 insertions, 0 deletions
diff --git a/app/layout.tsx b/app/layout.tsx
new file mode 100644
index 0000000..c930192
--- /dev/null
+++ b/app/layout.tsx
@@ -0,0 +1,41 @@
+import type { Metadata } from "next";
+import { Geist, Geist_Mono } from "next/font/google";
+import { GlowOrbs } from "@/components/glow-orbs";
+import { SiteFooter } from "@/components/site-footer";
+import { SiteHeader } from "@/components/site-header";
+import { company } from "@/lib/content";
+import "./globals.css";
+
+const geistSans = Geist({
+ variable: "--font-geist-sans",
+ subsets: ["latin"],
+});
+
+const geistMono = Geist_Mono({
+ variable: "--font-geist-mono",
+ subsets: ["latin"],
+});
+
+export const metadata: Metadata = {
+ title: {
+ default: `${company.name} — ${company.tagline}`,
+ template: `%s · ${company.name}`,
+ },
+ description: company.description,
+};
+
+export default function RootLayout({ children }: LayoutProps<"/">) {
+ return (
+ <html
+ lang="en"
+ className={`dark ${geistSans.variable} ${geistMono.variable} h-full antialiased`}
+ >
+ <body className="relative flex min-h-full flex-col overflow-x-hidden bg-background text-foreground">
+ <GlowOrbs />
+ <SiteHeader />
+ <main className="relative flex-1">{children}</main>
+ <SiteFooter />
+ </body>
+ </html>
+ );
+}