From e2efa98b3170f5218bf57b7280747b90901e1197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jasmine=20Tr=C3=ACnh?= <168297703+minnieland@users.noreply.github.com> Date: Thu, 28 Nov 2024 18:05:26 -0800 Subject: [PATCH] animated event lists. --- src/components/events/Event.tsx | 11 +++++++++-- src/components/events/EventList.tsx | 19 ++++++++++++++++--- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/components/events/Event.tsx b/src/components/events/Event.tsx index 39fb2eb..ee38bd2 100644 --- a/src/components/events/Event.tsx +++ b/src/components/events/Event.tsx @@ -1,3 +1,4 @@ +import { motion } from "framer-motion"; import Image from "next/image"; import Link from "next/link"; import star from "../../../public/star.webp"; @@ -10,7 +11,13 @@ interface EventProps { const Event: React.FC = ({ title, time, link }) => { return ( -
+ star icon = ({ title, time, link }) => { More info
- + ); }; diff --git a/src/components/events/EventList.tsx b/src/components/events/EventList.tsx index 2cd63e6..46e1cf1 100644 --- a/src/components/events/EventList.tsx +++ b/src/components/events/EventList.tsx @@ -1,13 +1,26 @@ +import { motion } from "framer-motion"; import Event from "./Event"; import { eventInfo } from "@/data/eventInfo"; const EventList = () => { return ( -
+

Upcoming Events

-
+ {eventInfo.map((event, index) => ( { link={event.link} /> ))} -
+
); };