Files
latosa-escrima/frontend/app/layout.tsx

59 lines
1.4 KiB
TypeScript

import "@/lib/utils";
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";
import { SITE_NAME } from "@/lib/constants";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: `${SITE_NAME} France`,
description: `Site officiel de ${SITE_NAME} France.`,
openGraph: {
title: `${SITE_NAME} France`,
description: `Site officiel de ${SITE_NAME} France.`,
type: "website",
countryName: "France",
},
applicationName: `${SITE_NAME} 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>
);
}