57 lines
1.4 KiB
TypeScript
57 lines
1.4 KiB
TypeScript
import type { Metadata } from 'next';
|
|
import { Providers } from './providers';
|
|
import '@/styles/globals.css';
|
|
import '@/styles/material-theme.css';
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Uchill Platform',
|
|
description: 'Образовательная платформа',
|
|
viewport: 'width=device-width, initial-scale=1, maximum-scale=5, viewport-fit=cover',
|
|
themeColor: '#7444FD',
|
|
manifest: '/manifest.json',
|
|
icons: {
|
|
icon: '/icon.svg',
|
|
shortcut: '/icon.svg',
|
|
apple: '/icon.svg',
|
|
},
|
|
appleWebApp: {
|
|
capable: true,
|
|
statusBarStyle: 'black-translucent',
|
|
title: 'Uchill',
|
|
},
|
|
formatDetection: {
|
|
telephone: false,
|
|
},
|
|
other: {
|
|
'mobile-web-app-capable': 'yes',
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="ru" suppressHydrationWarning>
|
|
<head>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
|
|
{/* Preload локального шрифта иконок */}
|
|
<link
|
|
rel="preload"
|
|
href="/fonts/material-symbols-outlined.woff2"
|
|
as="font"
|
|
type="font/woff2"
|
|
crossOrigin="anonymous"
|
|
/>
|
|
</head>
|
|
<body>
|
|
<Providers>
|
|
{children}
|
|
</Providers>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|