-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
49 lines (49 loc) · 2.39 KB
/
404.html
File metadata and controls
49 lines (49 loc) · 2.39 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Page Not Found | FineTrack</title>
<style>
body { background: #f8fafc; color: #1e293b; font-family: Inter, system-ui, sans-serif; margin: 0; }
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.card { background: #fff; border-radius: 1.5rem; box-shadow: 0 8px 32px rgba(0,0,0,0.08); padding: 2rem; max-width: 28rem; width: 100%; text-align: center; border: 1px solid #f1f5f9; }
.icon { margin-bottom: 1rem; color: #2563eb; }
.title { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.5rem; }
.desc { color: #64748b; margin-bottom: 1.5rem; }
.btn { display: inline-block; margin: 0.25rem 0.5rem; padding: 0.75rem 2rem; border-radius: 0.75rem; font-size: 1.125rem; font-weight: 600; border: none; cursor: pointer; transition: background 0.2s; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #f1f5f9; color: #2563eb; border: 1px solid #dbeafe; }
.btn-secondary:hover { background: #e0e7ef; }
</style>
<script>
// GitHub Pages SPA redirect: preserve path for client-side routing
(function() {
var l = window.location;
var repo = '/FineTrack'; // Change if your repo name changes
if (l.pathname.startsWith(repo)) {
var redirect = repo + '/index.html?redirect=' + encodeURIComponent(l.pathname + l.search + l.hash);
window.location.replace(redirect);
} else {
// fallback: just go to root
window.location.replace(repo + '/index.html');
}
})();
</script>
</head>
<body>
<div class="center">
<div class="card">
<div class="icon">
<svg width="64" height="64" viewBox="0 0 24 24" fill="none">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z" fill="currentColor"/>
</svg>
</div>
<div class="title">Page Not Found</div>
<div class="desc">Sorry, the page you requested does not exist.</div>
<a href="/FineTrack/" class="btn btn-primary">Go to Dashboard</a>
</div>
</div>
</body>
</html>