Skip to content

Commit 8a9dba0

Browse files
committed
add event date to the resources page
1 parent 0545264 commit 8a9dba0

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

resources.html

+11-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ <h1 class="text-4xl font-bold mb-8 dark:text-white">Resources</h1>
88
<table class="min-w-full bg-white dark:bg-gray-800 rounded-lg overflow-hidden">
99
<thead class="text-lg bg-gray-100 dark:bg-gray-900 transition-colors ">
1010
<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>
1314
</tr>
1415
</thead>
1516
<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>
3940
const m = event.metadata || {};
4041
return m.empty_slides || m.filled_slides || m.recording;
4142
}).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+
});
4249
return {
4350
id: event.id,
4451
title: event.title || 'Untitled Event',
52+
date: formattedStartDate,
4553
calendarLink: `https://www.acm.illinois.edu/calendar?id=${event.id}&host=Academic+Committee`,
4654
resources: {
4755
empty_slides: event.metadata?.empty_slides || null,
@@ -86,6 +94,7 @@ <h1 class="text-4xl font-bold mb-8 dark:text-white">Resources</h1>
8694
${event.title}
8795
</a>
8896
</td>
97+
<td class="px-6 py-4">${event.date || 'TBD'}</td>
8998
<td class="px-6 py-4">
9099
<div class="flex flex-wrap justify-center gap-4">
91100
${generateResourceIcons(event.resources)}

0 commit comments

Comments
 (0)