114 lines
2.5 KiB
HTML
114 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="theme-color" content="#10b981">
|
|
<title>萌芽导航 - 离线</title>
|
|
<script src="/config.js"></script>
|
|
<script src="/apply-config.js"></script>
|
|
<style>
|
|
:root {
|
|
color-scheme: light;
|
|
--bg: #f5f7fa;
|
|
--card: #ffffff;
|
|
--text: #1e293b;
|
|
--muted: #64748b;
|
|
--brand: #10b981;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 24px;
|
|
background: linear-gradient(135deg, var(--bg) 0%, #e4edf5 100%);
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
color: var(--text);
|
|
}
|
|
|
|
.panel {
|
|
width: min(520px, 100%);
|
|
background: var(--card);
|
|
border-radius: 16px;
|
|
box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
|
|
padding: 28px 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.logo {
|
|
width: 72px;
|
|
height: 72px;
|
|
border-radius: 18px;
|
|
margin: 0 auto 14px;
|
|
background: linear-gradient(135deg, #34d399, #10b981);
|
|
display: grid;
|
|
place-items: center;
|
|
color: #fff;
|
|
font-size: 34px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0 0 8px;
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
line-height: 1.6;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.actions {
|
|
margin-top: 18px;
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
button {
|
|
border: none;
|
|
border-radius: 999px;
|
|
padding: 10px 16px;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.retry {
|
|
background: var(--brand);
|
|
color: white;
|
|
box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
|
|
}
|
|
|
|
.retry:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.back {
|
|
background: #e2e8f0;
|
|
color: #0f172a;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main class="panel">
|
|
<div class="logo" id="offline-logo">萌</div>
|
|
<h1 id="offline-title">当前离线,已切换离线页面</h1>
|
|
<p>网络恢复后,刷新页面即可继续访问最新数据。已缓存的页面资源可以继续使用。</p>
|
|
<div class="actions">
|
|
<button class="retry" onclick="window.location.reload()">重新尝试</button>
|
|
<button class="back" onclick="window.history.back()">返回上页</button>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
</html>
|