28 lines
1.1 KiB
HTML
28 lines
1.1 KiB
HTML
|
|
<!doctype html>
|
|||
|
|
<html lang="zh-CN">
|
|||
|
|
<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, maximum-scale=1, viewport-fit=cover" />
|
|||
|
|
<meta name="theme-color" content="#07C160" />
|
|||
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|||
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|||
|
|
<meta name="apple-mobile-web-app-title" content="云微" />
|
|||
|
|
<link rel="apple-touch-icon" href="/icon-180.png" />
|
|||
|
|
<title>云微</title>
|
|||
|
|
<script>
|
|||
|
|
// 首屏前置好主题,避免亮/暗闪烁。auto/light/dark;缺省 auto(CSS 用 prefers-color-scheme 决定)。
|
|||
|
|
try {
|
|||
|
|
var t = localStorage.getItem('woc_theme');
|
|||
|
|
document.documentElement.dataset.theme = t === 'light' || t === 'dark' ? t : 'auto';
|
|||
|
|
} catch (e) {
|
|||
|
|
document.documentElement.dataset.theme = 'auto';
|
|||
|
|
}
|
|||
|
|
</script>
|
|||
|
|
</head>
|
|||
|
|
<body>
|
|||
|
|
<div id="root"></div>
|
|||
|
|
<script type="module" src="/src/main.tsx"></script>
|
|||
|
|
</body>
|
|||
|
|
</html>
|