From 71d01b1b3273c1873a5943dd4643e46416275d60 Mon Sep 17 00:00:00 2001 From: Shivani Nandakumar Date: Wed, 22 Jan 2025 21:41:22 -0800 Subject: [PATCH 1/3] built an event, still need to add icons --- src/app/events/page.tsx | 13 +++++++++-- src/components/events/event.tsx | 39 +++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 src/components/events/event.tsx diff --git a/src/app/events/page.tsx b/src/app/events/page.tsx index 6d9ecf7..3f3321f 100644 --- a/src/app/events/page.tsx +++ b/src/app/events/page.tsx @@ -1,7 +1,16 @@ +import EventCard from "@/components/events/event"; + const Events = () => { return ( -
- This is the Events Page +
+
); }; diff --git a/src/components/events/event.tsx b/src/components/events/event.tsx new file mode 100644 index 0000000..d6348ef --- /dev/null +++ b/src/components/events/event.tsx @@ -0,0 +1,39 @@ +const EventCard = (props: { + day: string; + date: string; + title: string; + location: string; + time: string; + description: string; +}) => { + return ( +
+
+
+ {props.day} +
+
+ {props.date} +
+
+
+
+ {props.title} +
+
+
+ {props.location} +
+
+ {props.time} +
+
+
+ {props.description} +
+
+
+ ); +}; + +export default EventCard; From 29adc378b917d3c419c99760f0f0783fa9ab2cfc Mon Sep 17 00:00:00 2001 From: Shivani Nandakumar Date: Tue, 28 Jan 2025 00:21:41 -0800 Subject: [PATCH 2/3] removed hard coded vals --- src/components/events/event.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/events/event.tsx b/src/components/events/event.tsx index d6348ef..d9798cf 100644 --- a/src/components/events/event.tsx +++ b/src/components/events/event.tsx @@ -7,7 +7,7 @@ const EventCard = (props: { description: string; }) => { return ( -
+
{props.day} @@ -20,15 +20,15 @@ const EventCard = (props: {
{props.title}
-
-
+
+
{props.location}
-
+
{props.time}
-
+
{props.description}
From c462dcad7263892d761bdd7277085aa4cfb8c5da Mon Sep 17 00:00:00 2001 From: Shivani Nandakumar Date: Tue, 28 Jan 2025 00:40:51 -0800 Subject: [PATCH 3/3] fixed issue --- public/icons/locationIcon.svg | 1 + public/icons/timeIcon.svg | 1 + src/components/events/event.tsx | 17 ++++++++++++++--- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 public/icons/locationIcon.svg create mode 100644 public/icons/timeIcon.svg diff --git a/public/icons/locationIcon.svg b/public/icons/locationIcon.svg new file mode 100644 index 0000000..94fb406 --- /dev/null +++ b/public/icons/locationIcon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/icons/timeIcon.svg b/public/icons/timeIcon.svg new file mode 100644 index 0000000..dea1ba9 --- /dev/null +++ b/public/icons/timeIcon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/events/event.tsx b/src/components/events/event.tsx index d9798cf..7a6b381 100644 --- a/src/components/events/event.tsx +++ b/src/components/events/event.tsx @@ -1,3 +1,7 @@ +import Image from "next/image"; +import locationIcon from "@/public/icons/locationIcon.svg"; +import timeIcon from "@/public/icons/timeIcon.svg"; + const EventCard = (props: { day: string; date: string; @@ -20,11 +24,18 @@ const EventCard = (props: {
{props.title}
-
-
+
+
+ Location Icon {props.location}
-
+
+ Time Icon {props.time}