Files
leonm 1542a991b9
CI / 🔍 Lint & Type Check (push) Successful in 2m11s
CI / 🐳 Build & Push Image (push) Successful in 1m16s
feat: docs
2026-07-17 16:15:54 +02:00

98 lines
2.9 KiB
TypeScript

import type { Metadata } from "next";
import { Fredoka, Geist, Geist_Mono, Press_Start_2P, VT323 } from "next/font/google";
import { RootProvider } from "fumadocs-ui/provider/next";
import "./globals.css";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
const fredoka = Fredoka({
variable: "--font-fredoka",
subsets: ["latin"],
});
const pressStart = Press_Start_2P({
variable: "--font-pixel",
subsets: ["latin"],
weight: "400",
});
const vt323 = VT323({
variable: "--font-retro",
subsets: ["latin"],
weight: "400",
});
const frenchTranslations = {
"Back to Home(404 page)": "Retour à l'accueil",
"Close Search(search dialog)(aria-label)": "Fermer la recherche",
"Close Sidebar(sidebar)(aria-label)": "Fermer la navigation",
"Collapse Sidebar(sidebar)(aria-label)": "Réduire la navigation",
"Copied Text(code block)(aria-label)": "Texte copié",
"Copy Anchor Link(heading anchor)(aria-label)": "Copier le lien",
"Copy Text(code block)(aria-label)": "Copier le texte",
"Next Page(pagination)": "Page suivante",
"No Headings(table of contents)": "Aucun titre",
"No results found(search dialog)": "Aucun résultat trouvé",
"On this page(table of contents)": "Sur cette page",
"Open Search(search trigger)(aria-label)": "Ouvrir la recherche",
"Open Sidebar(sidebar)(aria-label)": "Ouvrir la navigation",
"Page Not Found(404 page)": "Page introuvable",
"Previous Page(pagination)": "Page précédente",
"Search(search dialog)": "Rechercher dans la documentation",
"Search(search trigger)": "Rechercher",
"Table of Contents(inline table of contents)": "Sommaire",
"The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.(404 page)":
"La page demandée n'existe pas ou a été déplacée.",
"Toggle Menu(mobile menu)(aria-label)": "Ouvrir le menu",
};
export const metadata: Metadata = {
title: "Le serveur de Leon",
description: "Streaming, Minecraft et services privés de Leon.",
robots: {
index: false,
follow: false,
nocache: true,
googleBot: {
index: false,
follow: false,
noimageindex: true,
"max-image-preview": "none",
"max-snippet": 0,
"max-video-preview": 0,
},
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html
lang="fr"
data-scroll-behavior="smooth"
suppressHydrationWarning
className={`dark ${geistSans.variable} ${geistMono.variable} ${fredoka.variable} ${pressStart.variable} ${vt323.variable} h-full antialiased`}
>
<body className="min-h-full flex flex-col">
<RootProvider
theme={{ enabled: false }}
i18n={{ locale: "fr", translations: frenchTranslations }}
>
{children}
</RootProvider>
</body>
</html>
);
}