Add theme toggle and update MineGeo branding
This commit is contained in:
@@ -16,6 +16,8 @@ import "./polish.css";
|
||||
import "./mobile-game.css";
|
||||
import "./multiplayer.css";
|
||||
import "./support.css";
|
||||
import "./appearance.css";
|
||||
import { themeInitScript } from "@/shared/theme";
|
||||
import { SiteSettingsProvider } from "@/components/SiteSettingsProvider";
|
||||
import { initialSiteSettings } from "@/lib/site-settings";
|
||||
import { user } from "@/lib/supabase";
|
||||
@@ -40,7 +42,10 @@ export default async function RootLayout({
|
||||
const [{ locale, preference, detectedLocale }, settings, account] =
|
||||
await Promise.all([getI18n(), initialSiteSettings(), user()]);
|
||||
return (
|
||||
<html lang={locale}>
|
||||
<html lang={locale} data-theme="dark" suppressHydrationWarning>
|
||||
<head>
|
||||
<script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
|
||||
</head>
|
||||
<body>
|
||||
<I18nProvider
|
||||
locale={locale}
|
||||
|
||||
Reference in New Issue
Block a user