-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path404.html
More file actions
181 lines (166 loc) · 6.53 KB
/
404.html
File metadata and controls
181 lines (166 loc) · 6.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>4SP - 404</title>
<link rel="stylesheet" href="/css/style.css">
<script src="https://www.gstatic.com/firebasejs/9.6.10/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.6.10/firebase-auth-compat.js"></script>
<script src="/firebase-config.js"></script>
<script src="/url-changer.js"></script>
<script src="/panic-key.js"></script>
<style>
/* This inline style ensures the links are hidden by default before JS loads */
.logged-in-link, .logged-out-link {
display: none;
}
/* Page-specific styles for the 404 content */
body {
font-family: 'PrimaryFont', sans-serif;
}
.main-content {
padding: 60px 0;
line-height: 1.8;
font-family: 'PrimaryFont', sans-serif;
text-align: center;
}
.main-content h1 {
font-family: 'PrimaryFont', sans-serif;
font-size: 10em;
font-weight: 700;
margin: 0;
color: #333;
line-height: 1;
}
.main-content h2 {
font-family: 'PrimaryFont', sans-serif;
font-size: 2.5em;
margin-top: 10px;
margin-bottom: 20px;
color: #555;
}
.main-content p {
margin-bottom: 30px;
font-size: 1.2em;
color: #777;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.main-content .btn-home {
display: inline-block;
padding: 10px 30px;
font-size: 1.2em;
font-weight: bold;
color: #fff;
background-color: #6720bd;
border-radius: 16px;
text-decoration: none;
transition: background-color 0.3s ease;
font-family: 'PrimaryFont', sans-serif;
}
.main-content .btn-home:hover {
background-color: #4b138f; /* Darker hover color */
}
</style>
</head>
<body>
<section class="hero-section dark-bg">
<div class="container">
<h1>PAGE NOT FOUND</h1>
</div>
</section>
<header class="main-header light-bg">
<div class="container">
<div class="logo">
<img src="/images/logo-dark.png" alt="4SP Logo">
</div>
<nav class="main-nav">
<ul id="mainNavLinks">
<li class="dropdown" id="more-dropdown">
<a class="dropbtn">MORE</a>
</li>
<li class="logged-in-link"><a href="/logged-in/dashboard.html">DASHBOARD</a></li>
</ul>
</nav>
<div class="auth-buttons" id="authButtons">
</div>
</div>
</header>
<section class="news-bar light-bg">
<div class="container">
<p>ERROR: The page you requested could not be found.</p>
</div>
</section>
<main class="main-content light-bg">
<div class="container">
<h1>404</h1>
<h2>Oops! Looks like you're lost.</h2>
<p>
The page you are looking for might have been removed, had its name changed,
or is temporarily unavailable. Let's get you back on track.
</p>
<a href="/index.html" class="btn btn-home">GO TO HOMEPAGE</a>
</div>
</main>
<footer>
<div class="container">
<p>© 2025 4SP. All rights reserved.</p>
</div>
</footer>
<div class="dropdown-content" id="more-menu-content">
<div class="dropdown-header">MORE</div>
<hr class="dropdown-divider">
<a href="/index.html">HOME</a>
<a href="/the-story.html">THE STORY</a>
<a href="/legal.html">LEGAL</a>
<a href="https://buymeacoffee.com/4simpleproblems" target="_blank" rel="noopener noreferrer">DONATE</a>
</div>
<script>
// Firebase Authentication Logic
const authButtonsDiv = document.getElementById('authButtons');
const loggedInLinks = document.querySelectorAll('.logged-in-link');
const loggedOutLinks = document.querySelectorAll('.logged-out-link');
function logout() {
firebase.auth().signOut().catch(error => console.error('Error logging out:', error));
}
firebase.auth().onAuthStateChanged(user => {
authButtonsDiv.innerHTML = '';
if (user) {
authButtonsDiv.innerHTML = `<a href="#" class="btn btn-logout" onclick="logout()">LOGOUT</a>`;
loggedInLinks.forEach(link => link.style.display = 'inline-block');
loggedOutLinks.forEach(link => link.style.display = 'none');
} else {
authButtonsDiv.innerHTML = `<a href="/login.html" class="btn btn-login">LOGIN</a> <a href="/signup.html" class="btn btn-signup">SIGN UP</a>`;
loggedInLinks.forEach(link => link.style.display = 'none');
loggedOutLinks.forEach(link => link.style.display = 'inline-block');
}
});
// Dropdown Menu Logic
document.addEventListener('DOMContentLoaded', () => {
const dropdownTrigger = document.getElementById('more-dropdown');
const dropdownContent = document.getElementById('more-menu-content');
if (dropdownTrigger && dropdownContent) {
let hideTimeout;
const showMenu = () => {
clearTimeout(hideTimeout);
const rect = dropdownTrigger.getBoundingClientRect();
dropdownContent.style.top = `${window.scrollY + rect.bottom + 10}px`;
dropdownContent.style.left = `${rect.left}px`;
dropdownContent.classList.add('show');
};
const hideMenu = () => {
hideTimeout = setTimeout(() => {
dropdownContent.classList.remove('show');
}, 200);
};
dropdownTrigger.addEventListener('mouseenter', showMenu);
dropdownTrigger.addEventListener('mouseleave', hideMenu);
dropdownContent.addEventListener('mouseenter', () => clearTimeout(hideTimeout));
dropdownContent.addEventListener('mouseleave', hideMenu);
}
});
</script>
</body>
</html>