-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
165 lines (165 loc) · 4.12 KB
/
404.html
File metadata and controls
165 lines (165 loc) · 4.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>页面未找到 · 电视台标 Logo</title>
<style>
* {
box-sizing: border-box;
}
:root {
--bg-page: #f5f5f5;
--bg-container: #fff;
--shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
--text-title: #333;
--text-body: #333;
--text-muted: #999;
--text-label: #555;
--border-input: #ddd;
}
body.dark {
--bg-page: #1a1a1a;
--bg-container: #2d2d2d;
--shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
--text-title: #e8e8e8;
--text-body: #e0e0e0;
--text-muted: #888;
--text-label: #b0b0b0;
--border-input: #444;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
margin: 0;
padding: 24px;
background: var(--bg-page);
color: var(--text-body);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.container {
max-width: 480px;
width: 100%;
background: var(--bg-container);
border-radius: 12px;
box-shadow: var(--shadow);
padding: 32px;
text-align: center;
}
.code {
font-size: 4rem;
font-weight: 700;
color: var(--text-muted);
line-height: 1;
margin: 0 0 12px;
letter-spacing: -0.02em;
}
h1 {
margin: 0 0 12px;
font-size: 1.25rem;
color: var(--text-title);
font-weight: 600;
}
p {
margin: 0 0 24px;
color: var(--text-label);
font-size: 15px;
line-height: 1.6;
}
a {
color: #1890ff;
text-decoration: none;
font-weight: 500;
}
a:hover {
text-decoration: underline;
}
body.dark a {
color: #40a9ff;
}
.theme-row {
margin-top: 24px;
padding-top: 20px;
border-top: 1px solid var(--border-input);
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
font-size: 14px;
color: var(--text-label);
user-select: none;
}
.theme-switch input {
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
}
.theme-switch .slider {
position: relative;
width: 44px;
height: 24px;
background: var(--border-input);
border-radius: 24px;
cursor: pointer;
transition: background 0.2s;
}
.theme-switch .slider::after {
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 20px;
height: 20px;
background: #fff;
border-radius: 50%;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
transition: transform 0.2s;
}
.theme-switch input:checked + .slider {
background: #1890ff;
}
.theme-switch input:checked + .slider::after {
transform: translateX(20px);
}
body.dark .theme-switch .slider {
background: #444;
}
body.dark .theme-switch input:checked + .slider {
background: #1890ff;
}
</style>
</head>
<body>
<div class="container">
<p class="code">404</p>
<h1>页面不存在</h1>
<p>请求的地址没有对应文件。请检查链接,或返回首页浏览台标资源。</p>
<p><a href="/">返回首页</a></p>
<div class="theme-row">
<span>深色模式</span>
<label class="theme-switch">
<input type="checkbox" id="theme-switch" />
<span class="slider" aria-hidden="true"></span>
</label>
</div>
</div>
<script>
(function () {
var THEME_KEY = "logo-page-dark-theme";
var switchEl = document.getElementById("theme-switch");
if (!switchEl) return;
var isDark = localStorage.getItem(THEME_KEY) === "1";
switchEl.checked = isDark;
if (isDark) document.body.classList.add("dark");
switchEl.addEventListener("change", function () {
var dark = this.checked;
document.body.classList.toggle("dark", dark);
localStorage.setItem(THEME_KEY, dark ? "1" : "0");
});
})();
</script>
</body>
</html>