esameits24-26frontend/index.html
AV77web 13dec4e945
All checks were successful
Deploy to VPS / build (push) Successful in 29s
Deploy to VPS / deploy (push) Successful in 20s
implementazione del Dark Theme
2026-07-14 14:03:58 +02:00

25 lines
832 B
HTML

<!doctype html>
<html lang="it">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light dark" />
<title>Academy Aziendale</title>
<script>
(function () {
try {
var theme = localStorage.getItem("academy-theme");
var prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
if (theme === "dark" || (theme !== "light" && theme !== "dark" && prefersDark)) {
document.documentElement.classList.add("dark");
}
} catch (e) {}
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>