File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments