From f12ba8085b92968b3b7b1e372bc829a3fcf6001e Mon Sep 17 00:00:00 2001 From: Aditya Date: Mon, 2 Oct 2023 22:04:56 +0530 Subject: [PATCH] Update board member card look and feel --- components/Boardmembercard.jsx | 54 +++++++++++++++++++++++++++------- components/Boardmembers.jsx | 37 +++++++++++++---------- 2 files changed, 66 insertions(+), 25 deletions(-) diff --git a/components/Boardmembercard.jsx b/components/Boardmembercard.jsx index 095f243..37e0480 100644 --- a/components/Boardmembercard.jsx +++ b/components/Boardmembercard.jsx @@ -1,22 +1,56 @@ +import React from "react"; import Image from "next/future/image"; +import { FaGithub, FaLinkedin } from "react-icons/fa"; /* eslint-disable */ -const BoardMemberCard = ({ givenName, img, role, color }) => { +const ReactIcon = (props) => { return ( -
+ <> + + {props?.Icon} + + + ); +}; + +const BoardMemberCard = ({ + givenName, + img, + role, + color, + desc, + github, + linkedIn, +}) => { + return ( +
-
-

{givenName}

-

+ +

+

{givenName}

+

{role}

+

"{desc}"

+
+ +
+ } link={github} /> + } link={linkedIn} />
); diff --git a/components/Boardmembers.jsx b/components/Boardmembers.jsx index 97b7e5c..c872f51 100644 --- a/components/Boardmembers.jsx +++ b/components/Boardmembers.jsx @@ -12,8 +12,11 @@ const BoardMembers = () => { const { width } = useWindowDimensions(); return ( -
+

The Board

2022-23

@@ -35,19 +38,23 @@ const BoardMembers = () => { modules={[Navigation]} className="mySwiper" > - {data.map(({ name, image, description, role, color }) => { - return ( - - - - ); - })} + {data.map( + ({ name, image, description, role, color, linkedIn, github }) => { + return ( + + + + ); + } + )} {/* Card */}