Skip to content

Commit b128ff3

Browse files
authored
Create 404.html
1 parent 126f014 commit b128ff3

File tree

1 file changed

+115
-0
lines changed

1 file changed

+115
-0
lines changed

blog/404.html

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
<!DOCTYPE html>
2+
<html lang="zh-CN">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>404 - 页面未找到</title>
7+
<style>
8+
* {
9+
margin: 0;
10+
padding: 0;
11+
box-sizing: border-box;
12+
font-family: 'Segoe UI', sans-serif;
13+
}
14+
15+
body {
16+
min-height: 100vh;
17+
background: linear-gradient(135deg, #f9d423 0%, #4ecdc4 100%);
18+
display: flex;
19+
justify-content: center;
20+
align-items: center;
21+
position: relative;
22+
overflow: hidden;
23+
}
24+
25+
.container {
26+
text-align: center;
27+
padding: 2rem;
28+
position: relative;
29+
z-index: 1;
30+
}
31+
32+
.error-code {
33+
font-size: 15rem;
34+
font-weight: bold;
35+
color: rgba(255, 255, 255, 0.9);
36+
text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
37+
animation: float 3s ease-in-out infinite;
38+
}
39+
40+
.message {
41+
font-size: 2rem;
42+
color: #fff;
43+
margin-bottom: 2rem;
44+
text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
45+
}
46+
47+
.home-btn {
48+
display: inline-block;
49+
padding: 1rem 2rem;
50+
background: #2ecc71;
51+
color: white;
52+
text-decoration: none;
53+
border-radius: 50px;
54+
font-size: 1.2rem;
55+
transition: all 0.3s ease;
56+
box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
57+
border: 2px solid transparent;
58+
}
59+
60+
.home-btn:hover {
61+
transform: translateY(-3px);
62+
box-shadow: 0 8px 25px rgba(46, 204, 113, 0.6);
63+
background: #27ae60;
64+
}
65+
66+
.home-btn:active {
67+
transform: translateY(0);
68+
box-shadow: 0 3px 10px rgba(46, 204, 113, 0.4);
69+
}
70+
71+
/* 浮动动画 */
72+
@keyframes float {
73+
0%, 100% {
74+
transform: translateY(0);
75+
}
76+
50% {
77+
transform: translateY(-20px);
78+
}
79+
}
80+
81+
/* 背景装饰气泡 */
82+
.bubble {
83+
position: absolute;
84+
background: rgba(255, 255, 255, 0.1);
85+
border-radius: 50%;
86+
animation: rise 10s linear infinite;
87+
}
88+
89+
@keyframes rise {
90+
from {
91+
transform: translateY(100vh) scale(0.5);
92+
opacity: 0.5;
93+
}
94+
to {
95+
transform: translateY(-100vh) scale(1.2);
96+
opacity: 0;
97+
}
98+
}
99+
</style>
100+
</head>
101+
<body>
102+
<!-- 背景气泡 -->
103+
<div class="bubble" style="left: 10%; width: 40px; height: 40px; animation-delay: 0s"></div>
104+
<div class="bubble" style="left: 30%; width: 60px; height: 60px; animation-delay: 2s"></div>
105+
<div class="bubble" style="left: 50%; width: 50px; height: 50px; animation-delay: 5s"></div>
106+
<div class="bubble" style="left: 70%; width: 30px; height: 30px; animation-delay: 7s"></div>
107+
<div class="bubble" style="left: 90%; width: 45px; height: 45px; animation-delay: 3s"></div>
108+
109+
<div class="container">
110+
<div class="error-code">404</div>
111+
<p class="message">哎呀!你要找的页面去火星旅行了~</p>
112+
<a href="/" class="home-btn">返回地球(主页)</a>
113+
</div>
114+
</body>
115+
</html>

0 commit comments

Comments
 (0)