-
Notifications
You must be signed in to change notification settings - Fork 0
/
listing.html
461 lines (448 loc) · 15.3 KB
/
listing.html
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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>
Truth Web
</title>
<script src="https://cdn.tailwindcss.com">
</script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet"/>
<style>
.dark-mode {
--bg-color: #000;
--text-color: #fff;
--icon-bg-color: #2d3748;
--border-color: #4a5568;
--hover-bg-color: #4a5568;
}
.light-mode {
--bg-color: #fff;
--text-color: #000;
--icon-bg-color: #e2e8f0;
--border-color: #cbd5e0;
--hover-bg-color: #cbd5e0;
}
.icon-container {
transition: transform 0.3s ease, background-color 0.3s ease;
}
.icon-container:hover, .icon-container:focus {
transform: scale(1.1);
background-color: var(--hover-bg-color);
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes bounceIn {
0%, 20%, 40%, 60%, 80%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}
.fade-in {
animation: fadeIn 2s ease-in-out;
}
.bounce-in {
animation: bounceIn 1s ease-in-out;
}
.logo-text {
font-size: 1.5rem; /* Default size */
transition: font-size 0.3s ease;
}
@media (min-width: 640px) {
.logo-text {
font-size: 2rem; /* Resize for larger screens */
}
}
.drawer {
transform: translateX(-100%);
transition: transform 0.3s ease-in-out;
}
.drawer-open {
transform: translateX(0);
}
.right-drawer {
transform: translateX(100%);
transition: transform 0.3s ease-in-out;
}
.right-drawer-open {
transform: translateX(0);
}
.modal {
display: none;
position: fixed;
z-index: 50;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.5);
justify-content: center;
align-items: center;
}
.modal-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 500px;
border-radius: 10px;
color: black;
font-family: 'Open Sans', sans-serif;
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
.menu-item {
transition: transform 0.3s ease, background-color 0.3s ease;
}
.menu-item:hover, .menu-item:focus {
transform: scale(1.1);
background-color: var(--hover-bg-color);
}
.search-bar {
transition: width 0.3s ease-in-out;
}
.search-bar:focus {
width: 16rem; /* 64 */
}
.icon {
transition: transform 0.3s ease;
}
.icon:hover, .icon:focus {
transform: scale(1.1);
}
.breadcrumb {
display: flex;
align-items: center;
gap: 0.5rem;
}
.breadcrumb a {
color: var(--text-color);
text-decoration: none;
}
.breadcrumb a:hover {
text-decoration: underline;
}
.loading-spinner {
border: 4px solid rgba(0, 0, 0, 0.1);
border-left-color: var(--text-color);
border-radius: 50%;
width: 24px;
height: 24px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.slide-in {
animation: slideIn 0.5s ease-in-out;
}
@keyframes slideIn {
from {
transform: translateY(100%);
}
to {
transform: translateY(0);
}
}
.draggable {
position: absolute;
cursor: grab;
}
.hidden-card {
display: none;
}
</style>
</head>
<body class="bg-[var(--bg-color)] text-[var(--text-color)] flex flex-col items-center justify-start min-h-screen transition-colors duration-300 dark-mode overflow-y-auto">
<!-- Navigation Header -->
<div class="fixed top-0 left-0 right-0 bg-[var(--bg-color)] text-[var(--text-color)] flex justify-between items-center h-16 px-4 transition-colors duration-300 dark-mode">
<div class="flex items-center">
<button class="text-[var(--text-color)] mr-4 icon" id="menuButton">
<i class="fas fa-bars text-xl sm:text-2xl">
</i>
</button>
<a class="text-[var(--text-color)] mr-4 flex items-center" href="home.html">
<span class="logo-text ml-2">
TruthWeb
</span>
</a>
</div>
<div class="hidden sm:block">
<input class="search-bar bg-[var(--icon-bg-color)] text-[var(--text-color)] border-none p-2 rounded-full transition-width duration-300 focus:outline-none" placeholder="🔍 Search..." type="text"/>
</div>
<div class="flex items-center">
<a class="text-[var(--text-color)] mr-4 icon" href="notifications.html">
<i class="fas fa-bell text-xl sm:text-2xl">
</i>
</a>
<a class="text-[var(--text-color)] mr-4 icon" href="messages.html">
<i class="fas fa-comments text-xl sm:text-2xl">
</i>
</a>
<a class="text-[var(--text-color)] icon" href="profile.html">
<i class="fas fa-user text-xl sm:text-2xl">
</i>
</a>
</div>
</div>
<!-- 404 Content -->
<div class="text-center max-w-2xl mt-20 fade-in p-4">
<h1 class="text-3xl sm:text-4xl md:text-5xl font-bold mb-4">
Oops! You've Reached the TruthWeb 404
</h1>
<p class="text-base sm:text-lg md:text-xl">
We're sorry, but the page you're looking for isn't here. It seems to have vanished into the digital ether. Our team is on the case, trying to uncover the truth behind this missing page.
</p>
<img alt="Animated 404 error page with a magnifying glass searching for the missing page" class="w-full h-auto mt-4 max-w-md mx-auto" src="https://i.ibb.co/8Ymt8NG/error-404-404.gif"/>
</div>
<!-- Content Card -->
<div class="bg-black text-white p-4 rounded-lg shadow-lg mt-4 max-w-xs mx-auto draggable hidden-card overflow-y-auto" id="contentCard" style="top: 82px; left: 51px; max-height: 300px;">
<h2 class="text-xl font-bold mb-2">
Recommended Content
</h2>
<p class="text-base mb-4">
While you're here, check out some of our latest articles and updates.
</p>
<ul class="list-disc list-inside">
<li class="mb-2">
<a class="text-blue-500 hover:underline" href="#">
How to Stay Informed in the Digital Age
</a>
</li>
<li class="mb-2">
<a class="text-blue-500 hover:underline" href="#">
Top 10 Tips for Online Privacy
</a>
</li>
<li class="mb-2">
<a class="text-blue-500 hover:underline" href="#">
The Future of Social Media
</a>
</li>
</ul>
<button class="bg-green-500 text-white px-4 py-2 rounded mt-4" id="recommendButton">
Recommend
</button>
</div>
<!-- Footer Navigation -->
<div class="fixed bottom-0 left-0 right-0 bg-[var(--bg-color)] text-[var(--text-color)] transition-colors duration-300 dark-mode slide-in">
<div class="flex justify-around items-center h-16">
<a class="relative icon-container text-[var(--text-color)] icon" href="home.html">
<i class="fas fa-home text-xl sm:text-2xl">
</i>
</a>
<a class="icon-container text-[var(--text-color)] icon" href="search.html">
<i class="fas fa-search text-xl sm:text-2xl">
</i>
</a>
<a class="icon-container text-[var(--text-color)] icon" href="edit.html">
<i class="fas fa-edit text-xl sm:text-2xl">
</i>
</a>
<a class="icon-container text-[var(--text-color)] icon" href="users.html">
<i class="fas fa-users text-xl sm:text-2xl">
</i>
</a>
<a class="icon-container text-[var(--text-color)] icon" href="notifications.html">
<i class="fas fa-bell text-xl sm:text-2xl">
</i>
</a>
<a class="icon-container text-[var(--text-color)] icon" href="messages.html">
<i class="fas fa-envelope text-xl sm:text-2xl">
</i>
</a>
<button class="icon-container text-[var(--text-color)] icon" id="themeToggleButton">
<i class="fas fa-moon text-xl sm:text-2xl" id="themeIcon">
</i>
</button>
</div>
</div>
<!-- Left Drawer (Main Navigation) -->
<div class="fixed top-0 left-0 h-full w-64 bg-[var(--bg-color)] text-[var(--text-color)] drawer transition-colors duration-300 dark-mode" id="menuDrawer">
<div class="p-4">
<button class="text-[var(--text-color)] mb-4 icon" id="closeButton">
<i class="fas fa-times text-xl sm:text-2xl">
</i>
</button>
<ul>
<li class="mb-2">
<a class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon" href="home.html">
<i class="fas fa-home mr-2">
</i>
Home
</a>
</li>
<li class="mb-2">
<a class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon" href="discover.html">
<i class="fas fa-globe mr-2">
</i>
Discover
</a>
</li>
<li class="mb-2">
<a class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon" href="newsfeed.html">
<i class="fas fa-bullhorn mr-2">
</i>
News Feed
</a>
</li>
<li class="mb-2">
<a class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon" href="groups.html">
<i class="fas fa-users mr-2">
</i>
Groups
</a>
</li>
<li class="mb-2">
<a class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon" href="messages.html">
<i class="fas fa-envelope mr-2">
</i>
Messages
</a>
</li>
<li class="mb-2">
<a class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon" href="analytics.html">
<i class="fas fa-chart-bar mr-2">
</i>
Analytics
</a>
</li>
<li class="mb-2">
<a class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon" href="settings.html">
<i class="fas fa-cog mr-2">
</i>
Settings
</a>
</li>
<li class="mb-2">
<a class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon" href="logout.html">
<i class="fas fa-sign-out-alt mr-2">
</i>
Logout
</a>
</li>
<li class="mb-2">
<button class="text-[var(--text-color)] p-2 block rounded menu-item w-full text-left flex items-center icon" id="openModalButton">
<i class="fas fa-info-circle mr-2">
</i>
Info
</button>
</li>
</ul>
</div>
</div>
<!-- Modal -->
<div class="modal" id="infoModal">
<div class="modal-content">
<span class="close" id="closeModalButton">
×
</span>
<h2>
About TruthWeb
</h2>
<p>
TruthWeb is a cutting-edge platform dedicated to delivering accurate, real-time information to users worldwide. 📚 Our mission is to ensure that everyone has seamless access to verified and up-to-date truths, fostering a more informed and connected global community. 🌐
</p>
</div>
</div>
<script>
const menuButton = document.getElementById('menuButton');
const closeButton = document.getElementById('closeButton');
const menuDrawer = document.getElementById('menuDrawer');
const themeToggleButton = document.getElementById('themeToggleButton');
const themeIcon = document.getElementById('themeIcon');
const body = document.body;
const openModalButton = document.getElementById('openModalButton');
const closeModalButton = document.getElementById('closeModalButton');
const infoModal = document.getElementById('infoModal');
const contentCard = document.getElementById('contentCard');
menuButton.addEventListener('click', () => {
menuDrawer.classList.add('drawer-open');
});
closeButton.addEventListener('click', () => {
menuDrawer.classList.remove('drawer-open');
});
themeToggleButton.addEventListener('click', () => {
if (body.classList.contains('dark-mode')) {
body.classList.remove('dark-mode');
body.classList.add('light-mode');
themeIcon.classList.remove('fa-moon');
themeIcon.classList.add('fa-sun');
} else {
body.classList.remove('light-mode');
body.classList.add('dark-mode');
themeIcon.classList.remove('fa-sun');
themeIcon.classList.add('fa-moon');
}
});
openModalButton.addEventListener('click', () => {
infoModal.style.display = 'flex';
});
closeModalButton.addEventListener('click', () => {
infoModal.style.display = 'none';
});
window.addEventListener('click', (event) => {
if (event.target == infoModal) {
infoModal.style.display = 'none';
}
});
// Add smooth navigation to buttons
document.querySelectorAll('a, button').forEach(element => {
element.addEventListener('click', (event) => {
const href = element.getAttribute('href');
if (href) {
event.preventDefault();
setTimeout(() => {
window.location.href = href;
}, 300); // Delay to allow smooth transition
}
});
});
// Make the content card draggable
const draggableElement = document.querySelector('.draggable');
let isDragging = false;
let offsetX, offsetY;
draggableElement.addEventListener('mousedown', (e) => {
isDragging = true;
offsetX = e.clientX - draggableElement.getBoundingClientRect().left;
offsetY = e.clientY - draggableElement.getBoundingClientRect().top;
draggableElement.style.cursor = 'grabbing';
});
document.addEventListener('mousemove', (e) => {
if (isDragging) {
draggableElement.style.left = `${e.clientX - offsetX}px`;
draggableElement.style.top = `${e.clientY - offsetY}px`;
}
});
document.addEventListener('mouseup', () => {
isDragging = false;
draggableElement.style.cursor = 'grab';
});
</script>
</body>
</html>