hermes-web/app/layout.tsx

39 lines
892 B
TypeScript
Raw Normal View History

2023-12-30 04:00:54 -05:00
import './globals.css'
2023-12-30 05:56:40 -05:00
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'
2023-12-30 04:00:54 -05:00
2023-12-30 05:56:40 -05:00
const font = Open_Sans({ subsets: ['latin'] })
2023-12-30 04:00:54 -05:00
export const metadata: Metadata = {
2023-12-30 05:56:40 -05:00
title: 'Hermes',
description: '',
2023-12-30 04:00:54 -05:00
}
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
2023-12-30 05:56:40 -05:00
<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>
2023-12-30 04:00:54 -05:00
)
}