-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
132 lines (123 loc) · 3.71 KB
/
Copy path404.html
File metadata and controls
132 lines (123 loc) · 3.71 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page Not Found | SnowRunner Save Editor by MrBoxik</title>
<meta name="robots" content="noindex,follow">
<meta name="theme-color" content="#0d1a23">
<link rel="icon" type="image/x-icon" sizes="16x16 32x32 48x48 64x64 128x128 256x256" href="/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="/assets/icons/apple-touch-icon.png">
<style>
:root {
color-scheme: dark;
--bg: #0d141a;
--panel: #1d2931;
--text: #e6eef2;
--muted: #9db0bb;
--accent: #d1913d;
--line: #445763;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
display: grid;
place-items: center;
padding: 24px;
background:
radial-gradient(circle at top, rgba(115, 180, 206, 0.12), transparent 38%),
radial-gradient(circle at bottom right, rgba(209, 145, 61, 0.18), transparent 34%),
linear-gradient(180deg, #111920 0%, var(--bg) 100%);
color: var(--text);
font: 16px/1.5 "Segoe UI", Rajdhani, sans-serif;
}
main {
width: min(640px, 100%);
border: 1px solid var(--line);
border-radius: 18px;
background: rgba(29, 41, 49, 0.92);
box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
padding: 28px 24px;
}
h1 {
margin: 0 0 12px;
font-size: clamp(2rem, 4vw, 2.8rem);
line-height: 1;
text-transform: uppercase;
letter-spacing: 0.04em;
}
p {
margin: 0 0 12px;
color: var(--muted);
}
.note {
margin-top: 14px;
padding: 12px 14px;
border-radius: 12px;
border: 1px solid rgba(209, 145, 61, 0.35);
background: rgba(209, 145, 61, 0.12);
color: #f4dfc2;
}
.actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 18px;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 180px;
padding: 11px 16px;
border-radius: 12px;
text-decoration: none;
font-weight: 700;
letter-spacing: 0.03em;
text-transform: uppercase;
border: 1px solid rgba(209, 145, 61, 0.5);
background: linear-gradient(180deg, rgba(209, 145, 61, 0.34), rgba(145, 91, 26, 0.4));
color: #fff4e3;
}
code {
font-family: "Space Mono", Consolas, monospace;
font-size: 0.92em;
overflow-wrap: anywhere;
}
</style>
</head>
<body>
<main>
<h1>404</h1>
<p>This page does not exist.</p>
<p id="message">The link may be old or broken. Use the main homepage below.</p>
<div id="legacy-note" class="note" hidden>Old project-page link detected. Redirecting to the new root site.</div>
<div class="actions">
<a class="btn" href="/">Open Homepage</a>
</div>
</main>
<script>
(function () {
const oldPrefix = "/snowrunner-save-editor-web";
const path = String(window.location.pathname || "");
const lowerPath = path.toLowerCase();
const message = document.getElementById("message");
const legacyNote = document.getElementById("legacy-note");
if (lowerPath === oldPrefix || lowerPath.startsWith(oldPrefix + "/")) {
if (message) {
message.textContent = "This old project URL has moved to the root site.";
}
if (legacyNote) {
legacyNote.hidden = false;
}
window.setTimeout(() => {
window.location.replace("/");
}, 250);
}
})();
</script>
</body>
</html>