frontend initiatewith shadcn uis
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { Geist_Mono, Outfit, Nunito_Sans } from "next/font/google"
|
||||
|
||||
import "./globals.css"
|
||||
import { ThemeProvider } from "@/components/theme-provider"
|
||||
import { AuthProvider } from "@/contexts/auth-context"
|
||||
import { TooltipProvider } from "@/components/ui/tooltip"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
const nunitoSansHeading = Nunito_Sans({ subsets: ['latin'], variable: '--font-heading' })
|
||||
const outfit = Outfit({ subsets: ['latin'], variable: '--font-sans' })
|
||||
const fontMono = Geist_Mono({ subsets: ['latin'], variable: '--font-mono' })
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode
|
||||
}>) {
|
||||
return (
|
||||
<html
|
||||
lang="en"
|
||||
suppressHydrationWarning
|
||||
className={cn('antialiased', fontMono.variable, 'font-sans', outfit.variable, nunitoSansHeading.variable)}
|
||||
>
|
||||
<body>
|
||||
<ThemeProvider>
|
||||
<AuthProvider>
|
||||
<TooltipProvider>
|
||||
{children}
|
||||
</TooltipProvider>
|
||||
</AuthProvider>
|
||||
</ThemeProvider>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user