2026-04-10 11:46:43 +02:00
|
|
|
import type { Metadata } from "next";
|
|
|
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
|
|
|
import "./globals.css";
|
2026-04-10 15:43:07 +02:00
|
|
|
import { Providers } from "./components/Providers";
|
2026-04-10 11:46:43 +02:00
|
|
|
|
|
|
|
|
const geistSans = Geist({
|
|
|
|
|
variable: "--font-geist-sans",
|
|
|
|
|
subsets: ["latin"],
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const geistMono = Geist_Mono({
|
|
|
|
|
variable: "--font-geist-mono",
|
|
|
|
|
subsets: ["latin"],
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
2026-04-10 15:43:07 +02:00
|
|
|
title: "WikiRush - Jeu de navigation Wikipedia",
|
|
|
|
|
description: "Navigue entre les articles Wikipedia pour atteindre la cible en premier !",
|
2026-04-10 22:26:24 +02:00
|
|
|
metadataBase: new URL("https://wikirush.xyz"),
|
|
|
|
|
openGraph: {
|
|
|
|
|
title: "WikiRush",
|
|
|
|
|
description: "Navigue entre les articles Wikipedia pour atteindre la cible en premier !",
|
|
|
|
|
url: "https://wikirush.xyz",
|
|
|
|
|
siteName: "WikiRush",
|
|
|
|
|
locale: "fr_FR",
|
|
|
|
|
type: "website",
|
|
|
|
|
},
|
2026-04-10 11:46:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default function RootLayout({
|
|
|
|
|
children,
|
|
|
|
|
}: Readonly<{
|
|
|
|
|
children: React.ReactNode;
|
|
|
|
|
}>) {
|
|
|
|
|
return (
|
|
|
|
|
<html
|
2026-04-10 15:43:07 +02:00
|
|
|
lang="fr"
|
2026-04-10 11:46:43 +02:00
|
|
|
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
|
|
|
|
>
|
2026-04-10 15:43:07 +02:00
|
|
|
<body className="min-h-full flex flex-col" style={{ background: "#0f0f0f", color: "#f0f0f0" }}>
|
2026-04-10 19:21:52 +02:00
|
|
|
<Providers>
|
|
|
|
|
<main className="flex-1">{children}</main>
|
|
|
|
|
<footer className="border-t border-[#2e2e2e] py-4 px-4 flex items-center justify-center gap-4 text-xs text-[#555]">
|
|
|
|
|
<span>© {new Date().getFullYear()} WikiRush</span>
|
|
|
|
|
<span>·</span>
|
|
|
|
|
<a href="/privacy" className="hover:text-[#888] transition-colors">Politique de confidentialité</a>
|
2026-04-10 22:26:24 +02:00
|
|
|
<span>·</span>
|
|
|
|
|
<a href="/about" className="hover:text-[#888] transition-colors">À propos</a>
|
2026-04-10 19:21:52 +02:00
|
|
|
</footer>
|
|
|
|
|
</Providers>
|
2026-04-10 15:43:07 +02:00
|
|
|
</body>
|
2026-04-10 11:46:43 +02:00
|
|
|
</html>
|
|
|
|
|
);
|
|
|
|
|
}
|