diff --git a/src/css/EventSelector.module.css b/src/css/EventSelector.module.css
index 1f18a62..c5a8f40 100644
--- a/src/css/EventSelector.module.css
+++ b/src/css/EventSelector.module.css
@@ -42,7 +42,19 @@
min-height: 631px;
grid-row-gap: 31px;
grid-column-gap: 49px;
- grid-template-columns: 1fr 2fr;
+ grid-template-columns: 1fr 1fr 1fr;
+}
+
+@media screen and (max-width: 1200px) {
+ .eventsNotes {
+ grid-template-columns: 1fr 1fr;
+ }
+}
+
+@media screen and (max-width: 840px) {
+ .eventsNotes {
+ grid-template-columns: 1fr;
+ }
}
.eventsNotesMobile {
diff --git a/src/css/Note.module.css b/src/css/Note.module.css
index 72def96..ab8e454 100644
--- a/src/css/Note.module.css
+++ b/src/css/Note.module.css
@@ -5,6 +5,11 @@
width: fit-content;
}
+.container.containerExpandable {
+ width: 100%;
+ max-width: 500px;
+}
+
.pageCurl {
position: absolute;
bottom: 0;
diff --git a/src/utils/upcomingEvents.js b/src/utils/upcomingEvents.js
index 42f947d..c7dc8e9 100644
--- a/src/utils/upcomingEvents.js
+++ b/src/utils/upcomingEvents.js
@@ -1,4 +1,37 @@
const upcomingEvent = [
+ {
+ title: 'Audio Workshop',
+ day: '28',
+ month: 'Jul',
+ location: 'SFU Library',
+ time: '5:30PM – 7:30PM',
+ link: 'https://lu.ma/a5m6mqwe',
+ filterSetting: 'Workshops',
+ fbEvent:
+ 'https://www.facebook.com/events/589045982841057'
+ },
+ {
+ title: 'Audio Workshop',
+ day: '28',
+ month: 'Jul',
+ location: 'SFU Library',
+ time: '5:30PM – 7:30PM',
+ link: 'https://lu.ma/a5m6mqwe',
+ filterSetting: 'Workshops',
+ fbEvent:
+ 'https://www.facebook.com/events/589045982841057'
+ },
+ {
+ title: 'Audio Workshop',
+ day: '28',
+ month: 'Jul',
+ location: 'SFU Library',
+ time: '5:30PM – 7:30PM',
+ link: 'https://lu.ma/a5m6mqwe',
+ filterSetting: 'Workshops',
+ fbEvent:
+ 'https://www.facebook.com/events/589045982841057'
+ },
{
title: 'Audio Workshop',
day: '28',
@@ -116,4 +149,18 @@ const upcomingEvent = [
*/
]
-export default upcomingEvent
+export default upcomingEvent;
+
+// Internal Utility Functions:
+function dateOf(event) {
+ const time = event.time.split(' - ')[0].replace(/ *([AP]M)/g, ' $1');
+ return new Date(`${event.month} ${event.day} ${time}`);
+}
+
+// byDate: The events, listed in order of closest to furthest.
+export const byDate = upcomingEvent.sort((a, b) => {
+ const aDate = dateOf(a);
+ const bDate = dateOf(b);
+ return bDate - aDate;
+});
+