57 lines
1.3 KiB
TypeScript
57 lines
1.3 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import "@/app/globals.css";
|
|
import SWRLayout from "@/components/layouts/swr-layout";
|
|
import { ThemeProvider } from "@/components/ThemeProvider";
|
|
import { Toaster } from "@/components/ui/toaster";
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-geist-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Latosa Escrima France",
|
|
description: "Site officiel de Latosa Escrima France.",
|
|
openGraph: {
|
|
title: "Latosa Escrima France",
|
|
description: "Site officiel de Latosa Escrima France.",
|
|
type: "website",
|
|
countryName: "France",
|
|
},
|
|
applicationName: "Latosa Escrima France",
|
|
authors: {
|
|
name: "Wing Tsun Picardie",
|
|
url: "https://www.youtube.com/@WingTsunPicardie",
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="fr" suppressHydrationWarning>
|
|
<body
|
|
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
|
>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="dark"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<SWRLayout>{children}</SWRLayout>
|
|
<Toaster />
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|