From 712e4b86916d75cb25020c41c1e5da98ab02ef26 Mon Sep 17 00:00:00 2001 From: scottfully <83400381+scottfully@users.noreply.github.com> Date: Fri, 9 May 2025 12:12:07 +1000 Subject: [PATCH 1/2] Hackathon events data is now stored in data/eventsData --- src/app/PastEvents/page.js | 72 ++---------- src/app/components/EventListingCard.js | 27 +++++ src/app/components/EventListings.js | 141 ------------------------ src/app/components/EventListingsGrid.js | 10 ++ src/app/components/Footer.js | 6 +- src/app/constants/routes.js | 1 + src/app/data/eventsData.js | 58 ++++++++++ src/app/events/[link]/page.js | 128 +++++++++++++++++++++ src/app/page.js | 32 +++++- src/app/utils/dateUtils.js | 18 +++ src/app/utils/eventUtils.js | 52 +++++++++ 11 files changed, 338 insertions(+), 207 deletions(-) create mode 100644 src/app/components/EventListingCard.js delete mode 100644 src/app/components/EventListings.js create mode 100644 src/app/components/EventListingsGrid.js create mode 100644 src/app/constants/routes.js create mode 100644 src/app/data/eventsData.js create mode 100644 src/app/events/[link]/page.js create mode 100644 src/app/utils/dateUtils.js create mode 100644 src/app/utils/eventUtils.js diff --git a/src/app/PastEvents/page.js b/src/app/PastEvents/page.js index fb725f51..96722b75 100644 --- a/src/app/PastEvents/page.js +++ b/src/app/PastEvents/page.js @@ -1,19 +1,19 @@ import Image from "next/image" import Header from "@/app/components/Header" import Footer from "@/app/components/Footer" +import Newsletter from "@/app/components/Newsletter" +import EventListingsGrid from "@/app/components/EventListingsGrid" +import { getPastHackathonEvents } from "@/app/data/eventsData"; -export default function EventListing() { +export default function PastHackathonEvents() { return (
< Header /> - - - {/* Event Listings */}
dino @@ -33,69 +33,19 @@ export default function EventListing() {
- - {/* Listings Grid */} -
+ +
+
- - {/* Listing 1 */} - -
- Event Image - -
-

CISSA x GMC 2025 Game Jam

-

Fri, Mar 7, 6:00 PM

-

Arts West Building (Building 148)

-
- - -
- - - - - - {/* Listing 2 */} - -
- Event Image - -
-

UNIHACK 2025 - ‎ ‎ -

-

Fri, Mar 14, 18:00 PM

-

Monash University Clayton Campus

-
- - -
- - - - - {/* Listing 3 */} -
- Event Image - -
-

MedHack: AI Hospital

-

Sat, Feb 15, 14:00 PM

-

Woodside Building for Technology and Design

-
- - -
- +
+ +
- - +