46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
import type { Metadata, Viewport } from "next";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import { SerwistProvider } from "@serwist/next/react";
|
|
import { Footer } from "@/components/ui/Footer";
|
|
import "./globals.css";
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-geist-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "CV-Maker — Créez votre CV",
|
|
description:
|
|
"Créez votre CV en Markdown avec aperçu temps réel au format A4, 100 % local dans votre navigateur.",
|
|
};
|
|
|
|
export const viewport: Viewport = {
|
|
themeColor: "#2563eb",
|
|
};
|
|
|
|
export default function RootLayout({ children }: LayoutProps<"/">) {
|
|
return (
|
|
<html
|
|
lang="fr"
|
|
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
|
>
|
|
<body className="min-h-full flex flex-col bg-paper text-ink">
|
|
<SerwistProvider
|
|
swUrl="/sw.js"
|
|
disable={process.env.NODE_ENV === "development"}
|
|
>
|
|
<div className="flex flex-1 flex-col">
|
|
{children}
|
|
<Footer />
|
|
</div>
|
|
</SerwistProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
} |