source: frontend/src/app/layout.tsx

Last change on this file was b8093a0, checked in by imbrsk <boris696boris@…>, 3 days ago

Merge iknow-remaster into frontend/

Bring the Next.js frontend into this repository as a monorepo subdirectory,
preserving its full commit history via a subtree merge.

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