From 37250081f2a8340fffb14942b12d42b291548e5f Mon Sep 17 00:00:00 2001 From: Khushveer malviya <115608753+khushveermalviya@users.noreply.github.com> Date: Fri, 31 May 2024 07:53:26 +0530 Subject: [PATCH] Update index.js UPDATE lINKDIN --- pages/team/index.js | 381 ++++++++++++++++++++++++++++---------------- 1 file changed, 247 insertions(+), 134 deletions(-) diff --git a/pages/team/index.js b/pages/team/index.js index 008637d..37cde39 100644 --- a/pages/team/index.js +++ b/pages/team/index.js @@ -1,7 +1,18 @@ -import TeamData from "../../data/teamData"; -import FacultyCard from "../../components/FacultyCard"; +import Image from "next/image"; +import { TeamData } from "../../components/TeamData"; +import { useEffect, useState } from "react"; +import { motion, useAnimation } from "framer-motion"; +import { FaLinkedin } from "react-icons/fa6"; const Team = () => { + const [show, setShow] = useState(false); + const controls = useAnimation(); + + useEffect(() => { + controls.start({ opacity: 1 }); + setShow(true); + }, [controls]); + const chiefPatron = TeamData.find((team) => team.personPosition === "CHIEF PATRON"); const patron = TeamData.find((team) => team.personPosition === "PATRON"); const coPatrons = TeamData.filter((team) => team.personPosition === "CO-PATRON"); @@ -22,165 +33,267 @@ const Team = () => { team.personName === "Mr. Shishir Singh" ); - const StudentConvener1 = [{ + const StudentConvner = [{ personImage: "/preet.jpg", - personName: "Preet" - }, { - personImage: "/Dev.jpg", - personName: "Dev Shalinkumar Agrawal" - }, { + personName:"Preet", + personLinkedIn:"https://www.linkedin.com/in/preet-kalani/" + },{ + personImage:"/Dev.jpg", + personName:"Dev Shalinkumar Agrawal", + personLinkedIn:"https://www.linkedin.com/in/dev-agrawal28/" + },{ personImage: "/Ayush.jpg", - personName: "Ayush Poddar" - }] - - const StudentConvener2 = [{ + personName:"Ayush Poddar", + personLinkedIn:"https://www.linkedin.com/in/ayush-poddar-324909245/" + },{ personImage: "/Aneerban.jpg", - personName: "Aneerban Saha" - }, { + personName:"Aneerban Saha", + personLinkedIn:"https://www.linkedin.com/in/aneerban-saha/" + },{ personImage: "/Lakshay.png", - personName: "Lakshya Goel" - }, { + personName:"Lakshya Goel", + personLinkedIn:"https://www.linkedin.com/in/ilakshya1/" + },,{ personImage: "/Manya.jpg", - personName: "Manya Goel" + personName:"Manya Goel", + personLinkedIn:"https://www.linkedin.com/in/manya-goel-8a6335222/" }] return ( -
-
-

TEAM

+
+

TEAM

-
-

Patron

-
-
- - -
+
+

Patron

+
+
+ {chiefPatron && ( +
+
+ {chiefPatron.personName} +
-

Co-Patron

- {( - <> -
-
- {coPatrons.map((coPatron, index) => ( - - ))} -
- - )} +
+

{chiefPatron.personName} + +

+ +

{chiefPatron.personPosition}

+

{chiefPatron.personOrganization}

+
+
+ +
+
+ )} -

Chair

- {( - <> -
-
- {secondLineMembers.map((member, index) => ( - - ))} -
- - )} + {patron && ( +
+
+ {patron.personName} + +
+
+

{patron.personName} + +

+ +

{patron.personPosition}

+

{patron.personOrganization}

+
+
+ +
+
+ )} +
+
+{coPatrons.length > 0 && ( + <> +

Co-Patron

+
+
+ {coPatrons.map((coPatron, index) => ( +
+
+ {coPatron.personName} + +
+
+

+ {coPatron.personName} +

+ +

{coPatron.personPosition}

+

{coPatron.personOrganization}

+
+
+ +
+
+ ))} +
+ +)} -

Program Chair

- {( + {secondLineMembers.length > 0 && ( <> -
-
- {thirdLineMembers.map((member, index) => ( - - ))} +

Chair

+
+
+ {secondLineMembers.map((member, index) => ( +
+
+ {member.personName} + +
+
+

+ {member.personName} +

+ + +

{member.personPosition}

+

{member.personOrganization}

+
+
+ + +
+
+))}
)} -

Convener

- {( + {thirdLineMembers.length > 0 && ( <> -
+

Program Chair

+
- {fifthLineMembers.map((member, index) => ( - - ))} + {thirdLineMembers.map((member, index) => ( +
+
+ {member.personName} + +
+
+

+ {member.personName} +

+ +

{member.personPosition}

+

{member.personOrganization}

+
+
+ +
+
+))}
)} -

Student Convener - 2023-24

- {( - <> -
-
- {StudentConvener1.map((member, index) => ( - - ))} -
-
- {StudentConvener2.map((member, index) => ( - - ))} +{fifthLineMembers.length > 0 && ( + <> +

Convener

+
+
+ {fifthLineMembers.map((member, index) => ( +
+
+ {member.personName} + +
+
+

+ {member.personName} +

+ +

+ {member.personPosition} +

+

{member.personOrganization}

+
+
+ +
+
+ ))} +
+ +)} + +{StudentConvner.length > 0 && ( + <> +

Student Convener 2023-24

+
+
+ {StudentConvner.map((member, index) => ( +
+
+ {member.personName} + +
+

{member.personName} +

+
+ +
+ {/*

{member.personPosition}

*/}
- - )} -
+
+
+ ))}
+ +)} +
+ ); };