init
This commit is contained in:
41
app/layout.tsx
Normal file
41
app/layout.tsx
Normal file
@@ -0,0 +1,41 @@
|
||||
import type { Metadata } from "next";
|
||||
import { GeistSans } from "geist/font/sans";
|
||||
import { GeistMono } from "geist/font/mono";
|
||||
import "./globals.css";
|
||||
import { ThemeProvider } from "@/components/layout/theme-provider";
|
||||
import { Toaster } from "@/components/ui/sonner";
|
||||
import { UserProvider } from "@/hooks/use-user-context";
|
||||
import { NavigationWrapper } from "@/components/layout/navigation-wrapper";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "PeakSkills - Auto-évaluation de compétences",
|
||||
description:
|
||||
"Plateforme d'auto-évaluation de compétences techniques pour les équipes",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body
|
||||
className={`${GeistSans.variable} ${GeistMono.variable} antialiased`}
|
||||
>
|
||||
<ThemeProvider
|
||||
attribute="class"
|
||||
defaultTheme="system"
|
||||
enableSystem
|
||||
disableTransitionOnChange
|
||||
>
|
||||
<UserProvider>
|
||||
<NavigationWrapper />
|
||||
<main className="min-h-screen">{children}</main>
|
||||
<Toaster />
|
||||
</UserProvider>
|
||||
</ThemeProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user