mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
27 lines
846 B
HTML
27 lines
846 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>portfolio</title>
|
|
<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')
|
|
document.documentElement.setAttribute('data-theme', theme)
|
|
} catch (e) {
|
|
document.documentElement.setAttribute('data-theme', 'dark')
|
|
}
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|