Files
ScraperControl/src/app/layout.tsx

38 lines
908 B
TypeScript
Raw Normal View History

import type { Metadata } from 'next';
import './globals.css';
export const metadata: Metadata = {
title: 'ScraperControl',
robots: 'noindex, nofollow',
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" suppressHydrationWarning>
<head>
<script
dangerouslySetInnerHTML={{
__html: `
(function() {
try {
var theme = localStorage.getItem('theme');
if (theme === 'dark' || theme === 'light') {
document.documentElement.setAttribute('data-theme', theme);
}
} catch(e) {}
})();
`,
}}
/>
</head>
<body className="bg-[var(--background)] text-[var(--foreground)] antialiased">
{children}
</body>
</html>
);
}