Skip to content

Commit 792d423

Browse files
Añadir lista de participantes a las tarjetas de actividades y estilos correspondientes
1 parent c156075 commit 792d423

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

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+
<h5>Participants (${details.participants.length})</h5>
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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,30 @@ section h3 {
7474
margin-bottom: 8px;
7575
}
7676

77+
.activity-card .participants {
78+
margin-top: 15px;
79+
padding-top: 15px;
80+
border-top: 1px solid #e0e0e0;
81+
}
82+
83+
.activity-card .participants h5 {
84+
margin-bottom: 10px;
85+
color: #1a237e;
86+
font-size: 14px;
87+
font-weight: bold;
88+
}
89+
90+
.activity-card .participants ul {
91+
margin-left: 20px;
92+
list-style-type: disc;
93+
}
94+
95+
.activity-card .participants li {
96+
margin-bottom: 6px;
97+
color: #555;
98+
font-size: 14px;
99+
}
100+
77101
.form-group {
78102
margin-bottom: 15px;
79103
}

0 commit comments

Comments
 (0)