|
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
|
| Rev | Line | |
|---|
| [50f2fb4] | 1 | "use client";
|
|---|
| [65f7b64] | 2 | import { Geist, Geist_Mono } from "next/font/google";
|
|---|
| 3 | import "./globals.css";
|
|---|
| [6b8332f] | 4 | import '@fortawesome/fontawesome-svg-core/styles.css';
|
|---|
| 5 | import { config } from '@fortawesome/fontawesome-svg-core';
|
|---|
| [50f2fb4] | 6 | import { I18nextProvider } from 'react-i18next';
|
|---|
| 7 | import i18n from '../i18n';
|
|---|
| [ba52069] | 8 | import { ThemeProvider } from '../components/theme-provider';
|
|---|
| 9 | import { ThemeToggle } from '../components/theme-toggle';
|
|---|
| [875f7d6] | 10 |
|
|---|
| 11 | config.autoAddCss = false;
|
|---|
| [65f7b64] | 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 (
|
|---|
| [ba52069] | 29 | <html lang="en" suppressHydrationWarning>
|
|---|
| [50f2fb4] | 30 | <body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
|
|---|
| [d7deae5] | 31 | <ThemeProvider attribute="class" defaultTheme="light" enableSystem>
|
|---|
| [ba52069] | 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>
|
|---|
| [65f7b64] | 39 | </body>
|
|---|
| 40 | </html>
|
|---|
| 41 | );
|
|---|
| [6b8332f] | 42 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.