builder link
CI / deploy (push) Failing after 6s

This commit is contained in:
2026-03-24 06:10:27 -04:00
parent 5526920ff8
commit 37921469d5
2 changed files with 3 additions and 19 deletions
+3 -16
View File
@@ -20,25 +20,12 @@ export const metadata = {
},
};
const themeScript = `
(function () {
try {
const storedTheme = localStorage.getItem("theme");
const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
const theme = storedTheme || (prefersDark ? "dark" : "light");
document.documentElement.classList.toggle("dark", theme === "dark");
} catch (_) {}
})();
`;
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en" suppressHydrationWarning className="dark">
<head>
<script dangerouslySetInnerHTML={{ __html: themeScript }} />
</head>
<html lang="en" className="dark">
<head />
<body className="bg-dark text-zinc-950 dark:bg-black dark:text-zinc-50">
<body className="bg-black text-zinc-50">
{" "}
<Script src="https://umami.ash.gofwd.group/script.js" data-website-id="15c6b9ad-4119-4981-829c-26db69c07a15"
strategy="lazyOnload"