34 lines
1.4 KiB
HTML
34 lines
1.4 KiB
HTML
<!doctype html>
|
|
<html lang="pl">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<!-- bez viewport-fit=cover: pole statusu/sticky przylega do górnej krawędzi
|
|
layout viewportu (bez prześwitów treści nad pływającym tytułem); dół paska
|
|
menu pod półprzezroczystym UI przeglądarki dosztuczniowany „ścianą" shadow
|
|
w Topbar (iOS i Android z paskiem adresu na dole). env(safe-area-inset-*)
|
|
wciąż działa w paddingach (PWA/fullscreen). -->
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="theme-color" content="#1d1612" />
|
|
<script>
|
|
// tło pola statusu = kolor tła strony z poświatą (bez pasa po pierwszym paintcie);
|
|
// wartości jak THEME_COLORS w src/store/theme.ts
|
|
(function () {
|
|
try {
|
|
var t = localStorage.getItem('fitos-theme') === 'light' ? 'light' : 'dark';
|
|
document.documentElement.classList.toggle('light', t === 'light');
|
|
var m = document.querySelector('meta[name="theme-color"]');
|
|
if (m) m.setAttribute('content', t === 'light' ? '#f6efea' : '#1d1612');
|
|
} catch (e) {}
|
|
})();
|
|
</script>
|
|
<link rel="manifest" href="/manifest.json" />
|
|
<link rel="icon" href="/icons/icon-192.png" type="image/png" />
|
|
<title>FitOS</title>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script src="/config.js"></script>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|