mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-04-09 18:45:52 +02:00
38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<!-- These are the fonts used in the app -->
|
|
<!-- Removed preload links to avoid warnings about unused fonts -->
|
|
<title>KVM</title>
|
|
<link rel="stylesheet" href="/fonts/fonts.css" />
|
|
<link rel="icon" href="/logo-luckfox.png" />
|
|
<script>
|
|
// Initial theme setup
|
|
document.documentElement.classList.toggle(
|
|
"dark",
|
|
localStorage.theme === "dark" ||
|
|
(!("theme" in localStorage) &&
|
|
window.matchMedia("(prefers-color-scheme: dark)").matches),
|
|
);
|
|
|
|
// Listen for system theme changes
|
|
window
|
|
.matchMedia("(prefers-color-scheme: dark)")
|
|
.addEventListener("change", ({ matches }) => {
|
|
if (!("theme" in localStorage)) {
|
|
// Only auto-switch if user hasn't manually set a theme
|
|
document.documentElement.classList.toggle("dark", matches);
|
|
}
|
|
});
|
|
</script>
|
|
</head>
|
|
<body
|
|
class="h-full w-full bg-[#ffffff] font-sans text-sm antialiased dark:bg-[#000000] md:text-base"
|
|
>
|
|
<div id="root" class="w-full h-full"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|