@@ -8,8 +8,9 @@ <h1 class="text-4xl font-bold mb-8 dark:text-white">Resources</h1>
8
8
< table class ="min-w-full bg-white dark:bg-gray-800 rounded-lg overflow-hidden ">
9
9
< thead class ="text-lg bg-gray-100 dark:bg-gray-900 transition-colors ">
10
10
< tr >
11
- < th class ="px-6 py-3 text-left text-gray-700 dark:text-gray-200 w-1/2 "> Event Name</ th >
12
- < th class ="px-6 py-3 text-center text-gray-700 dark:text-gray-200 w-1/2 "> Resources</ th >
11
+ < th class ="px-6 py-3 text-left text-gray-700 dark:text-gray-200 w-1/3 "> Event Name</ th >
12
+ < th class ="px-6 py-3 text-left text-gray-700 dark:text-gray-200 w-1/3 "> Event Date</ th >
13
+ < th class ="px-6 py-3 text-center text-gray-700 dark:text-gray-200 w-1/3 "> Resources</ th >
13
14
</ tr >
14
15
</ thead >
15
16
< tbody id ="resources-body " class ="divide-y divide-gray-100 dark:divide-gray-600 ">
@@ -39,9 +40,16 @@ <h1 class="text-4xl font-bold mb-8 dark:text-white">Resources</h1>
39
40
const m = event . metadata || { } ;
40
41
return m . empty_slides || m . filled_slides || m . recording ;
41
42
} ) . map ( event => {
43
+ const startDate = new Date ( event . start ) ;
44
+ const formattedStartDate = startDate . toLocaleDateString ( 'en-US' , {
45
+ year : 'numeric' ,
46
+ month : 'long' ,
47
+ day : 'numeric'
48
+ } ) ;
42
49
return {
43
50
id : event . id ,
44
51
title : event . title || 'Untitled Event' ,
52
+ date : formattedStartDate ,
45
53
calendarLink : `https://www.acm.illinois.edu/calendar?id=${ event . id } &host=Academic+Committee` ,
46
54
resources : {
47
55
empty_slides : event . metadata ?. empty_slides || null ,
@@ -86,6 +94,7 @@ <h1 class="text-4xl font-bold mb-8 dark:text-white">Resources</h1>
86
94
${ event . title }
87
95
</a>
88
96
</td>
97
+ <td class="px-6 py-4">${ event . date || 'TBD' } </td>
89
98
<td class="px-6 py-4">
90
99
<div class="flex flex-wrap justify-center gap-4">
91
100
${ generateResourceIcons ( event . resources ) }
0 commit comments