import type { Metadata, Viewport } from "next"; import { EB_Garamond, Figtree } from "next/font/google"; import { site } from "@/lib/content"; import { siteUrl } from "@/lib/env"; import { Header } from "@/components/layout/Header"; import { Footer } from "@/components/layout/Footer"; import { CookieConsent } from "@/components/consent/CookieConsent"; import "./globals.css"; const garamond = EB_Garamond({ variable: "--font-eb-garamond", subsets: ["latin", "latin-ext"], weight: ["400", "500", "600"], style: ["normal", "italic"], display: "swap", }); const figtree = Figtree({ variable: "--font-figtree", subsets: ["latin", "latin-ext"], weight: ["400", "500", "600"], display: "swap", }); export const metadata: Metadata = { metadataBase: new URL(siteUrl(site.seo.siteUrl)), title: { default: site.seo.defaultTitle, template: site.seo.titleTemplate }, description: site.seo.defaultDescription, applicationName: site.brand.name, openGraph: { type: "website", locale: site.seo.locale, siteName: site.brand.name, title: site.seo.defaultTitle, description: site.seo.defaultDescription, }, twitter: { card: "summary_large_image" }, robots: { index: true, follow: true }, }; export const viewport: Viewport = { themeColor: "#f5eee4", width: "device-width", initialScale: 1, }; export default function RootLayout({ children }: { children: React.ReactNode }) { return ( Aller au contenu
{children}