62 lines
1.8 KiB
TypeScript
62 lines
1.8 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Inter, Merriweather, Lora, EB_Garamond, Playfair_Display } from "next/font/google";
|
|
import Script from "next/script";
|
|
import { AuthProvider } from "@/providers/AuthProvider";
|
|
import { LanguageProvider } from "@/providers/LanguageProvider";
|
|
import { CookieBanner } from "@/components/CookieBanner";
|
|
import { Analytics } from "@/components/Analytics";
|
|
import "./globals.css";
|
|
|
|
const inter = Inter({
|
|
subsets: ["latin"],
|
|
variable: "--font-sans",
|
|
});
|
|
|
|
const merriweather = Merriweather({
|
|
subsets: ["latin"],
|
|
weight: ["300", "400", "700", "900"],
|
|
variable: "--font-serif",
|
|
});
|
|
|
|
const lora = Lora({
|
|
subsets: ["latin"],
|
|
variable: "--font-lora",
|
|
});
|
|
|
|
const garamond = EB_Garamond({
|
|
subsets: ["latin"],
|
|
variable: "--font-garamond",
|
|
});
|
|
|
|
const playfair = Playfair_Display({
|
|
subsets: ["latin"],
|
|
variable: "--font-playfair",
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Pluume - Éditeur Intelligent",
|
|
description: "Votre assistant éditorial intelligent propulsé par l'IA pour écrire votre prochain roman.",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="en">
|
|
<head>
|
|
</head>
|
|
<body className={`${inter.variable} ${merriweather.variable} ${lora.variable} ${garamond.variable} ${playfair.variable} font-sans h-screen overflow-x-hidden overflow-y-auto antialiased bg-theme-bg text-theme-text transition-colors duration-300`}>
|
|
<AuthProvider>
|
|
<LanguageProvider>
|
|
<Analytics />
|
|
{children}
|
|
<CookieBanner />
|
|
</LanguageProvider>
|
|
</AuthProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|