diff --git a/public/pastevents/sui_hackathon2.png b/public/pastevents/sui_hackathon2.png new file mode 100644 index 0000000..aebb4ac Binary files /dev/null and b/public/pastevents/sui_hackathon2.png differ diff --git a/src/app/pastevents/page.tsx b/src/app/pastevents/page.tsx new file mode 100644 index 0000000..41f6eec --- /dev/null +++ b/src/app/pastevents/page.tsx @@ -0,0 +1,20 @@ +import * as React from "react"; +import Header from "../../components/Header"; +import Footer from "../../components/Footer"; +import PastEventsView from "../../components/views/pastevents/PastEventsView"; + +const PastEvents = () => { + return ( +
+
+
+ +
+
+ ); +}; + +export default PastEvents; + +export const Head = () => BSA - About; \ No newline at end of file diff --git a/src/assets/pastevents.tsx b/src/assets/pastevents.tsx new file mode 100644 index 0000000..03a8879 --- /dev/null +++ b/src/assets/pastevents.tsx @@ -0,0 +1,47 @@ +import { PastEventType } from "../types"; + +export const pastEvents: PastEventType[] = [ + { + img: "/pastevents/sui_hackathon2.png", + date: "9:00 AM - Oct 13 at 9:00 AM", + title: "SUI <> BSA Hackathon", + month: "OCT", + day: "12", + place: "Lausanne - BC Building", + description: + "The SUI <> BSA Hackathon second edition was an exciting event that brought together " + + "developers, students, and innovators to create groundbreaking solutions " + + "using the SUI blockchain.", + link: "https://sui.io", + }, + { + img: "", + date: "Friday 9:00 am - 9:00 am PDT", + title: "Event 2", + month: "JUN", + day: "15", + place: "Lausanne", + description: "Description of Event 2...", + link: "", + }, + { + img: "", + date: "Friday 9:00 am - 9:00 am PDT", + title: "Event 3", + month: "DEC", + day: "08", + place: "Lausanne", + description: "Description of Event 3...", + link: "", + }, + { + img: "", + date: "Friday 9:00 am - 9:00 am PDT", + title: "Event 2", + month: "FEB", + day: "28", + place: "Lausanne", + description: "Description of Event 4...", + link: "", + }, +]; diff --git a/src/components/Header.tsx b/src/components/Header.tsx index f2dd09d..6b5453f 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -20,6 +20,12 @@ const Links = () => { > Startups + + Past Events + ); }; diff --git a/src/components/views/pastevents/PastEventsView.tsx b/src/components/views/pastevents/PastEventsView.tsx new file mode 100644 index 0000000..1a64ead --- /dev/null +++ b/src/components/views/pastevents/PastEventsView.tsx @@ -0,0 +1,73 @@ +import React from "react"; +import Image from "next/image"; +import { pastEvents } from "../../../assets/pastevents"; + +const PastEventsView = () => { + return ( +
+
+

+ Past Events +

+

+ Here are all the past events either made or attended by the members of + the Blockchain Student association. +

+
+ {pastEvents.map((event, index) => ( + + ))} +
+
+
+ ); +}; +export default PastEventsView; + +const Event = ({ img, date, title, month, day, place, description, link }) => { + return ( + +
+
+ {title} +
+
+
+

{date}

+

{title}

+

{place}

+

+ {description} +

+
+
+
+

{month}

+

{day}

+
+
+
+ ); +}; diff --git a/src/types/index.tsx b/src/types/index.tsx index 9013191..2e2c1bd 100644 --- a/src/types/index.tsx +++ b/src/types/index.tsx @@ -40,3 +40,14 @@ export type StartupType = { description: string; link: string; }; + +export type PastEventType = { + img: string; + date: string; + title: string; + month: string; + day: string; + place: string; + description: string; + link: string; +};