Skip to content

Commit 0bb8b1b

Browse files
committed
Add participants list display and styling to activity cards
1 parent 0e48802 commit 0bb8b1b

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

src/static/app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ 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+
<div class="participants">
29+
<strong>Participants:</strong>
30+
<ul>
31+
${details.participants.map(participant => `<li>${participant}</li>`).join("")}
32+
</ul>
33+
</div>
2834
`;
2935

3036
activitiesList.appendChild(activityCard);

src/static/styles.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,28 @@ footer {
142142
padding: 20px;
143143
color: #666;
144144
}
145+
146+
.participants {
147+
margin-top: 10px;
148+
padding: 10px;
149+
background-color: #eef7ff;
150+
border: 1px solid #cce4ff;
151+
border-radius: 5px;
152+
}
153+
154+
.participants strong {
155+
display: block;
156+
margin-bottom: 5px;
157+
color: #0056b3;
158+
}
159+
160+
.participants ul {
161+
list-style-type: disc;
162+
padding-left: 20px;
163+
margin: 0;
164+
}
165+
166+
.participants li {
167+
margin-bottom: 5px;
168+
color: #333;
169+
}

0 commit comments

Comments
 (0)