From 7296e1f6df59562dabef21313d90deb48cff775d Mon Sep 17 00:00:00 2001 From: Tyler Hill Date: Mon, 12 Aug 2024 12:57:26 -0500 Subject: [PATCH] Switch to new calendar --- src/components/Footer.tsx | 3 - src/components/Navbar.tsx | 2 +- src/pages/api/getCalendar.ts | 2 +- src/pages/contact.tsx | 2 +- src/pages/resources/calendar.tsx | 59 ++++++-- src/pages/resources/meetings.tsx | 229 ------------------------------- 6 files changed, 50 insertions(+), 247 deletions(-) delete mode 100644 src/pages/resources/meetings.tsx diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 1fdee32..5dd379b 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -61,9 +61,6 @@ const Footer = () => { Project Governance - - Meetings - Calendar diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index ce75d30..4a097f9 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -323,7 +323,7 @@ const Navbar = (props: Props) => { ))} (
-

+

Discord is the best place to stay up to date with our latest updates and events.

{ const important = - props.name.includes('Kickoff') || - props.name.includes('Social') || - props.name.includes('All-Hands'); + !props.name.includes('Project Meeting') && + !props.name.includes('Division Meeting') && + !props.name.includes('After Hours'); const start = new Date(props.start); const end = new Date(props.end); @@ -150,7 +150,6 @@ const Calendar = () => { if (data.message !== 'success') { throw new Error(data.message); } - console.log(data.data); setEvents(data.data.data.items); setState('done'); }) @@ -230,13 +229,46 @@ const Calendar = () => { ); if (state === 'loading') { - result =

Loading...

; - } else if (state === 'done') { result = ( -
-
{...labelsAndEvents}
+
+

+ January +

+

+ 19 Monday +

+
+

After Hours

+

7:00 - 9:00 PM

+

AD 2.232

+
+

+ January +

+

+ 19 Monday +

+
+

After Hours

+

7:00 - 9:00 PM

+

AD 2.232

+
+

+ January +

+

+ 19 Monday +

+
+

After Hours

+

7:00 - 9:00 PM

+

AD 2.232

+
); + //

Loading...

; + } else if (state === 'done') { + result =
{...labelsAndEvents}
; } return ( @@ -247,17 +279,20 @@ const Calendar = () => {
-
+

+ Stop by any of our events to see about becoming a new member! +

+
Subscribe in Google Calendar Subscribe with iCal @@ -265,7 +300,7 @@ const Calendar = () => { View on Discord
- {result} +
{result}