2026-01-15 13:51:44 +08:00
|
|
|
<!doctype html>
|
2026-07-14 12:47:53 +08:00
|
|
|
<html lang="zh-CN">
|
2026-01-15 13:51:44 +08:00
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8" />
|
2026-01-20 16:45:23 +08:00
|
|
|
<link rel="icon" type="image/svg+xml" href="/icon/icon.jpg" />
|
2026-01-15 13:51:44 +08:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
|
<title>艺术与代码 | 年糕崽崽的数字花园</title>
|
2026-07-14 12:47:53 +08:00
|
|
|
<script>
|
|
|
|
|
(function () {
|
|
|
|
|
try {
|
|
|
|
|
var path = location.pathname || ''
|
|
|
|
|
var forceDark = path === '/login' || path.indexOf('/admin') === 0
|
|
|
|
|
var pref = localStorage.getItem('theme-pref') || 'system'
|
|
|
|
|
var dark =
|
|
|
|
|
forceDark ||
|
|
|
|
|
pref === 'dark' ||
|
|
|
|
|
(pref !== 'light' && window.matchMedia('(prefers-color-scheme: dark)').matches)
|
|
|
|
|
document.documentElement.classList.toggle('dark', dark)
|
|
|
|
|
document.documentElement.style.colorScheme = dark ? 'dark' : 'light'
|
|
|
|
|
} catch (e) {
|
|
|
|
|
document.documentElement.classList.add('dark')
|
|
|
|
|
}
|
|
|
|
|
})()
|
|
|
|
|
</script>
|
2026-01-15 13:51:44 +08:00
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div id="app"></div>
|
|
|
|
|
<script type="module" src="/src/main.ts"></script>
|
|
|
|
|
</body>
|
2026-07-14 12:47:53 +08:00
|
|
|
</html>
|