mirror of
https://github.com/dylanbenzi/yellowbird.git
synced 2026-11-27 01:07:01 +00:00
53 lines
1.2 KiB
TypeScript
53 lines
1.2 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Red_Hat_Display } from "next/font/google";
|
|
import "./globals.css";
|
|
import Navbar from "@/components/nav/Navbar";
|
|
import { cn } from "@/lib/utils";
|
|
import { ThemeProvider } from "@/components/theme/theme-providers";
|
|
import Sidebar from "@/components/nav/Sidebar";
|
|
import { ClerkProvider } from "@clerk/nextjs";
|
|
import { dark } from "@clerk/themes";
|
|
|
|
const red_hat = Red_Hat_Display({ subsets: ["latin"] });
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Create Next App",
|
|
description: "Generated by create next app",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<ClerkProvider
|
|
appearance={{
|
|
baseTheme: dark,
|
|
}}
|
|
>
|
|
<html lang="en">
|
|
<body
|
|
className={cn(
|
|
"h-screen antialiased bg-background flex items-start justify-between",
|
|
red_hat.className
|
|
)}
|
|
>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="dark"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<Sidebar />
|
|
<main className="w-full h-full overflow-y-scroll">
|
|
<Navbar />
|
|
<div className="w-full h-full p-4">{children}</div>
|
|
</main>
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
</ClerkProvider>
|
|
);
|
|
}
|