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