mirror of
https://github.com/nianzhibai/91.git
synced 2026-06-15 00:44:30 +08:00
9cc8e02bec
Add the sky theme across the frontend and backend theme APIs, including starfield assets and icon-only branding. Refresh themed grid backgrounds, admin/login/sidebar styling, and theme-specific video/listing polish.
39 lines
1.5 KiB
HTML
39 lines
1.5 KiB
HTML
<!doctype html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<meta name="referrer" content="no-referrer" />
|
||
<link rel="icon" type="image/png" href="/icon.png" />
|
||
<link rel="apple-touch-icon" href="/icon.png" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
||
<meta name="description" content="91 视频站" />
|
||
<title>91</title>
|
||
<!-- Premium Fonts Preconnect & Links -->
|
||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||
<!--
|
||
在 React 挂载前,从 localStorage 同步上次保存的主题,立刻设到 <html data-theme>,
|
||
避免"先黑后粉"的闪烁。真实的服务端值会在 main.tsx 启动时异步对齐。
|
||
-->
|
||
<script>
|
||
(function () {
|
||
try {
|
||
var t = localStorage.getItem("video-site:theme");
|
||
if (t === "pink" || t === "dark" || t === "sky") {
|
||
document.documentElement.setAttribute("data-theme", t);
|
||
} else {
|
||
document.documentElement.setAttribute("data-theme", "dark");
|
||
}
|
||
} 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>
|