-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiscover.html
362 lines (349 loc) · 16.1 KB
/
discover.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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Truth Web</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<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);
}
.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);
}
}
</style>
</head>
<body class="bg-[var(--bg-color)] text-[var(--text-color)] flex flex-col items-center justify-center min-h-screen transition-colors duration-300 light-mode">
<!-- 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 id="menuButton" class="text-[var(--text-color)] mr-4 icon">
<i class="fas fa-bars text-xl sm:text-2xl"></i>
</button>
<a href="home.html" class="text-[var(--text-color)] mr-4 flex items-center">
<span class="logo-text ml-2">TruthWeb</span>
</a>
</div>
<div class="flex items-center">
<a href="notifications.html" class="text-[var(--text-color)] mr-4 icon">
<i class="fas fa-bell text-xl sm:text-2xl"></i>
</a>
<a href="messages.html" class="text-[var(--text-color)] mr-4 icon">
<i class="fas fa-comments text-xl sm:text-2xl"></i>
</a>
<a href="profile.html" class="text-[var(--text-color)] icon">
<i class="fas fa-user text-xl sm:text-2xl"></i>
</a>
</div>
</div>
<!-- Top Below Header -->
<div class="text-center fade-in mb-12 mt-16">
<h1 class="text-2xl font-bold mb-2">Discover 🌐</h1>
<h1 class="text-xl font-bold mb-8">Welcome to Reimagine Truth</h1>
<div class="grid grid-cols-3 gap-4 sm:gap-6">
<div class="flex flex-col items-center bounce-in">
<a href="index.html" class="icon-container bg-[var(--icon-bg-color)] p-3 sm:p-4 rounded-lg border-2 border-[var(--border-color)] icon">
<i class="fas fa-house-chimney text-3xl sm:text-4xl text-[var(--text-color)]"></i>
</a>
<p class="mt-2 text-sm sm:text-base">Home</p>
</div>
<div class="flex flex-col items-center bounce-in">
<a href="wiki.html" class="icon-container bg-[var(--icon-bg-color)] p-3 sm:p-4 rounded-lg border-2 border-[var(--border-color)] icon">
<i class="fas fa-book-open text-3xl sm:text-4xl text-[var(--text-color)]"></i>
</a>
<p class="mt-2 text-sm sm:text-base">Wiki</p>
</div>
<div class="flex flex-col items-center bounce-in">
<a href="whitepaper.html" class="icon-container bg-[var(--icon-bg-color)] p-3 sm:p-4 rounded-lg border-2 border-[var(--border-color)] icon">
<i class="fas fa-file-alt text-3xl sm:text-4xl text-[var(--text-color)]"></i>
</a>
<p class="mt-2 text-sm sm:text-base">Whitepaper</p>
</div>
<div class="flex flex-col items-center bounce-in">
<a href="rto-token.html" class="icon-container bg-[var(--icon-bg-color)] p-3 sm:p-4 rounded-lg border-2 border-[var(--border-color)] icon">
<i class="fas fa-coins text-3xl sm:text-4xl text-[var(--text-color)]"></i>
</a>
<p class="mt-2 text-sm sm:text-base">RTO Token</p>
</div>
<div class="flex flex-col items-center bounce-in">
<a href="profile.html" class="icon-container bg-[var(--icon-bg-color)] p-3 sm:p-4 rounded-lg border-2 border-[var(--border-color)] icon">
<i class="fas fa-user-circle text-3xl sm:text-4xl text-[var(--text-color)]"></i>
</a>
<p class="mt-2 text-sm sm:text-base">Profile</p>
</div>
<div class="flex flex-col items-center bounce-in">
<a href="listing.html" class="icon-container bg-[var(--icon-bg-color)] p-3 sm:p-4 rounded-lg border-2 border-[var(--border-color)] icon">
<i class="fas fa-list-alt text-3xl sm:text-4xl text-[var(--text-color)]"></i>
</a>
<p class="mt-2 text-sm sm:text-base">Listing</p>
</div>
<div class="flex flex-col items-center bounce-in">
<a href="marketplace.html" class="icon-container bg-[var(--icon-bg-color)] p-3 sm:p-4 rounded-lg border-2 border-[var(--border-color)] icon">
<i class="fas fa-store text-3xl sm:text-4xl text-[var(--text-color)]"></i>
</a>
<p class="mt-2 text-sm sm:text-base">Marketplace</p>
</div>
<div class="flex flex-col items-center bounce-in">
<a href="nft-collection.html" class="icon-container bg-[var(--icon-bg-color)] p-3 sm:p-4 rounded-lg border-2 border-[var(--border-color)] icon">
<i class="fas fa-images text-3xl sm:text-4xl text-[var(--text-color)]"></i>
</a>
<p class="mt-2 text-sm sm:text-base">NFT Collection</p>
</div>
<div class="flex flex-col items-center bounce-in">
<a href="airdrop.html" class="icon-container bg-[var(--icon-bg-color)] p-3 sm:p-4 rounded-lg border-2 border-[var(--border-color)] icon">
<i class="fas fa-gift text-3xl sm:text-4xl text-[var(--text-color)]"></i>
</a>
<p class="mt-2 text-sm sm:text-base">Airdrop</p>
</div>
</div>
</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">
<div class="flex justify-around items-center h-16">
<a href="home.html" class="relative icon-container text-[var(--text-color)] icon">
<i class="fas fa-home text-xl sm:text-2xl"></i>
</a>
<a href="search.html" class="icon-container text-[var(--text-color)] icon">
<i class="fas fa-search text-xl sm:text-2xl"></i>
</a>
<a href="edit.html" class="icon-container text-[var(--text-color)] icon">
<i class="fas fa-edit text-xl sm:text-2xl"></i>
</a>
<a href="users.html" class="icon-container text-[var(--text-color)] icon">
<i class="fas fa-users text-xl sm:text-2xl"></i>
</a>
<a href="notifications.html" class="icon-container text-[var(--text-color)] icon">
<i class="fas fa-bell text-xl sm:text-2xl"></i>
</a>
<a href="messages.html" class="icon-container text-[var(--text-color)] icon">
<i class="fas fa-envelope text-xl sm:text-2xl"></i>
</a>
<button id="themeToggleButton" class="icon-container text-[var(--text-color)] icon">
<i id="themeIcon" class="fas text-xl sm:text-2xl fa-sun"></i>
</button>
</div>
</div>
<!-- Modal -->
<div id="infoModal" class="modal">
<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>
<!-- Left Drawer (Main Navigation) -->
<div id="menuDrawer" 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">
<div class="p-4">
<button id="closeButton" class="text-[var(--text-color)] mb-4 icon">
<i class="fas fa-times text-xl sm:text-2xl"></i>
</button>
<ul>
<li class="mb-2"><a href="home.html" class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon"><i class="fas fa-home mr-2"></i> Home</a></li>
<li class="mb-2"><a href="discover.html" class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon"><i class="fas fa-globe mr-2"></i> Discover</a></li>
<li class="mb-2"><a href="newsfeed.html" class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon"><i class="fas fa-bullhorn mr-2"></i> News Feed</a></li>
<li class="mb-2"><a href="groups.html" class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon"><i class="fas fa-users mr-2"></i> Groups</a></li>
<li class="mb-2"><a href="messages.html" class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon"><i class="fas fa-envelope mr-2"></i> Messages</a></li>
<li class="mb-2"><a href="analytics.html" class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon"><i class="fas fa-chart-bar mr-2"></i> Analytics</a></li>
<li class="mb-2"><a href="settings.html" class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon"><i class="fas fa-cog mr-2"></i> Settings</a></li>
<li class="mb-2"><a href="logout.html" class="text-[var(--text-color)] p-2 block rounded menu-item flex items-center icon"><i class="fas fa-sign-out-alt mr-2"></i> Logout</a></li>
<li class="mb-2">
<button id="openModalButton" class="text-[var(--text-color)] p-2 block rounded menu-item w-full text-left flex items-center icon">
<i class="fas fa-info-circle mr-2"></i> Info
</button>
</li>
</ul>
</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');
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
}
});
});
</script>
</body>
</html>