-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
64 lines (62 loc) · 2.63 KB
/
Copy path404.html
File metadata and controls
64 lines (62 loc) · 2.63 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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex">
<title>Redirecionando… · GL7 Internal Hub</title>
<style>
body { background:#0a0a0f; color:#e5e7eb; font-family: Inter, system-ui, sans-serif; margin:0;
min-height:100vh; display:flex; align-items:center; justify-content:center; text-align:center; }
.box { max-width:520px; padding:40px 24px; }
.logo { width:56px; height:56px; border-radius:14px; margin:0 auto 24px;
background:linear-gradient(135deg,#7c3aed,#a78bfa); color:#0a0a0f;
font-weight:700; font-size:22px; display:flex; align-items:center; justify-content:center; }
h1 { font-size:28px; margin:0 0 12px; }
.grad { background:linear-gradient(135deg,#a78bfa,#c4b5fd); -webkit-background-clip:text; background-clip:text; color:transparent; }
p { color:#9ca3af; font-size:16px; line-height:1.6; }
a { color:#a78bfa; text-decoration:none; font-weight:600; }
a:hover { color:#c4b5fd; }
.spin { width:28px; height:28px; margin:24px auto 0; border:3px solid #27272f;
border-top-color:#a78bfa; border-radius:50%; animation:s .8s linear infinite; }
@keyframes s { to { transform:rotate(360deg); } }
.hidden { display:none; }
</style>
</head>
<body>
<div class="box">
<div class="logo">GL7</div>
<!-- Estado: redirecionando -->
<div id="redirecting">
<h1>Esse endereço <span class="grad">mudou de nome</span>…</h1>
<p>Estamos te levando pro lugar certo. Um instante.</p>
<div class="spin"></div>
</div>
<!-- Estado: página realmente não existe -->
<div id="notfound" class="hidden">
<h1><span class="grad">404</span> · página não encontrada</h1>
<p>Esse conteúdo não existe (ou foi movido).<br>
Volta pro <a href="/">hub interno da GL7</a>.</p>
</div>
</div>
<script>
// MAPA DE REDIRECTS old -> new (1 linha por repo renomeado/movido).
// Sempre que renomear um repo com GitHub Pages, adicione a entrada aqui no MESMO commit.
var REDIRECTS = {
"ghost-system": "app-ghost-system"
};
(function () {
// primeiro segmento do path, ex: "/ghost-system/sub" -> "ghost-system"
var seg = location.pathname.replace(/^\/+/, "").split("/")[0];
if (REDIRECTS[seg]) {
var rest = location.pathname.replace(/^\/+[^\/]+/, ""); // mantém subpath
location.replace("/" + REDIRECTS[seg] + rest + location.search + location.hash);
} else {
// não é rename conhecido = 404 real
document.getElementById("redirecting").classList.add("hidden");
document.getElementById("notfound").classList.remove("hidden");
}
})();
</script>
</body>
</html>