mirror of
https://github.com/hex248/ob248.com.git
synced 2026-02-07 10:17:15 +00:00
30 lines
919 B
HTML
30 lines
919 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<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" />
|
|
<title>Oliver Bryan</title>
|
|
<script>
|
|
(() => {
|
|
try {
|
|
const stored = localStorage.getItem("theme");
|
|
const theme =
|
|
stored === "light" || stored === "dark" ? stored : "system";
|
|
const isDark =
|
|
theme === "dark" ||
|
|
(theme === "system" &&
|
|
window.matchMedia("(prefers-color-scheme: dark)").matches);
|
|
if (isDark) document.documentElement.classList.add("dark");
|
|
} catch (_error) {
|
|
document.documentElement.classList.remove("dark");
|
|
}
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|