mirror of
https://github.com/different-ai/openwork
synced 2026-05-10 17:22:05 +02:00
31 lines
1.2 KiB
HTML
31 lines
1.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>OpenWork</title>
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
|
<script>
|
|
(function () {
|
|
try {
|
|
var mode = localStorage.getItem("openwork.themePref") || "system";
|
|
var prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
var resolved = mode === "dark" || (mode === "system" && prefersDark) ? "dark" : "light";
|
|
document.documentElement.dataset.theme = resolved;
|
|
document.documentElement.style.colorScheme = resolved;
|
|
} catch (e) {
|
|
document.documentElement.dataset.theme = "light";
|
|
document.documentElement.style.colorScheme = "light";
|
|
}
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body class="bg-gray-12 text-gray-12">
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/index.tsx"></script>
|
|
</body>
|
|
</html>
|