mirror of
https://github.com/soconnor0919/personal-website.git
synced 2025-12-15 16:24:44 -05:00
40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
import { inter } from "~/lib/fonts"
|
|
import "~/styles/globals.css"
|
|
import { Navigation } from "~/components/Navigation"
|
|
import { Sidebar } from "~/components/Sidebar"
|
|
import { ThemeProvider } from 'next-themes'
|
|
import { Footer } from "~/components/Footer"
|
|
import { Analytics } from "@vercel/analytics/react"
|
|
import { SpeedInsights } from "@vercel/speed-insights/next"
|
|
|
|
export const metadata = {
|
|
title: "Sean O'Connor",
|
|
description: "Personal website and portfolio",
|
|
icons: [{ rel: "icon", url: "/favicon.ico" }],
|
|
}
|
|
|
|
export default function RootLayout({ children }: React.PropsWithChildren) {
|
|
return (
|
|
<html lang="en" className={inter.className}>
|
|
<body className="font-sans bg-background text-foreground min-h-screen flex flex-col">
|
|
<Analytics />
|
|
<SpeedInsights />
|
|
<Navigation />
|
|
<div className="flex-1">
|
|
<div className="max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
<div className="flex flex-col lg:flex-row lg:gap-12">
|
|
<aside className="lg:sticky lg:top-16 lg:h-[calc(100vh-4rem)] overflow-y-auto">
|
|
<Sidebar />
|
|
</aside>
|
|
<main className="flex-1 overflow-y-auto py-8">
|
|
{children}
|
|
</main>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<Footer />
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|