39 lines
892 B
TypeScript
39 lines
892 B
TypeScript
import './globals.css'
|
|
import type { Metadata } from 'next'
|
|
import { Open_Sans } from 'next/font/google'
|
|
import AuthProvider from './context/auth-provider'
|
|
import { ThemeProvider } from '@/components/providers/theme-provider'
|
|
import { cn } from '@/lib/utils'
|
|
|
|
const font = Open_Sans({ subsets: ['latin'] })
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Hermes',
|
|
description: '',
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<AuthProvider>
|
|
<html lang="en">
|
|
<body className={cn(
|
|
font.className,
|
|
"bg-white dark:bg-[#000000]"
|
|
)}>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme='dark'
|
|
enableSystem={false}
|
|
storageKey='global-web-theme'>
|
|
{children}
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
</AuthProvider>
|
|
)
|
|
}
|