-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.html
More file actions
510 lines (489 loc) · 17.3 KB
/
Copy pathmenu.html
File metadata and controls
510 lines (489 loc) · 17.3 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
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
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mobile Navigation with Search</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
sans-serif;
}
.header {
padding: 12px 16px;
border-bottom: 1px solid #eee;
display: flex;
align-items: center;
gap: 12px;
background: #fff;
position: sticky;
top: 0;
}
.back-button {
color: #666;
text-decoration: none;
display: flex;
align-items: center;
font-size: 16px;
min-width: 24px;
}
.search-container {
flex: 1;
position: relative;
}
.search-input {
width: 100%;
padding: 8px 12px;
border: none;
border-radius: 8px;
background: #f5f5f5;
font-size: 16px;
outline: none;
}
.search-input:focus {
background: #eeeeee;
}
.nav-list {
list-style: none;
}
.nav-item {
padding: 16px;
display: flex;
align-items: center;
border-bottom: 1px solid #f5f5f5;
transition: opacity 0.2s ease;
}
.nav-item.hidden {
display: none;
}
.nav-icon {
width: 24px;
height: 24px;
margin-right: 12px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
}
.nav-icon.vynil {
background-color: #00d780;
}
.nav-icon.read {
background-color: #1ec800;
}
.nav-icon.games {
background-color: #00d780;
}
.nav-icon.leetcode {
background-color: #00b8ff;
}
.nav-icon.quiz {
background-color: #00b8ff;
}
.nav-icon.robotics {
background-color: #00b8ff;
}
.nav-icon.videos {
background-color: #00b8ff;
}
.nav-icon.food {
background-color: #00b8ff;
}
.nav-icon.travel {
background-color: #00b8ff;
}
.nav-icon.github {
background-color: #00b8ff;
}
.nav-icon.pretty {
background-color: #00b8ff;
}
.nav-icon.anime {
background-color: #00b8ff;
}
.nav-icon.renders {
background-color: #00b8ff;
}
.nav-icon.music {
background-color: #00b8ff;
}
.nav-icon.blog {
background-color: #00b8ff;
}
.nav-icon.photo {
background-color: #00b8ff;
}
.nav-content {
flex: 1;
}
.nav-title {
font-size: 16px;
color: #333;
margin-bottom: 4px;
}
.nav-description {
font-size: 13px;
color: #666;
}
.no-results {
padding: 24px 16px;
text-align: center;
color: #666;
display: none;
}
</style>
</head>
<body>
<header class="header">
<a href="/" class="back-button">←</a>
<div class="search-container">
<input
type="text"
class="search-input"
placeholder="Search services..."
aria-label="Search services"
/>
</div>
</header>
<nav>
<ul class="nav-list">
<li
class="nav-item"
data-search="image capture flash photo picture camera ai"
onclick="handleMenuItemClick(event, 'photos')"
>
<div class="nav-icon photo">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">Photos</div>
<div class="nav-description">
Pictures taken by me or generated using AI
</div>
</div>
</li>
<li
class="nav-item"
data-search="eat meal dish vegetable plate restaurant food cook recipe peru"
onclick="handleMenuItemClick(event, 'food')"
>
<div class="nav-icon food">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">Food</div>
<div class="nav-description">
Recipes and tips on making Peruvian dishes
</div>
</div>
</li>
<li
class="nav-item"
data-search="abroad delta united ticket boarding visa passport train travel trip plane"
onclick="handleMenuItemClick(event, 'travel')"
>
<div class="nav-icon travel">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">Travel</div>
<div class="nav-description">Quick reviews on brief trips</div>
</div>
</li>
<li
class="nav-item"
data-search="fish bait ocean water river lake lagoon"
onclick="handleMenuItemClick(event, 'games')"
>
<div class="nav-icon games">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">Games</div>
<div class="nav-description">
Final products either published or on GitHub
</div>
</div>
</li>
<li
class="nav-item"
data-search="brain memory quiz knowledge question interest review study exam school smart intelligent"
onclick="handleMenuItemClick(event, 'quiz')"
>
<div class="nav-icon quiz">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">Quizzes</div>
<div class="nav-description">
Test your knowledge on basically anything
</div>
</div>
</li>
<li
class="nav-item"
data-search="github code programming php java cpp cmake js ts python bug pr commit"
onclick="handleMenuItemClick(event, 'github')"
>
<div class="nav-icon github">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">GitHub</div>
<div class="nav-description">Deep dive into written code</div>
</div>
</li>
<li
class="nav-item"
data-search="robot mechanical electronics charge verilog arduino wire chip programming cpp asm binary"
onclick="handleMenuItemClick(event, 'robots')"
>
<div class="nav-icon robotics">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">Robotics</div>
<div class="nav-description">Report on learning progress</div>
</div>
</li>
<li
class="nav-item"
data-search="leetcode programming icpc algorithm dfs bfs hackerrank codesignal oa interview codeforces math linear algebra"
onclick="handleMenuItemClick(event, 'leetcode')"
>
<div class="nav-icon leetcode">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">Leetcode</div>
<div class="nav-description">
Personal notes for continuous improvement
</div>
</div>
</li>
<li
class="nav-item"
data-search="pretty photos videos links books blog news music happy"
onclick="handleMenuItemClick(event, 'pretty')"
>
<div class="nav-icon pretty">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">Pretty Things</div>
<div class="nav-description">Set of unrelated beauty</div>
</div>
</li>
<li
class="nav-item"
data-search="read log book text notes lecture manual technical article journal cite academic"
onclick="handleMenuItemClick(event, 'read')"
>
<div class="nav-icon read">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">Reading Log</div>
<div class="nav-description">Tracking machine and notes</div>
</div>
</li>
<li
class="nav-item"
data-search="vynil record cd music cassette mp3 avi m4a lossless"
onclick="handleMenuItemClick(event, 'vynils')"
>
<div class="nav-icon vynil">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">Vynil</div>
<div class="nav-description">
Updates on an ever growing collection
</div>
</div>
</li>
<li
class="nav-item"
data-search="anime japan webtoon manga comic weeb"
onclick="handleMenuItemClick(event, 'anime')"
>
<div class="nav-icon anime">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">Anime</div>
<div class="nav-description">
Recommendations based on limited knowledge
</div>
</div>
</li>
<li
class="nav-item"
data-search="videos youtube mp4 media avi mov series show tv streaming interview"
onclick="handleMenuItemClick(event, 'videos')"
>
<div class="nav-icon videos">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">Videos</div>
<div class="nav-description">
Grouping of disconnected found media
</div>
</div>
</li>
<li
class="nav-item"
data-search="render blender 3d houdini maya autodesk model zbrush clay"
onclick="handleMenuItemClick(event, 'renders')"
>
<div class="nav-icon renders">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">3D Renders</div>
<div class="nav-description">
Sporadic updates on slowly expanding work
</div>
</div>
</li>
<li
class="nav-item"
data-search="music mp3 rec youtube spotify apple shazam"
onclick="handleMenuItemClick(event, 'music')"
>
<div class="nav-icon music">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">Music</div>
<div class="nav-description">
Recommendations on new songs to listen to
</div>
</div>
</li>
<li
class="nav-item"
data-search="news updates changes breaking journal article tv forum internet"
onclick="handleMenuItemClick(event, 'blog')"
>
<div class="nav-icon blog">
<svg width="16" height="16" fill="#fff" viewBox="0 0 24 24">
<path
d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
/>
</svg>
</div>
<div class="nav-content">
<div class="nav-title">Blog</div>
<div class="nav-description">
List of things that occur to me or the world
</div>
</div>
</li>
</ul>
<div class="no-results">No matching services found</div>
</nav>
<script>
const searchInput = document.querySelector(".search-input");
const navItems = document.querySelectorAll(".nav-item");
const noResults = document.querySelector(".no-results");
searchInput.addEventListener("input", function (e) {
const searchTerm = e.target.value.toLowerCase();
let hasResults = false;
navItems.forEach((item) => {
const searchContent = item.getAttribute("data-search").toLowerCase();
const title = item
.querySelector(".nav-title")
.textContent.toLowerCase();
const description = item
.querySelector(".nav-description")
.textContent.toLowerCase();
if (
searchContent.includes(searchTerm) ||
title.includes(searchTerm) ||
description.includes(searchTerm)
) {
item.classList.remove("hidden");
hasResults = true;
} else {
item.classList.add("hidden");
}
});
noResults.style.display = hasResults ? "none" : "block";
});
</script>
<script>
function handleMenuItemClick(event, endpoint) {
event.preventDefault();
// Store the endpoint in sessionStorage
sessionStorage.setItem("pendingEndpoint", endpoint);
// Redirect to home page
window.location.href = "/";
}
</script>
</body>
</html>