-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathmodules.html
More file actions
463 lines (428 loc) · 14.3 KB
/
Copy pathmodules.html
File metadata and controls
463 lines (428 loc) · 14.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modules — Interview Arcade</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles/main.css">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--ink: #111010;
--ink-muted: #6b6b6b;
--ink-faint: #e8e6e0;
--paper: #faf9f6;
--paper-off: #f1efe8;
--accent: #c84b2f;
--rule: #d8d6cf;
--font-display: 'DM Serif Display', Georgia, serif;
--font-body: 'DM Sans', system-ui, sans-serif;
--max: 1100px;
}
html { scroll-behavior: smooth; }
body {
font-family: var(--font-body);
background: var(--paper);
color: var(--ink);
min-height: 100vh;
overflow-x: hidden;
}
/* NAV */
nav {
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
background: var(--paper);
border-bottom: 1px solid var(--rule);
padding: 0 2rem;
height: 60px;
display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
font-family: var(--font-display);
font-size: 1.2rem;
color: var(--ink);
text-decoration: none;
}
.nav-brand span { color: var(--accent); }
.nav-back {
display: flex; align-items: center; gap: 6px;
font-size: 0.82rem;
font-weight: 500;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--ink-muted);
text-decoration: none;
transition: color 0.2s;
}
.nav-back:hover { color: var(--accent); }
/* PAGE HEADER */
.page-header {
padding-top: 60px;
max-width: var(--max);
margin: 0 auto;
padding-left: 2rem; padding-right: 2rem;
padding-bottom: 0;
}
.page-header-inner {
border-bottom: 1px solid var(--rule);
padding: 3.5rem 0 2.5rem;
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
animation: fadeUp 0.6s ease both;
}
.page-eyebrow {
font-size: 0.75rem;
font-weight: 500;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 0.75rem;
}
.page-title {
font-family: var(--font-display);
font-size: clamp(2.2rem, 4vw, 3.5rem);
line-height: 1.05;
letter-spacing: -0.02em;
}
.page-count {
font-size: 0.82rem;
font-weight: 500;
color: var(--ink-muted);
white-space: nowrap;
padding-bottom: 0.5rem;
}
/* FILTER BAR */
.filter-bar {
max-width: var(--max);
margin: 0 auto;
padding: 1.5rem 2rem;
display: flex;
gap: 8px;
flex-wrap: wrap;
animation: fadeUp 0.6s 0.1s ease both;
}
.filter-btn {
padding: 6px 16px;
font-family: var(--font-body);
font-size: 0.78rem;
font-weight: 500;
letter-spacing: 0.05em;
text-transform: uppercase;
background: transparent;
color: var(--ink-muted);
border: 1px solid var(--rule);
border-radius: 2px;
cursor: pointer;
transition: all 0.15s;
}
.filter-btn:hover, .filter-btn.active {
background: var(--ink);
color: var(--paper);
border-color: var(--ink);
}
/* MODULE GRID */
.modules-grid {
max-width: var(--max);
margin: 0 auto;
padding: 0 2rem 5rem;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1px;
background: var(--rule);
border: 1px solid var(--rule);
border-radius: 8px;
overflow: hidden;
}
.module-card {
background: var(--paper);
padding: 2rem;
text-decoration: none;
color: inherit;
display: flex;
flex-direction: column;
gap: 0;
position: relative;
transition: background 0.2s;
cursor: pointer;
min-height: 220px;
}
.module-card::after {
content: '→';
position: absolute;
bottom: 1.5rem; right: 1.75rem;
font-size: 1.1rem;
color: var(--ink-faint);
transition: color 0.2s, transform 0.2s;
}
.module-card:hover { background: var(--paper-off); }
.module-card:hover::after {
color: var(--accent);
transform: translateX(3px);
}
.card-number {
font-family: var(--font-display);
font-size: 1rem;
color: var(--ink-faint);
margin-bottom: 1.25rem;
line-height: 1;
}
.card-icon {
width: 44px; height: 44px;
border-radius: 6px;
display: flex; align-items: center; justify-content: center;
font-size: 20px;
margin-bottom: 1rem;
flex-shrink: 0;
}
/* Category color schemes */
.card-icon.game { background: #fce8e4; }
.card-icon.quiz { background: #e4edf9; }
.card-icon.data { background: #e5f1e5; }
.card-icon.tool { background: #faf0e0; }
.card-icon.debug { background: #f0e8f5; }
.card-icon.feed { background: #e8f5f0; }
.card-icon.dash { background: #f5f0e8; }
.card-tag {
display: inline-block;
font-size: 0.68rem;
font-weight: 500;
letter-spacing: 0.1em;
text-transform: uppercase;
padding: 3px 8px;
border-radius: 2px;
margin-bottom: 0.6rem;
width: fit-content;
}
.tag-game { background: #fce8e4; color: #9a3520; }
.tag-quiz { background: #e4edf9; color: #1a4a82; }
.tag-data { background: #e5f1e5; color: #2a6b2a; }
.tag-tool { background: #faf0e0; color: #7a5a10; }
.tag-debug { background: #f0e8f5; color: #5a2a7a; }
.tag-feed { background: #e8f5f0; color: #1a6b4a; }
.tag-dash { background: #f5f0e8; color: #6b4a1a; }
.card-title {
font-size: 1.05rem;
font-weight: 500;
color: var(--ink);
line-height: 1.3;
margin-bottom: 0.5rem;
margin-top: auto;
}
.card-desc {
font-size: 0.82rem;
font-weight: 300;
color: var(--ink-muted);
line-height: 1.55;
margin-top: 0.3rem;
}
/* BOTTOM BAND */
.bottom-band {
background: var(--paper-off);
border-top: 1px solid var(--rule);
padding: 3rem 2rem;
}
.bottom-inner {
max-width: var(--max);
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 1.5rem;
}
.band-text {}
.band-title {
font-family: var(--font-display);
font-size: 1.4rem;
color: var(--ink);
margin-bottom: 0.3rem;
}
.band-sub {
font-size: 0.85rem;
font-weight: 300;
color: var(--ink-muted);
}
.btn-sm {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 10px 20px;
background: var(--ink);
color: var(--paper);
font-family: var(--font-body);
font-size: 0.82rem;
font-weight: 500;
text-decoration: none;
border-radius: 3px;
transition: background 0.2s;
}
.btn-sm:hover { background: var(--accent); }
/* FOOTER */
footer {
border-top: 1px solid var(--rule);
padding: 1.5rem 2rem;
display: flex;
align-items: center;
justify-content: space-between;
max-width: var(--max);
margin: 0 auto;
flex-wrap: wrap;
gap: 1rem;
}
.footer-brand {
font-family: var(--font-display);
font-size: 1.1rem;
color: var(--ink);
}
.footer-brand span { color: var(--accent); }
.footer-note {
font-size: 0.78rem;
color: var(--ink-muted);
}
@keyframes fadeUp {
from { opacity: 0; transform: translateY(16px); }
to { opacity: 1; transform: translateY(0); }
}
/* Staggered card animation */
.module-card { animation: fadeUp 0.5s ease both; }
.module-card:nth-child(1) { animation-delay: 0.05s; }
.module-card:nth-child(2) { animation-delay: 0.10s; }
.module-card:nth-child(3) { animation-delay: 0.15s; }
.module-card:nth-child(4) { animation-delay: 0.20s; }
.module-card:nth-child(5) { animation-delay: 0.25s; }
.module-card:nth-child(6) { animation-delay: 0.30s; }
.module-card:nth-child(7) { animation-delay: 0.35s; }
.module-card:nth-child(8) { animation-delay: 0.40s; }
.module-card:nth-child(9) { animation-delay: 0.45s; }
.module-card:nth-child(10) { animation-delay: 0.50s; }
@media (max-width: 900px) {
.modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
.modules-grid { grid-template-columns: 1fr; }
nav { padding: 0 1.5rem; }
.page-header { padding-left: 1.5rem; padding-right: 1.5rem; }
.filter-bar { padding: 1.5rem; }
.modules-grid { margin: 0 1.5rem; padding-bottom: 3rem; }
}
</style>
</head>
<body>
<nav>
<a href="index.html" class="nav-brand">Interview <span>Arcade</span></a>
<a href="index.html" class="nav-back">
← Home
</a>
</nav>
<div class="page-header">
<div class="page-header-inner">
<div>
<div class="page-eyebrow">10 Modules</div>
<h1 class="page-title">Pick your game.</h1>
</div>
<div class="page-count">All modules · Pure JavaScript</div>
</div>
</div>
<div class="filter-bar">
<button class="filter-btn active" onclick="filterCards('all', this)">All</button>
<button class="filter-btn" onclick="filterCards('game', this)">Games</button>
<button class="filter-btn" onclick="filterCards('quiz', this)">Quizzes</button>
<button class="filter-btn" onclick="filterCards('data', this)">Data & SQL</button>
<button class="filter-btn" onclick="filterCards('tool', this)">Tools</button>
</div>
<div class="modules-grid" id="modulesGrid">
<a href="pages/tictactoe.html" class="module-card" data-category="game">
<div class="card-number">01</div>
<div class="card-icon game">♟</div>
<span class="card-tag tag-game">Game</span>
<div class="card-title">Tic Tac Toe + OOP Quiz</div>
<div class="card-desc">Two-player game. The loser must answer 5 OOP questions before the next round.</div>
</a>
<a href="pages/memory.html" class="module-card" data-category="game">
<div class="card-number">02</div>
<div class="card-icon game">🧩</div>
<span class="card-tag tag-game">Game</span>
<div class="card-title">Memory Card Game</div>
<div class="card-desc">Flip and match pairs of technical terms. Trains recall of key CS concepts.</div>
</a>
<a href="pages/aptitude.html" class="module-card" data-category="quiz">
<div class="card-number">03</div>
<div class="card-icon quiz">📝</div>
<span class="card-tag tag-quiz">Quiz</span>
<div class="card-title">Aptitude Quiz</div>
<div class="card-desc">Multiple-choice questions with explanations for every wrong answer you pick.</div>
</a>
<a href="pages/resume.html" class="module-card" data-category="tool">
<div class="card-number">04</div>
<div class="card-icon tool">📄</div>
<span class="card-tag tag-tool">Tool</span>
<div class="card-title">Resume Keyword Matcher</div>
<div class="card-desc">Upload your resume and match it against a target job role to find keyword gaps.</div>
</a>
<a href="pages/sql.html" class="module-card" data-category="data">
<div class="card-number">05</div>
<div class="card-icon data">🗄</div>
<span class="card-tag tag-data">SQL</span>
<div class="card-title">SQL Fill in the Blanks</div>
<div class="card-desc">Complete partial SQL queries and get instant feedback on your answers.</div>
</a>
<a href="pages/riddles.html" class="module-card" data-category="quiz">
<div class="card-number">06</div>
<div class="card-icon quiz">🖼</div>
<span class="card-tag tag-quiz">Riddle</span>
<div class="card-title">Image Riddles</div>
<div class="card-desc">Decode visual clues to guess the programming concept or term hidden in the image.</div>
</a>
<a href="pages/dsa-match.html" class="module-card" data-category="quiz">
<div class="card-number">07</div>
<div class="card-icon quiz">🔗</div>
<span class="card-tag tag-quiz">DSA</span>
<div class="card-title">DSA Match the Following</div>
<div class="card-desc">Draw lines to connect data structures and algorithms to their related definitions.</div>
</a>
<a href="pages/debug.html" class="module-card" data-category="data">
<div class="card-number">08</div>
<div class="card-icon debug">🐛</div>
<span class="card-tag tag-debug">Debug</span>
<div class="card-title">Debug the Code</div>
<div class="card-desc">Find and fix intentional bugs in code snippets across multiple languages.</div>
</a>
<a href="pages/feedback.html" class="module-card" data-category="tool">
<div class="card-number">09</div>
<div class="card-icon feed">💬</div>
<span class="card-tag tag-feed">Feedback</span>
<div class="card-title">Feedback System</div>
<div class="card-desc">Rate modules, leave comments, and help contributors improve the platform.</div>
</a>
<a href="pages/dashboard.html" class="module-card" data-category="tool">
<div class="card-number">10</div>
<div class="card-icon dash">📊</div>
<span class="card-tag tag-dash">Dashboard</span>
<div class="card-title">Progress Dashboard</div>
<div class="card-desc">Track your scores across all modules and see where you need more practice.</div>
</a>
</div>
<footer>
<div class="footer-brand">Interview <span>Arcade</span></div>
<div class="footer-note">Play. Learn. Crack Interviews.</div>
</footer>
<script>
function filterCards(category, btn) {
document.querySelectorAll('.filter-btn').forEach(b => b.classList.remove('active'));
btn.classList.add('active');
document.querySelectorAll('.module-card').forEach(card => {
if (category === 'all' || card.dataset.category === category) {
card.style.display = 'flex';
} else {
card.style.display = 'none';
}
});
}
</script>
</body>
</html>