61 lines
1.4 KiB
TypeScript
61 lines
1.4 KiB
TypeScript
import { ThemeProvider } from "@/components/global/ThemeProvider";
|
|
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import "./globals.css";
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-geist-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Gaertan Art Admin",
|
|
description: "Admin page for the gaertan.art website",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body
|
|
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
|
>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="dark-violet"
|
|
themes={[
|
|
'light-zinc',
|
|
'light-red',
|
|
'light-rose',
|
|
'light-orange',
|
|
'light-green',
|
|
'light-blue',
|
|
'light-yellow',
|
|
'light-violet',
|
|
'dark-zinc',
|
|
'dark-red',
|
|
'dark-rose',
|
|
'dark-orange',
|
|
'dark-green',
|
|
'dark-blue',
|
|
'dark-yellow',
|
|
'dark-violet',
|
|
]}
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
{children}
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|