From 440115a43b13125177c2bde2a1b270c1409eafa7 Mon Sep 17 00:00:00 2001 From: SM Kamal Date: Tue, 26 May 2026 22:25:31 -0700 Subject: [PATCH 1/2] Animation added to board page --- src/components/board/BoardCard.tsx | 43 +++++++++++++++++++++--------- src/components/board/BoardGrid.tsx | 1 + 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/src/components/board/BoardCard.tsx b/src/components/board/BoardCard.tsx index c86353c..b998731 100644 --- a/src/components/board/BoardCard.tsx +++ b/src/components/board/BoardCard.tsx @@ -1,5 +1,6 @@ "use client"; +import { motion } from "motion/react"; import Link from "next/link"; import { useState } from "react"; import Image, { StaticImageData } from "next/image"; @@ -12,20 +13,36 @@ interface CardInfo { position: string; emailLink: string; about: string; + index: number; } -const BoardCard = ({ name, image, position, emailLink, about }: CardInfo) => { +const BoardCard = ({ + name, + image, + position, + emailLink, + about, + index, +}: CardInfo) => { const [showAbout, setShowAbout] = useState(false); return ( -
- {name} + + + {name} +
{name} @@ -38,7 +55,7 @@ const BoardCard = ({ name, image, position, emailLink, about }: CardInfo) => { @@ -52,11 +69,11 @@ const BoardCard = ({ name, image, position, emailLink, about }: CardInfo) => { - + -
+
); }; diff --git a/src/components/board/BoardGrid.tsx b/src/components/board/BoardGrid.tsx index 77e46ca..233e93a 100644 --- a/src/components/board/BoardGrid.tsx +++ b/src/components/board/BoardGrid.tsx @@ -32,6 +32,7 @@ const BoardGrid = () => { position={position} emailLink={emailLink} about={about} + index={index} />
))} From 9b03bf903a24758bcda0f131ae56c2c3fb7e1baa Mon Sep 17 00:00:00 2001 From: Briana Garcia Date: Thu, 18 Jun 2026 21:31:18 -0700 Subject: [PATCH 2/2] Board animation fixes --- src/components/board/BoardCard.tsx | 46 ++++++++++++++---------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/src/components/board/BoardCard.tsx b/src/components/board/BoardCard.tsx index b998731..cebc806 100644 --- a/src/components/board/BoardCard.tsx +++ b/src/components/board/BoardCard.tsx @@ -16,6 +16,13 @@ interface CardInfo { index: number; } +const boardAnimation = { + initial: { y: 20, opacity: 0 }, + whileInView: { y: 0, opacity: 1 }, + transition: { duration: 0.8 }, + viewport: { once: true }, +}; + const BoardCard = ({ name, image, @@ -28,37 +35,27 @@ const BoardCard = ({ return ( - - {name} - + {name}
{name}
-
+
{position}
- + {showAbout && (
@@ -66,13 +63,14 @@ const BoardCard = ({
)} - - - + + + + ); };