nex_animation/frontend/index.html

23 lines
1.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Nex Animation Studio</title>
<meta name="color-scheme" content="dark light">
<!-- 网络字体异步加载:@import 会把首屏阻塞在 fonts.googleapis.com 上(外网抖动时整页白屏)。
preconnect 提前握手 + media="print" 让这张样式表不参与首次渲染,字体到位后自动切回。 -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" media="print" onload="this.media='all'"
href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap">
<script>
/* 主题在首帧之前落地,避免深色页面先闪一下白底(React 挂载晚于这段内联脚本)。
与 src/stores/theme.ts 共用同一把钥匙 nex-the:值缺失 = 跟随系统。 */
(function () {
var saved = null
try { saved = localStorage.getItem('nex-the') } catch (e) { /* 隐私模式:按系统偏好渲染 */ }
var mode = saved === 'dark' || saved === 'light'
? saved
: (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark')
document.documentElement.dataset.theme = mode
document.documentElement.style.colorScheme = mode
})()
</script>
</head><body><div id="root"></div><script type="module" src="/src/main.tsx"></script></body></html>