-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
540 lines (500 loc) Β· 31.1 KB
/
index.html
File metadata and controls
540 lines (500 loc) Β· 31.1 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
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SnapGrid β Assignment 3</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- ββββββββββββββββββββββββββββββββββββββββββ
APP SHELL
ββββββββββββββββββββββββββββββββββββββββββ -->
<div class="app-shell">
<!-- ββ TOP NAV ββ -->
<nav class="top-nav">
<div class="nav-logo">
<span class="logo-mark">β</span>
<span class="logo-text">SnapGrid</span>
</div>
<div class="nav-center">
<span class="nav-hint">JavaScript Interactivity β Assignment 3</span>
</div>
<!-- TASK 1 button lives here -->
<button class="theme-toggle-btn" id="themeToggleBtn">
<span class="theme-icon" id="themeIcon">π</span>
<span class="theme-label" id="themeLabel">Dark Mode</span>
</button>
</nav>
<!-- ββ LAYOUT ββ -->
<div class="main-layout">
<!-- ββββ LEFT SIDEBAR β Profile ββββ -->
<aside class="sidebar">
<!-- Profile Card -->
<div class="profile-card">
<div class="profile-banner"></div>
<div class="profile-avatar-wrap">
<div class="profile-avatar">π§βπ»</div>
</div>
<div class="profile-info">
<h2 class="profile-name">Alex Rivera</h2>
<p class="profile-handle">@alexrivera</p>
<p class="profile-bio">Digital media student. Coffee enthusiast. Making things for the web. π¨</p>
</div>
<!-- Stats row -->
<div class="profile-stats">
<div class="stat-item">
<span class="stat-num" id="postCount">6</span>
<span class="stat-label">Posts</span>
</div>
<div class="stat-item">
<span class="stat-num" id="followerCount">1,284</span>
<span class="stat-label">Followers</span>
</div>
<div class="stat-item">
<span class="stat-num">394</span>
<span class="stat-label">Following</span>
</div>
</div>
<!-- TASK 2 follow button -->
<button class="follow-btn" id="followBtn">
<span id="followBtnText">β Follow</span>
</button>
</div>
<!-- Trending Tags (TASK 5 filter pills) -->
<div class="sidebar-card">
<h3 class="sidebar-card-title">Filter by Tag</h3>
<div class="tag-pills" id="tagPills">
<button class="tag-pill active" data-tag="all">All Posts</button>
<button class="tag-pill" data-tag="#design">#design</button>
<button class="tag-pill" data-tag="#webdev">#webdev</button>
<button class="tag-pill" data-tag="#photography">#photography</button>
<button class="tag-pill" data-tag="#dailylife">#dailylife</button>
</div>
<!-- TASK 5 result count -->
<p class="filter-result-msg" id="filterResultMsg">Showing all 6 posts</p>
</div>
<!-- Liked Posts Counter -->
<div class="sidebar-card likes-summary-card">
<h3 class="sidebar-card-title">β€οΈ Your Likes</h3>
<p class="likes-summary-text">You have liked <strong id="totalLikedCount">0</strong> post(s) on this profile.</p>
</div>
</aside>
<!-- ββββ MAIN FEED ββββ -->
<main class="feed-area">
<!-- ββ TASK 3 β Post Composer ββ -->
<div class="composer-card" id="composerCard">
<div class="composer-top">
<div class="composer-avatar">π§βπ»</div>
<textarea
class="composer-textarea"
id="composerTextarea"
placeholder="What's on your mind? Use #hashtags to tag your postβ¦"
maxlength="280"
></textarea>
</div>
<div class="composer-bottom">
<span class="char-counter" id="charCounter">280 characters remaining</span>
<button class="post-btn" id="postBtn" disabled>Post</button>
</div>
</div>
<!-- ββ POST FEED ββ -->
<div class="post-feed" id="postFeed">
<!-- Post 1 -->
<article class="post-card" data-tags="#design #webdev">
<div class="post-header">
<div class="post-avatar">π§βπ»</div>
<div class="post-meta">
<span class="post-author">Alex Rivera</span>
<span class="post-time">2 hours ago</span>
</div>
</div>
<p class="post-body">
Just finished redesigning my portfolio site from scratch. Went with a brutalist aesthetic this time β bold typography, raw grid layouts. Honestly the most fun I've had coding in months π€ <span class="post-tag">#design</span> <span class="post-tag">#webdev</span>
</p>
<div class="post-image pi-gradient-1">
<span class="pi-label">Portfolio Redesign</span>
</div>
<div class="post-actions">
<button class="like-btn" data-liked="false">
<span class="like-icon">π€</span>
<span class="like-count">142</span>
</button>
<span class="post-tag-display"><span class="post-tag">#design</span> <span class="post-tag">#webdev</span></span>
</div>
</article>
<!-- Post 2 -->
<article class="post-card" data-tags="#photography #dailylife">
<div class="post-header">
<div class="post-avatar">π§βπ»</div>
<div class="post-meta">
<span class="post-author">Alex Rivera</span>
<span class="post-time">Yesterday</span>
</div>
</div>
<p class="post-body">
Golden hour hits different when you're shooting on film. Decided to blow the dust off my grandfather's old camera. Every shot is a commitment β no deleting, no filters. <span class="post-tag">#photography</span> <span class="post-tag">#dailylife</span>
</p>
<div class="post-image pi-gradient-2">
<span class="pi-label">Film Photography πΈ</span>
</div>
<div class="post-actions">
<button class="like-btn" data-liked="false">
<span class="like-icon">π€</span>
<span class="like-count">98</span>
</button>
<span class="post-tag-display"><span class="post-tag">#photography</span> <span class="post-tag">#dailylife</span></span>
</div>
</article>
<!-- Post 3 -->
<article class="post-card" data-tags="#webdev">
<div class="post-header">
<div class="post-avatar">π§βπ»</div>
<div class="post-meta">
<span class="post-author">Alex Rivera</span>
<span class="post-time">2 days ago</span>
</div>
</div>
<p class="post-body">
CSS Grid saved my life today. Built a full responsive layout in like 30 lines. If you're still fighting floats and clearfixes in 2025 please let me help you π
<span class="post-tag">#webdev</span>
</p>
<div class="post-actions">
<button class="like-btn" data-liked="false">
<span class="like-icon">π€</span>
<span class="like-count">213</span>
</button>
<span class="post-tag-display"><span class="post-tag">#webdev</span></span>
</div>
</article>
<!-- Post 4 -->
<article class="post-card" data-tags="#design #photography">
<div class="post-header">
<div class="post-avatar">π§βπ»</div>
<div class="post-meta">
<span class="post-author">Alex Rivera</span>
<span class="post-time">3 days ago</span>
</div>
</div>
<p class="post-body">
Color theory is genuinely fascinating. Spent an hour just generating color palettes today. There's something meditative about finding combinations that just *feel* right. <span class="post-tag">#design</span> <span class="post-tag">#photography</span>
</p>
<div class="post-image pi-gradient-3">
<span class="pi-label">Color Exploration π¨</span>
</div>
<div class="post-actions">
<button class="like-btn" data-liked="false">
<span class="like-icon">π€</span>
<span class="like-count">77</span>
</button>
<span class="post-tag-display"><span class="post-tag">#design</span> <span class="post-tag">#photography</span></span>
</div>
</article>
<!-- Post 5 -->
<article class="post-card" data-tags="#dailylife">
<div class="post-header">
<div class="post-avatar">π§βπ»</div>
<div class="post-meta">
<span class="post-author">Alex Rivera</span>
<span class="post-time">4 days ago</span>
</div>
</div>
<p class="post-body">
There is something uniquely chaotic about doing all-nighters in a library that closes at midnight. Anyway, the assignment is submitted and the coffee is gone. Good night everyone β <span class="post-tag">#dailylife</span>
</p>
<div class="post-actions">
<button class="like-btn" data-liked="false">
<span class="like-icon">π€</span>
<span class="like-count">311</span>
</button>
<span class="post-tag-display"><span class="post-tag">#dailylife</span></span>
</div>
</article>
<!-- Post 6 -->
<article class="post-card" data-tags="#design #webdev">
<div class="post-header">
<div class="post-avatar">π§βπ»</div>
<div class="post-meta">
<span class="post-author">Alex Rivera</span>
<span class="post-time">5 days ago</span>
</div>
</div>
<p class="post-body">
Typography tip nobody asked for: stop using two different sans-serifs in the same design. Pick one. Pair it with a serif or a mono. Your layouts will instantly look more intentional β¨ <span class="post-tag">#design</span> <span class="post-tag">#webdev</span>
</p>
<div class="post-actions">
<button class="like-btn" data-liked="false">
<span class="like-icon">π€</span>
<span class="like-count">189</span>
</button>
<span class="post-tag-display"><span class="post-tag">#design</span> <span class="post-tag">#webdev</span></span>
</div>
</article>
</div><!-- /postFeed -->
</main>
</div><!-- /main-layout -->
</div><!-- /app-shell -->
<!-- ββββββββββββββββββββββββββββββββββββββββββ
ASSIGNMENT PANEL
ββββββββββββββββββββββββββββββββββββββββββ -->
<div class="assignment-panel">
<div class="assignment-inner">
<div class="asgn-header">
<div class="asgn-header-left">
<div class="asgn-badges">
<span class="abadge purple">JavaScript Interactivity</span>
<span class="abadge teal">Assignment 3</span>
<span class="abadge gold">20 Points</span>
</div>
<h1 class="asgn-title">SnapGrid β Social Media Profile Dashboard</h1>
<p class="asgn-desc">
You're a front-end developer at <strong>SnapGrid</strong>, a new social media startup. The designers have handed you a fully built profile page β but nothing works yet. Your job is to wire up all the interactivity using JavaScript DOM manipulation and event handling.
</p>
<div class="asgn-files">
<span class="file-chip">π index.html <em>provided β don't modify</em></span>
<span class="file-chip">π¨ styles.css <em>provided β don't modify</em></span>
<span class="file-chip">βοΈ solutions.js <em>write your code here</em></span>
</div>
</div>
</div>
<!-- ββ TASKS ββ -->
<div class="tasks-grid">
<!-- Task 1 -->
<div class="task-card">
<div class="task-head">
<span class="task-badge">Task 1</span>
<div class="task-title-row">
<h3>Dark / Light Mode Toggle</h3>
<span class="pts-chip">3 pts</span>
</div>
</div>
<div class="task-body">
<p>Wire up the <strong>Dark / Light Mode</strong> button in the top navigation bar so it switches the whole app's theme each time it is clicked.</p>
<ul>
<li>Select the button <code>#themeToggleBtn</code>, its icon <code>#themeIcon</code>, and its label <code>#themeLabel</code></li>
<li>Declare a boolean: <code>let isDark = true</code></li>
<li>Add a <code>click</code> event listener to the button</li>
<li>Inside the listener, flip <code>isDark</code> with <code>!isDark</code>, then:
<ul>
<li>Use <code>document.documentElement.setAttribute('data-theme', ...)</code> β set to <code>"light"</code> or <code>"dark"</code></li>
<li><strong>Light mode:</strong> set <code>#themeIcon</code> text to <code>"βοΈ"</code> and <code>#themeLabel</code> text to <code>"Light Mode"</code></li>
<li><strong>Dark mode:</strong> set them back to <code>"π"</code> and <code>"Dark Mode"</code></li>
</ul>
</li>
</ul>
<div class="hint-box">π‘ <strong>Hint:</strong> <code>document.documentElement</code> refers to the <code><html></code> element β the <code>data-theme</code> attribute on it controls all CSS variables for both themes.</div>
</div>
</div>
<!-- Task 2 -->
<div class="task-card">
<div class="task-head">
<span class="task-badge">Task 2</span>
<div class="task-title-row">
<h3>Follow / Unfollow with Live Counter</h3>
<span class="pts-chip">4 pts</span>
</div>
</div>
<div class="task-body">
<p>Make the <strong>Follow button</strong> in the profile card toggle between following and not following β and update the follower count live.</p>
<ul>
<li>Select <code>#followBtn</code>, <code>#followBtnText</code>, and <code>#followerCount</code></li>
<li>Declare: <code>let isFollowing = false</code> and <code>let followers = 1284</code></li>
<li>Add a <code>click</code> listener to <code>#followBtn</code></li>
<li>Flip <code>isFollowing</code> each click, then:
<ul>
<li><strong>Now following:</strong> increment <code>followers</code> by 1, set button text to <code>"β
Following"</code>, add class <code>following</code> to <code>#followBtn</code></li>
<li><strong>Unfollowed:</strong> decrement <code>followers</code> by 1, set text to <code>"β Follow"</code>, remove class <code>following</code></li>
<li>In both cases, update <code>#followerCount.textContent</code> to the new <code>followers</code> value formatted with <code>toLocaleString()</code></li>
</ul>
</li>
</ul>
<div class="hint-box">π‘ <strong>Hint:</strong> <code>toLocaleString()</code> on a number automatically adds comma separators β so <code>(1285).toLocaleString()</code> gives <code>"1,285"</code>. Try it in the console!</div>
</div>
</div>
<!-- Task 3 -->
<div class="task-card task-card-featured">
<div class="task-head">
<span class="task-badge">Task 3</span>
<div class="task-title-row">
<h3>Live Post Composer</h3>
<span class="pts-chip">5 pts</span>
</div>
</div>
<div class="task-body">
<p>Bring the <strong>post composer</strong> (text box at the top of the feed) to life. It should count characters in real time and dynamically create a new post card when submitted.</p>
<ul>
<li>Select <code>#composerTextarea</code>, <code>#charCounter</code>, <code>#postBtn</code>, <code>#postFeed</code>, and <code>#postCount</code></li>
<li>Add an <code>input</code> event listener to <code>#composerTextarea</code>:
<ul>
<li>Calculate remaining characters: <code>280 - textarea.value.length</code></li>
<li>Update <code>#charCounter</code> text to <code>"X characters remaining"</code></li>
<li>If remaining < 20, add class <code>counter-warning</code> to <code>#charCounter</code>; otherwise remove it</li>
<li>Enable <code>#postBtn</code> if the trimmed value is not empty; otherwise keep it disabled</li>
</ul>
</li>
<li>Add a <code>click</code> listener to <code>#postBtn</code>:
<ul>
<li>Get the text from <code>textarea.value.trim()</code></li>
<li>Create a new <code><article></code> element with class <code>post-card new-post</code></li>
<li>Set its <code>data-tags</code> attribute to any hashtags found in the text (you can leave this as an empty string for now)</li>
<li>Set its <code>innerHTML</code> to the post card template shown below</li>
<li>Use <code>postFeed.prepend(newPost)</code> to add it at the <strong>top</strong> of the feed</li>
<li>Reset <code>textarea.value</code> to <code>""</code>, reset <code>#charCounter</code> to <code>"280 characters remaining"</code>, remove <code>counter-warning</code>, disable <code>#postBtn</code></li>
<li>Increment and update <code>#postCount</code></li>
</ul>
</li>
</ul>
<div class="template-box">
<p class="template-label">π New Post Card Template (use inside innerHTML):</p>
<pre class="code-block"><div class="post-header">
<div class="post-avatar">π§βπ»</div>
<div class="post-meta">
<span class="post-author">Alex Rivera</span>
<span class="post-time">Just now</span>
</div>
</div>
<p class="post-body">${postText}</p>
<div class="post-actions">
<button class="like-btn" data-liked="false">
<span class="like-icon">π€</span>
<span class="like-count">0</span>
</button>
</div></pre>
</div>
<div class="hint-box">π‘ <strong>Hint:</strong> Use a template literal (backtick string) for the <code>innerHTML</code>. After creating the new post, call <code>attachLikeListeners()</code> (from Task 4) so the new post's heart button works too!</div>
</div>
</div>
<!-- Task 4 -->
<div class="task-card">
<div class="task-head">
<span class="task-badge">Task 4</span>
<div class="task-title-row">
<h3>Like / Unlike Posts</h3>
<span class="pts-chip">4 pts</span>
</div>
</div>
<div class="task-body">
<p>Make the <strong>heart button</strong> on every post card toggle between liked and not liked, update the like count, and keep a running total in the sidebar.</p>
<ul>
<li>Write a <strong>named function</strong> <code>attachLikeListeners()</code> (Task 3 needs to call it after adding new posts)</li>
<li>Inside <code>attachLikeListeners()</code>, select all <code>.like-btn</code> elements and loop through them with <code>forEach</code></li>
<li>For each button, <strong>replace</strong> any old listener by cloning: <code>const fresh = btn.cloneNode(true); btn.parentNode.replaceChild(fresh, btn);</code></li>
<li>Add a <code>click</code> listener to the cloned <code>fresh</code> button:
<ul>
<li>Read the current liked state: <code>fresh.getAttribute('data-liked') === 'true'</code></li>
<li>Toggle: if liked β set <code>data-liked="false"</code>, subtract 1 from count, set icon to <code>"π€"</code>, remove class <code>liked</code></li>
<li>If not liked β set <code>data-liked="true"</code>, add 1 to count, set icon to <code>"β€οΈ"</code>, add class <code>liked</code></li>
<li>Update <code>.like-count</code> span inside the button with the new number</li>
<li>After toggling, call <code>updateTotalLikes()</code></li>
</ul>
</li>
<li>Write a second function <code>updateTotalLikes()</code>:
<ul>
<li>Count all <code>.like-btn[data-liked="true"]</code> elements</li>
<li>Update <code>#totalLikedCount</code> with that number</li>
</ul>
</li>
<li>Call <code>attachLikeListeners()</code> once at the bottom of your file to wire up the initial posts</li>
</ul>
<div class="hint-box">π‘ <strong>Hint:</strong> The clone trick (<code>cloneNode</code> + <code>replaceChild</code>) removes all old event listeners from a button before adding a new one β this prevents a button from firing the same action multiple times if <code>attachLikeListeners()</code> is called more than once.</div>
</div>
</div>
<!-- Task 5 -->
<div class="task-card">
<div class="task-head">
<span class="task-badge">Task 5</span>
<div class="task-title-row">
<h3>Hashtag Filter</h3>
<span class="pts-chip">4 pts</span>
</div>
</div>
<div class="task-body">
<p>Make the <strong>tag pills</strong> in the sidebar filter the post feed β clicking a tag shows only posts that include that hashtag.</p>
<ul>
<li>Select all <code>.tag-pill</code> elements and <code>#filterResultMsg</code></li>
<li>Loop through the pills with <code>forEach</code> and add a <code>click</code> listener to each</li>
<li>Inside the listener:
<ul>
<li>Remove class <code>active</code> from every pill, then add it to the clicked pill only</li>
<li>Read the filter value: <code>const tag = pill.getAttribute('data-tag')</code></li>
<li>Select all <code>.post-card</code> elements in <code>#postFeed</code></li>
<li>Loop through posts:
<ul>
<li>If <code>tag === "all"</code>, remove class <code>hidden</code> from every post</li>
<li>Otherwise, check if the post's <code>data-tags</code> attribute <code>includes(tag)</code>:
<ul>
<li>If yes β remove class <code>hidden</code></li>
<li>If no β add class <code>hidden</code></li>
</ul>
</li>
</ul>
</li>
<li>Count visible posts: filter the posts array where <code>!post.classList.contains('hidden')</code></li>
<li>Update <code>#filterResultMsg</code>:
<ul>
<li>If tag is <code>"all"</code>: <code>"Showing all X posts"</code></li>
<li>Otherwise: <code>"X post(s) tagged ${tag}"</code></li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="hint-box">π‘ <strong>Hint:</strong> <code>querySelectorAll()</code> returns a <strong>NodeList</strong>, not an array. Use <code>Array.from(document.querySelectorAll('.post-card'))</code> to convert it so you can use <code>.filter()</code> and <code>.length</code> on it easily.</div>
</div>
</div>
</div><!-- /tasks-grid -->
<!-- ββ RUBRIC ββ -->
<div class="rubric-wrap">
<h2 class="rubric-title">β Grading Rubric</h2>
<table class="rubric-table">
<thead>
<tr>
<th>Task</th>
<th>Pts</th>
<th>What We're Looking For</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Task 1 β Theme Toggle</strong></td>
<td>3</td>
<td>Boolean state used, <code>data-theme</code> attribute updated correctly, icon + label change both ways</td>
</tr>
<tr>
<td><strong>Task 2 β Follow Counter</strong></td>
<td>4</td>
<td>Follow/unfollow toggle works, count increments <em>and</em> decrements, <code>toLocaleString()</code> used, class added/removed</td>
</tr>
<tr>
<td><strong>Task 3 β Post Composer</strong></td>
<td>5</td>
<td><code>input</code> event used for counter, warning class applied at <20, post button enables/disables, new card created with <code>createElement</code> & <code>prepend</code>, post count updated, form reset after submit</td>
</tr>
<tr>
<td><strong>Task 4 β Like / Unlike</strong></td>
<td>4</td>
<td>Named function defined, clone technique used to prevent duplicate listeners, count updates correctly, sidebar total accurate</td>
</tr>
<tr>
<td><strong>Task 5 β Hashtag Filter</strong></td>
<td>4</td>
<td>Active pill updates correctly, posts hidden/shown using <code>includes()</code>, result message accurate, works on dynamically added posts</td>
</tr>
<tr class="rubric-total">
<td colspan="2"><strong>Total</strong></td>
<td><strong>20 Points</strong></td>
</tr>
</tbody>
</table>
</div>
<!-- ββ FOOTER ββ -->
<div class="asgn-footer">
<p>π <strong>Submit both files on Canvas:</strong> <code>index.html</code> and <code>solutions.js</code> β do not submit <code>styles.css</code></p>
<p>β οΈ <strong>Academic Integrity:</strong> All code must be your own work. Do not use AI tools or copy solutions from other students.</p>
</div>
</div><!-- /assignment-inner -->
</div><!-- /assignment-panel -->
<script src="solutions.js"></script>
</body>
</html>