Skip to content

Commit 0917dc4

Browse files
Add participant list to activity cards and style updates
1 parent c0e02f1 commit 0917dc4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/static/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ document.addEventListener("DOMContentLoaded", () => {
2525
<p>${details.description}</p>
2626
<p><strong>Schedule:</strong> ${details.schedule}</p>
2727
<p><strong>Availability:</strong> ${spotsLeft} spots left</p>
28+
<p><strong>Participants:</strong></p>
29+
<ul>
30+
${details.participants.map(participant => `<li>${participant}</li>`).join("")}
31+
</ul>
2832
`;
2933

3034
activitiesList.appendChild(activityCard);

src/static/styles.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ section h3 {
7474
margin-bottom: 8px;
7575
}
7676

77+
.activity-card ul {
78+
margin-top: 10px;
79+
padding-left: 20px;
80+
list-style-type: disc;
81+
color: #555;
82+
}
83+
84+
.activity-card ul li {
85+
margin-bottom: 5px;
86+
font-size: 14px;
87+
}
88+
7789
.form-group {
7890
margin-bottom: 15px;
7991
}

0 commit comments

Comments
 (0)