2026-10-04 09:34:55 +07:00
|
|
|
<!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>portfolio</title>
|
2026-10-16 21:14:59 +07:00
|
|
|
<script>
|
|
|
|
|
(function () {
|
|
|
|
|
try {
|
|
|
|
|
var stored = localStorage.getItem('portfolio-theme')
|
|
|
|
|
var theme = stored === 'dark' || stored === 'light'
|
|
|
|
|
? stored
|
|
|
|
|
: (window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark')
|
2026-10-17 00:32:49 +07:00
|
|
|
var storedPalette = localStorage.getItem('portfolio-palette')
|
2026-10-16 21:14:59 +07:00
|
|
|
document.documentElement.setAttribute('data-theme', theme)
|
2026-10-17 00:32:49 +07:00
|
|
|
document.documentElement.setAttribute('data-palette', storedPalette === 'blue' ? 'blue' : 'red')
|
2026-10-16 21:14:59 +07:00
|
|
|
} catch (e) {
|
|
|
|
|
document.documentElement.setAttribute('data-theme', 'dark')
|
2026-10-17 00:32:49 +07:00
|
|
|
document.documentElement.setAttribute('data-palette', 'red')
|
2026-10-16 21:14:59 +07:00
|
|
|
}
|
|
|
|
|
})();
|
|
|
|
|
</script>
|
2026-10-04 09:34:55 +07:00
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div id="root"></div>
|
|
|
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|