-
Notifications
You must be signed in to change notification settings - Fork 126
Expand file tree
/
Copy path404.html
More file actions
113 lines (102 loc) · 3.21 KB
/
Copy path404.html
File metadata and controls
113 lines (102 loc) · 3.21 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> 404 Not Found</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
color: white;
overflow: hidden;
}
.container {
text-align: center;
padding: 2rem;
position: relative;
z-index: 1;
}
.error-code {
font-size: 15rem;
font-weight: bold;
text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
margin-bottom: -1rem;
animation: float 3s ease-in-out infinite;
}
.message {
font-size: 1.5rem;
margin-bottom: 2rem;
opacity: 0.9;
}
.action-btn {
display: inline-block;
padding: 1rem 2rem;
background: rgba(255, 255, 255, 0.2);
border: 2px solid white;
border-radius: 50px;
color: white;
text-decoration: none;
transition: all 0.3s ease;
backdrop-filter: blur(5px);
font-weight: 500;
}
.action-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-2px);
}
.bubble {
position: absolute;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
animation: bubble 10s linear infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}
@keyframes bubble {
0% {
transform: translateY(100vh) scale(0);
opacity: 0;
}
100% {
transform: translateY(-100vh) scale(1);
opacity: 0.3;
}
}
@media (max-width: 768px) {
.error-code {
font-size: 10rem;
}
.message {
font-size: 1.2rem;
}
}
</style>
</head>
<body>
<!-- 背景气泡动画 -->
<div class="bubble" style="left: 10%; width: 40px; height: 40px; animation-delay: 0s"></div>
<div class="bubble" style="left: 30%; width: 60px; height: 60px; animation-delay: 2s"></div>
<div class="bubble" style="left: 60%; width: 30px; height: 30px; animation-delay: 5s"></div>
<div class="bubble" style="left: 85%; width: 50px; height: 50px; animation-delay: 3s"></div>
<div class="container">
<div class="error-code">404</div>
<p class="message">哎呀!您访问的页面好像去火星旅行了...</p>
<a href="/" class="action-btn">返回首页</a>
<p style="margin-top: 1.5rem; opacity: 0.8; font-size: 0.9rem;">
请检查您输入的URL是否正确
</p>
</div>
</body>
</html>