Files
netrunner-app/index.html
T
2026-04-28 12:23:52 +07:00

37 lines
1.0 KiB
HTML

<!doctype html>
<html lang="ru">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="/src/style.css" rel="stylesheet" />
<title>Netrunner VPN</title>
<style>
/* Цвет должен совпадать с фоном твоего сплеш-скрина */
body {
background-color: #0a0a0c;
margin: 0;
}
</style>
<script>
(function () {
const saved = localStorage.getItem("theme");
const prefersDark = window.matchMedia(
"(prefers-color-scheme: dark)",
).matches;
const shouldBeDark =
saved === "dark" || (saved === null && prefersDark);
if (shouldBeDark) {
document.documentElement.classList.add("dark");
} else {
document.documentElement.classList.remove("dark");
}
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>