Files
LaunchPad/apps/frontend/index.html

37 lines
1.2 KiB
HTML

<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#0a0a0a" />
<meta name="description" content="Schneller, minimalistischer Homelab-Launcher" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link
rel="search"
type="application/opensearchdescription+xml"
title="LaunchPad"
href="/opensearch.xml"
/>
<title>LaunchPad</title>
<script>
// Muss inline und vor jedem Bundle-Download laufen, sonst blitzt beim
// Direktaufruf einer Unterseite (z. B. /admin/dashboard) kurz das
// falsche Theme auf, bevor React mountet.
(function () {
var stored = localStorage.getItem("launchpad-theme");
var dark =
stored === "dark" ||
(stored !== "light" &&
window.matchMedia("(prefers-color-scheme: dark)").matches);
document.documentElement.classList.toggle("dark", dark);
})();
</script>
</head>
<body class="bg-white dark:bg-black">
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>