-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path404.html
More file actions
255 lines (220 loc) · 7.17 KB
/
404.html
File metadata and controls
255 lines (220 loc) · 7.17 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
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 - Page Not Found | FAForever Patchnotes</title>
<meta name="description" content="The page you're looking for doesn't exist. Return to FAForever Patchnotes.">
<!-- Favicon -->
<link rel="icon" href="./favicon.ico" type="image/x-icon">
<!-- Inline Critical CSS for fast loading -->
<style>
:root {
--background: #222831;
--text: #eee;
--accent: #00d2ff;
--accent-hover: #c2a732;
--card: #393e46;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: var(--background);
color: var(--text);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.error-container {
text-align: center;
max-width: 600px;
animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.error-code {
font-size: 120px;
font-weight: bold;
background: linear-gradient(135deg, var(--accent), var(--accent-hover));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 20px;
line-height: 1;
}
.error-title {
font-size: 32px;
margin-bottom: 16px;
color: var(--text);
}
.error-message {
font-size: 18px;
color: #bbb;
margin-bottom: 40px;
line-height: 1.6;
}
.button-group {
display: flex;
gap: 16px;
justify-content: center;
flex-wrap: wrap;
}
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 14px 28px;
border-radius: 8px;
text-decoration: none;
font-size: 16px;
font-weight: 600;
transition: all 0.3s ease;
border: none;
cursor: pointer;
}
.btn-primary {
background: var(--accent);
color: #000;
}
.btn-primary:hover {
background: var(--accent-hover);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 210, 255, 0.3);
}
.btn-secondary {
background: var(--card);
color: var(--text);
}
.btn-secondary:hover {
background: #4a5058;
transform: translateY(-2px);
}
.helpful-links {
margin-top: 60px;
padding-top: 40px;
border-top: 1px solid #444;
}
.helpful-links h3 {
font-size: 20px;
margin-bottom: 20px;
color: var(--text);
}
.links-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-top: 20px;
}
.link-card {
background: var(--card);
padding: 20px;
border-radius: 8px;
text-decoration: none;
color: var(--text);
transition: all 0.3s ease;
border: 2px solid transparent;
}
.link-card:hover {
border-color: var(--accent);
transform: translateY(-4px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.link-card-icon {
font-size: 32px;
margin-bottom: 12px;
}
.link-card-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 8px;
}
.link-card-desc {
font-size: 14px;
color: #bbb;
line-height: 1.4;
}
@media (max-width: 600px) {
.error-code {
font-size: 80px;
}
.error-title {
font-size: 24px;
}
.error-message {
font-size: 16px;
}
.button-group {
flex-direction: column;
}
.btn {
width: 100%;
justify-content: center;
}
.links-grid {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<div class="error-container">
<div class="error-code">404</div>
<h1 class="error-title">Page Not Found</h1>
<p class="error-message">
The patch note you're looking for doesn't exist or has been moved.
This might be a broken link, or the patch hasn't been published yet.
</p>
<div class="button-group">
<a href="/" class="btn btn-primary">
<span>🏠</span>
<span>Back to Home</span>
</a>
<button onclick="history.back()" class="btn btn-secondary">
<span>←</span>
<span>Go Back</span>
</button>
</div>
<div class="helpful-links">
<h3>Quick Navigation</h3>
<div class="links-grid">
<a href="/" class="link-card">
<div class="link-card-icon">📋</div>
<div class="link-card-title">All Patches</div>
<div class="link-card-desc">Browse complete patch archive</div>
</a>
<a href="https://www.faforever.com" class="link-card">
<div class="link-card-icon">🎮</div>
<div class="link-card-title">FAForever</div>
<div class="link-card-desc">Main FAF website</div>
</a>
<a href="https://discord.gg/mXahAXy" class="link-card">
<div class="link-card-icon">💬</div>
<div class="link-card-title">Discord</div>
<div class="link-card-desc">Join the community</div>
</a>
</div>
</div>
</div>
<script>
// Log 404 for analytics if available
if (window.logger) {
window.logger.warn('404 Page Not Found:', window.location.href);
}
// Report to analytics if available
if (window.userAnalytics) {
window.userAnalytics.trackEvent('error', {
type: '404',
path: window.location.pathname
});
}
</script>
</body>
</html>