|
Last change
on this file since a12988e 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";
|
|---|
| 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 | import ContactBubble from '../components/contact-bubble';
|
|---|
| 11 |
|
|---|
| 12 | config.autoAddCss = false;
|
|---|
| 13 |
|
|---|
| 14 | const geistSans = Geist({
|
|---|
| 15 | variable: "--font-geist-sans",
|
|---|
| 16 | subsets: ["latin"],
|
|---|
| 17 | });
|
|---|
| 18 |
|
|---|
| 19 | const geistMono = Geist_Mono({
|
|---|
| 20 | variable: "--font-geist-mono",
|
|---|
| 21 | subsets: ["latin"],
|
|---|
| 22 | });
|
|---|
| 23 |
|
|---|
| 24 | export 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.