Skip to content

Commit

Permalink
feat: ✨ add clerk provider and header component
Browse files Browse the repository at this point in the history
  • Loading branch information
neopromic committed Nov 6, 2024
1 parent d662641 commit 9ef4bfb
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import type { Metadata } from "next";
import localFont from "next/font/local";
import "./globals.css";
import { ClerkProvider } from "@clerk/nextjs";
import { dark } from "@clerk/themes";
import Header from "./_components/Header";

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
Expand All @@ -25,11 +28,18 @@ export default function RootLayout({
}>) {
return (
<html lang="pt-BR">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased dark`}
<ClerkProvider
appearance={{
baseTheme: dark,
}}
>
{children}
</body>
<body
className={`${geistSans.variable} ${geistMono.variable} dark antialiased`}
>
<Header />
{children}
</body>
</ClerkProvider>
</html>
);
}

0 comments on commit 9ef4bfb

Please sign in to comment.