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