Skip to content

Commit 69ef23e

Browse files
authored
Create 404.html
1 parent 492642f commit 69ef23e

File tree

1 file changed

+113
-0
lines changed

1 file changed

+113
-0
lines changed

game/404.html

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
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+
.bubble {
82+
position: absolute;
83+
background: rgba(255, 255, 255, 0.1);
84+
border-radius: 50%;
85+
animation: rise 10s linear infinite;
86+
}
87+
88+
@keyframes rise {
89+
from {
90+
transform: translateY(100vh) scale(0.5);
91+
opacity: 0.5;
92+
}
93+
to {
94+
transform: translateY(-100vh) scale(1.2);
95+
opacity: 0;
96+
}
97+
}
98+
</style>
99+
</head>
100+
<body>
101+
<div class="bubble" style="left: 10%; width: 40px; height: 40px; animation-delay: 0s"></div>
102+
<div class="bubble" style="left: 30%; width: 60px; height: 60px; animation-delay: 2s"></div>
103+
<div class="bubble" style="left: 50%; width: 50px; height: 50px; animation-delay: 5s"></div>
104+
<div class="bubble" style="left: 70%; width: 30px; height: 30px; animation-delay: 7s"></div>
105+
<div class="bubble" style="left: 90%; width: 45px; height: 45px; animation-delay: 3s"></div>
106+
107+
<div class="container">
108+
<div class="error-code">404</div>
109+
<p class="message">哎呀!你要找的游戏去火星旅行了~</p>
110+
<a href="/" class="home-btn">返回主页</a>
111+
</div>
112+
</body>
113+
</html>

0 commit comments

Comments
 (0)