Repository navigation
Expand file tree
/
Copy path404.html
More file actions
351 lines (306 loc) · 9.85 KB
/
Copy path404.html
File metadata and controls
351 lines (306 loc) · 9.85 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
color: #333;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.container {
max-width: 800px;
width: 100%;
background: white;
border-radius: 20px;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
overflow: hidden;
text-align: center;
}
.error-header {
background: linear-gradient(to right, #ff6b6b, #ff8e8e);
color: white;
padding: 40px 20px;
}
.error-icon {
font-size: 5rem;
margin-bottom: 20px;
animation: bounce 2s infinite;
}
h1 {
font-size: 2.5rem;
margin-bottom: 10px;
}
.error-content {
padding: 40px;
}
.error-message {
font-size: 1.2rem;
color: #666;
line-height: 1.6;
margin-bottom: 30px;
}
.suggestions {
background: #f8f9fa;
border-radius: 12px;
padding: 25px;
margin-bottom: 30px;
text-align: left;
}
.suggestions h3 {
color: #ff6b6b;
margin-bottom: 15px;
display: flex;
align-items: center;
gap: 10px;
}
.suggestion-list {
list-style: none;
}
.suggestion-list li {
padding: 10px 0;
display: flex;
align-items: center;
gap: 10px;
border-bottom: 1px solid #eee;
}
.suggestion-list li:last-child {
border-bottom: none;
}
.suggestion-list i {
color: #ff6b6b;
}
.action-buttons {
display: flex;
justify-content: center;
gap: 15px;
flex-wrap: wrap;
margin-top: 30px;
}
.btn {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 14px 28px;
background: #4dabf7;
color: white;
text-decoration: none;
border-radius: 50px;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: 0 4px 10px rgba(77, 171, 247, 0.3);
cursor: pointer;
border: none;
outline: none;
}
.btn-primary {
background: #4dabf7;
}
.btn-primary:hover {
background: #339af0;
transform: translateY(-3px);
box-shadow: 0 6px 15px rgba(77, 171, 247, 0.4);
}
.btn-secondary {
background: #ff6b6b;
box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}
.btn-secondary:hover {
background: #fa5252;
transform: translateY(-3px);
box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}
.btn-outline {
background: transparent;
border: 2px solid #4dabf7;
color: #4dabf7;
box-shadow: none;
}
.btn-outline:hover {
background: #4dabf7;
color: white;
}
.btn-refresh {
background: #20c997;
box-shadow: 0 4px 10px rgba(32, 201, 151, 0.3);
}
.btn-refresh:hover {
background: #12a27a;
transform: translateY(-3px);
box-shadow: 0 6px 15px rgba(32, 201, 151, 0.4);
}
.btn.loading {
position: relative;
color: transparent;
}
.btn.loading::after {
content: "";
position: absolute;
width: 20px;
height: 20px;
top: 50%;
left: 50%;
margin: -10px 0 0 -10px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: white;
animation: spin 1s ease-in-out infinite;
}
.contact-info {
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid #eee;
color: #666;
}
.shortcut-hint {
margin-top: 15px;
font-size: 0.9rem;
color: #888;
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
}
.shortcut-key {
background: #f1f3f5;
padding: 4px 8px;
border-radius: 4px;
font-family: monospace;
font-size: 0.8rem;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(-20px);
}
60% {
transform: translateY(-10px);
}
}
@keyframes spin {
to { transform: rotate(360deg); }
}
@media (max-width: 768px) {
h1 {
font-size: 2rem;
}
.error-content {
padding: 25px;
}
.action-buttons {
flex-direction: column;
align-items: center;
}
.btn {
width: 100%;
justify-content: center;
}
}
</style>
</head>
<body>
<div class="container">
<div class="error-header">
<div class="error-icon">
<i class="fas fa-exclamation-triangle"></i>
</div>
<h1>404</h1>
<h1>你所访问的内容不存在</h1>
</div>
<div class="error-content">
<p class="error-message">
你尝试访问的所选资源无法找到,请检查你的URL是否正确,然后重试。若你认为这是错误,请刷新界面。无果请联系我们。
</p>
<div class="suggestions">
<h3><i class="fas fa-lightbulb"></i> 您可以:</h3>
<ul class="suggestion-list">
<li>
<i class="fas fa-arrow-left"></i>
<span>刷新页面</span>
</li>
<li>
<i class="fas fa-home"></i>
<span>访问网站主页浏览更多内容</span>
</li>
<li>
<i class="fas fa-clock"></i>
<span>稍后再回来查看此页面是否已更新</span>
</li>
<li>
<i class="fas fa-envelope"></i>
<span>联系我们询问此页面的更新计划</span>
</li>
</ul>
</div>
<div class="action-buttons">
<a href="../" class="btn btn-secondary">
<i class="fas fa-home"></i> 返回主页
</a>
<button id="refresh-btn" class="btn btn-refresh">
<i class="fas fa-sync-alt"></i> 刷新页面
</button>
<a href="mailto:399874779@qq.com" class="btn btn-outline">
<i class="fas fa-envelope"></i> 联系管理员
</a>
</div>
<div class="shortcut-hint">
<span>快捷键:</span>
<span class="shortcut-key">F5</span>
<span>刷新页面</span>
</div>
<div class="contact-info">
<p>如果您认为这是一个错误,或者需要立即帮助,请通过上述方式联系我们</p>
</div>
</div>
</div>
<script>
// 添加简单的页面加载效果
document.addEventListener('DOMContentLoaded', function() {
const container = document.querySelector('.container');
container.style.opacity = '0';
container.style.transform = 'translateY(20px)';
setTimeout(() => {
container.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
container.style.opacity = '1';
container.style.transform = 'translateY(0)';
}, 300);
// 获取刷新按钮
const refreshBtn = document.getElementById('refresh-btn');
// 添加刷新按钮点击事件
refreshBtn.addEventListener('click', function() {
// 添加加载动画
this.classList.add('loading');
// 设置一个短暂的延迟,让用户看到反馈
setTimeout(() => {
// 使用location.reload()刷新页面
window.location.reload();
}, 800);
});
// 添加键盘快捷键监听
document.addEventListener('keydown', function(e) {
// F5键刷新
if (e.key === 'F5') {
e.preventDefault();
refreshBtn.click();
}
});
});
</script>
</body>
</html>