|
Last change
on this file since d7deae5 was d7deae5, checked in by Stefan-Saveski <stefansaveski19@…>, 7 months ago |
|
Make light default
|
-
Property mode
set to
100644
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | "use client";
|
|---|
| 2 | import { Geist, Geist_Mono } from "next/font/google";
|
|---|
| 3 | import "./globals.css";
|
|---|
| 4 | import '@fortawesome/fontawesome-svg-core/styles.css';
|
|---|
| 5 | import { config } from '@fortawesome/fontawesome-svg-core';
|
|---|
| 6 | import { I18nextProvider } from 'react-i18next';
|
|---|
| 7 | import i18n from '../i18n';
|
|---|
| 8 | import { ThemeProvider } from '../components/theme-provider';
|
|---|
| 9 | import { ThemeToggle } from '../components/theme-toggle';
|
|---|
| 10 |
|
|---|
| 11 | config.autoAddCss = false;
|
|---|
| 12 |
|
|---|
| 13 | const geistSans = Geist({
|
|---|
| 14 | variable: "--font-geist-sans",
|
|---|
| 15 | subsets: ["latin"],
|
|---|
| 16 | });
|
|---|
| 17 |
|
|---|
| 18 | const geistMono = Geist_Mono({
|
|---|
| 19 | variable: "--font-geist-mono",
|
|---|
| 20 | subsets: ["latin"],
|
|---|
| 21 | });
|
|---|
| 22 |
|
|---|
| 23 | export default function RootLayout({
|
|---|
| 24 | children,
|
|---|
| 25 | }: Readonly<{
|
|---|
| 26 | children: React.ReactNode;
|
|---|
| 27 | }>) {
|
|---|
| 28 | return (
|
|---|
| 29 | <html lang="en" suppressHydrationWarning>
|
|---|
| 30 | <body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
|
|---|
| 31 | <ThemeProvider attribute="class" defaultTheme="light" enableSystem>
|
|---|
| 32 | <I18nextProvider i18n={i18n}>
|
|---|
| 33 | <div className="fixed top-4 right-4 z-50">
|
|---|
| 34 | <ThemeToggle />
|
|---|
| 35 | </div>
|
|---|
| 36 | <div className="mx-auto max-w-6xl px-4">{children}</div>
|
|---|
| 37 | </I18nextProvider>
|
|---|
| 38 | </ThemeProvider>
|
|---|
| 39 | </body>
|
|---|
| 40 | </html>
|
|---|
| 41 | );
|
|---|
| 42 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.