-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
178 lines (155 loc) · 4.36 KB
/
404.html
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
<!DOCTYPE html>
<html>
<head>
<style>
body {
background: linear-gradient(270deg, #f6f6f6, #e0e0e0, #f6f6f6);
background-size: 600% 600%;
animation: gradientAnimation 15s ease infinite;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: Arial, sans-serif;
}
@keyframes gradientAnimation {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.content {
text-align: center;
}
h1 {
font-size: 10rem;
margin: 0;
color: #999;
transition: all 0.3s ease;
}
h1:hover {
color: #333;
transform: scale(1.1);
}
h2 {
color: #666;
font-size: 3rem;
margin: 0;
transition: all 0.3s ease;
}
h2:hover {
color: #333;
transform: scale(1.05);
}
p {
color: #666;
}
.home-button {
display: inline-block;
margin-top: 2rem;
padding: 1rem 2rem;
background-color: #333;
color: #f6f6f6;
text-decoration: none;
border-radius: 4px;
transition: background-color 0.3s ease;
position: relative;
overflow: hidden;
}
.home-button::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: rgba(255, 255, 255, 0.5);
border-radius: 50%;
transform: translate(-50%, -50%);
transition: width 0.4s ease, height 0.4s ease;
}
.home-button:active::after {
width: 200px;
height: 200px;
transition: none;
}
.home-button:hover {
background-color: #666;
}
.gear-container {
display: flex;
justify-content: center;
align-items: center;
margin-top: 1rem;
}
.gear {
width: 50px;
height: 50px;
border-radius: 50%;
border: 5px solid #333;
border-top-color: transparent;
animation: spinGear 2s linear infinite;
}
.gear1 {
animation-direction: normal;
}
.gear2 {
margin-left: -20px;
animation-direction: reverse;
}
@keyframes spinGear {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.fallback-message {
font-size: 1.5rem;
color: #999;
margin-top: 1rem;
}
@media (max-width: 768px) {
h1 {
font-size: 6rem;
}
h2 {
font-size: 2rem;
}
.home-button {
padding: 0.8rem 1.5rem;
}
}
</style>
</head>
<body>
<div class="content">
<h1>
404
<img src="error-icon.svg" alt="Error Icon" class="rotating-icon" onerror="this.style.display='none'; this.insertAdjacentHTML('afterend', '<div class=\'fallback-message\'>Failed to load</div>')">
</h1>
<h2>Oops! Page not found.</h2>
<p>The page you were looking for doesn't exist. You may have mistyped the address or the page may have moved.</p>
<p>Redirecting to the home page in <span id="countdown">10</span> seconds...</p>
<a href="http://kai9987kai.pw" class="home-button ripple">Go to Home Page</a>
<!-- Gear Animation -->
<div class="gear-container">
<div class="gear gear1"></div>
<div class="gear gear2"></div>
</div>
</div>
<script>
let countdown = 10;
const countdownElement = document.getElementById('countdown');
const interval = setInterval(() => {
countdown--;
countdownElement.textContent = countdown;
if (countdown === 0) {
clearInterval(interval);
window.location.href = "http://kai9987kai.pw";
}
}, 1000);
</script>
</body>
</html>