37 lines
1.2 KiB
JavaScript
37 lines
1.2 KiB
JavaScript
import './globals.css';
|
|
|
|
export const metadata = {
|
|
title: 'ZeroPost — ИИ-генерация постов для Telegram',
|
|
description: 'Инструмент для ведения Telegram-каналов с помощью ИИ',
|
|
};
|
|
|
|
// Inline-скрипт чтобы установить тему ДО рендера и избежать вспышки
|
|
const themeInit = `
|
|
(function() {
|
|
try {
|
|
var saved = localStorage.getItem('zp_theme');
|
|
var theme = saved || 'light';
|
|
document.documentElement.setAttribute('data-theme', theme);
|
|
} catch(e) {
|
|
document.documentElement.setAttribute('data-theme', 'light');
|
|
}
|
|
})();
|
|
`;
|
|
|
|
export default function RootLayout({ children }) {
|
|
return (
|
|
<html lang="ru" data-theme="light" suppressHydrationWarning>
|
|
<head>
|
|
<script dangerouslySetInnerHTML={{ __html: themeInit }} />
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
</head>
|
|
<body>{children}</body>
|
|
</html>
|
|
);
|
|
}
|