2026-10-28 07:58:33 +00:00
|
|
|
|
<!doctype html>
|
|
|
|
|
|
<html lang="zh-Hant-TW">
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
|
|
<title>選舉小鎮</title>
|
|
|
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
|
|
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
2026-10-28 09:23:32 +00:00
|
|
|
|
<!-- 字型不擋畫面:先用系統字,載好再換(載入畫面要馬上出現) -->
|
|
|
|
|
|
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700;800&family=Noto+Sans+TC:wght@400;500;700;900&family=Noto+Serif+TC:wght@700;900&display=swap" rel="stylesheet" media="print" onload="this.media='all'" />
|
|
|
|
|
|
<style>
|
|
|
|
|
|
/* 載入畫面:只用內嵌的 HTML/CSS,不等任何下載就畫得出來;src/splash.ts 更新進度、淡出 */
|
|
|
|
|
|
#splash {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
inset: 0;
|
|
|
|
|
|
z-index: 1000;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
place-content: center;
|
|
|
|
|
|
justify-items: center;
|
|
|
|
|
|
gap: 18px;
|
|
|
|
|
|
background: #ecebe6;
|
|
|
|
|
|
color: #111419;
|
|
|
|
|
|
font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
|
|
|
|
|
|
transition: opacity 300ms ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
#splash.is-done { opacity: 0; pointer-events: none; }
|
|
|
|
|
|
#splash .splash-stamp {
|
|
|
|
|
|
padding: 10px 22px;
|
|
|
|
|
|
border: 5px solid #d61f2c;
|
|
|
|
|
|
border-radius: 14px;
|
|
|
|
|
|
color: #d61f2c;
|
|
|
|
|
|
font-size: clamp(34px, 8vw, 56px);
|
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
|
letter-spacing: 0.12em;
|
|
|
|
|
|
transform: rotate(-4deg);
|
|
|
|
|
|
}
|
|
|
|
|
|
#splash .splash-bar { width: min(260px, 70vw); height: 8px; border-radius: 999px; background: rgb(17 20 25 / 0.12); overflow: hidden; }
|
|
|
|
|
|
#splash .splash-fill { width: 8%; height: 100%; border-radius: inherit; background: #d61f2c; transition: width 250ms ease; }
|
|
|
|
|
|
#splash .splash-text { margin: 0; font-size: 14px; color: #5b6270; }
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
|
|
#splash { background: #0b1420; color: #eef1f5; }
|
|
|
|
|
|
#splash .splash-stamp { border-color: #ff4d5a; color: #ff4d5a; }
|
|
|
|
|
|
#splash .splash-bar { background: rgb(238 241 245 / 0.14); }
|
|
|
|
|
|
#splash .splash-fill { background: #ff4d5a; }
|
|
|
|
|
|
#splash .splash-text { color: #a9b2bf; }
|
|
|
|
|
|
}
|
|
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
|
|
#splash, #splash .splash-fill { transition: none; }
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|
2026-10-28 07:58:33 +00:00
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
2026-10-28 09:23:32 +00:00
|
|
|
|
<div id="splash" role="status" aria-live="polite">
|
|
|
|
|
|
<div class="splash-stamp">選舉小鎮</div>
|
|
|
|
|
|
<div class="splash-bar" aria-hidden="true"><div class="splash-fill"></div></div>
|
|
|
|
|
|
<p class="splash-text">載入中…</p>
|
|
|
|
|
|
</div>
|
2026-10-28 07:58:33 +00:00
|
|
|
|
<div id="root"></div>
|
|
|
|
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|