Skip to content

Commit fe96972

Browse files
committed
404 page
1 parent 20c7e24 commit fe96972

1 file changed

Lines changed: 172 additions & 0 deletions

File tree

404.html

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8"/>
5+
<title>Page Not Found — Riddle&Code</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1"/>
7+
<meta content="Page not found" name="description"/>
8+
9+
<style>
10+
* {
11+
margin: 0;
12+
padding: 0;
13+
box-sizing: border-box;
14+
}
15+
16+
:root {
17+
--primary-green: #00ff88;
18+
--dark-bg: #0a0a0a;
19+
--text-primary: #ffffff;
20+
--text-secondary: #e0e0e0;
21+
--text-muted: #999999;
22+
}
23+
24+
body {
25+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
26+
background: var(--dark-bg);
27+
color: var(--text-secondary);
28+
line-height: 1.6;
29+
display: flex;
30+
align-items: center;
31+
justify-content: center;
32+
min-height: 100vh;
33+
padding: 2rem;
34+
}
35+
36+
.error-container {
37+
text-align: center;
38+
max-width: 600px;
39+
}
40+
41+
.error-code {
42+
font-size: 8rem;
43+
font-weight: 700;
44+
color: var(--primary-green);
45+
line-height: 1;
46+
margin-bottom: 1rem;
47+
animation: glow 2s ease-in-out infinite;
48+
}
49+
50+
@keyframes glow {
51+
0%, 100% {
52+
text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
53+
}
54+
50% {
55+
text-shadow: 0 0 40px rgba(0, 255, 136, 0.8);
56+
}
57+
}
58+
59+
.error-title {
60+
font-size: 2rem;
61+
font-weight: 700;
62+
color: var(--text-primary);
63+
margin-bottom: 1rem;
64+
}
65+
66+
.error-message {
67+
font-size: 1.125rem;
68+
color: var(--text-muted);
69+
margin-bottom: 2rem;
70+
line-height: 1.8;
71+
}
72+
73+
.redirect-message {
74+
font-size: 1rem;
75+
color: var(--text-secondary);
76+
margin-bottom: 2rem;
77+
}
78+
79+
.countdown {
80+
color: var(--primary-green);
81+
font-weight: 600;
82+
}
83+
84+
.btn-home {
85+
display: inline-block;
86+
padding: 1rem 2.5rem;
87+
background: var(--primary-green);
88+
color: var(--dark-bg);
89+
text-decoration: none;
90+
border-radius: 8px;
91+
font-weight: 600;
92+
font-size: 1rem;
93+
transition: all 0.3s ease;
94+
border: 2px solid var(--primary-green);
95+
}
96+
97+
.btn-home:hover {
98+
background: transparent;
99+
color: var(--primary-green);
100+
transform: translateY(-2px);
101+
}
102+
103+
.logo {
104+
margin-bottom: 2rem;
105+
font-size: 1.5rem;
106+
font-weight: 700;
107+
color: var(--text-primary);
108+
}
109+
110+
.logo-highlight {
111+
color: var(--primary-green);
112+
}
113+
114+
@media (max-width: 768px) {
115+
.error-code {
116+
font-size: 5rem;
117+
}
118+
119+
.error-title {
120+
font-size: 1.5rem;
121+
}
122+
123+
.error-message {
124+
font-size: 1rem;
125+
}
126+
}
127+
</style>
128+
129+
<script>
130+
// Auto-redirect after 5 seconds
131+
let countdown = 5;
132+
133+
function updateCountdown() {
134+
const countdownElement = document.getElementById('countdown');
135+
if (countdownElement) {
136+
countdownElement.textContent = countdown;
137+
}
138+
139+
if (countdown <= 0) {
140+
window.location.href = '/';
141+
} else {
142+
countdown--;
143+
setTimeout(updateCountdown, 1000);
144+
}
145+
}
146+
147+
// Start countdown when page loads
148+
window.addEventListener('DOMContentLoaded', updateCountdown);
149+
</script>
150+
</head>
151+
<body>
152+
<div class="error-container">
153+
<div class="logo">
154+
<span class="logo-highlight">Riddle</span>&Code
155+
</div>
156+
157+
<div class="error-code">404</div>
158+
159+
<h1 class="error-title">Page Not Found</h1>
160+
161+
<p class="error-message">
162+
The page you're looking for doesn't exist or has been moved.
163+
</p>
164+
165+
<p class="redirect-message">
166+
Redirecting to homepage in <span class="countdown" id="countdown">5</span> seconds...
167+
</p>
168+
169+
<a href="/" class="btn-home">Go to Homepage Now</a>
170+
</div>
171+
</body>
172+
</html>

0 commit comments

Comments
 (0)