@@ -3,18 +3,18 @@ import { SwiperSlide } from 'swiper/react';
33import Carousel from './Carousel' ;
44import 'swiper/css' ;
55import 'swiper/css/navigation' ;
6- import Avatar from './Avatar ' ;
6+ import Avatar from './PresidentAvatar ' ;
77const CAROUSEL_CONTAINER = 'president-carousel text-white rounded-lg w-[20rem] h-full md:w-4/5 swiper-button-white flex justify-center items-center' ;
88const PRESIDENT_TILE =
9- 'bg-[#A689FF] bg-opacity-50 w-[20rem] h-[70rem] md:h-[20rem ] rounded-lg items-center p-14 lg:p-10 flex flex-col md:w-4/5 md:flex-row' ;
9+ 'bg-[#A689FF] bg-opacity-50 w-[20rem] h-[70rem] md:h-[25rem ] rounded-lg items-center p-14 lg:p-10 flex flex-col md:w-4/5 md:flex-row' ;
1010
1111
1212
1313const President = [ [ {
1414 name : "Jane Doe" ,
1515 position : "Co-Pres" ,
1616 year : "2025" ,
17- previousRole : "Events team " ,
17+ currRole : "current job " ,
1818 testimonial : "Wow I love this club" ,
1919 linkedin : "random link" ,
2020 pfp : {
@@ -30,7 +30,7 @@ const President = [[{
3030 name : "John Doe" ,
3131 position : "Co-Pres" ,
3232 year : "2025" ,
33- previousRole : "Events team" ,
33+ currRole : "Events team" ,
3434 testimonial : "Vitae eget venenatis rhoncus aliquet curabitur mauris, sed turpis nulla. Neque molestie mi placerat ultrices sit in sit." ,
3535 linkedin : "random link" ,
3636 pfp : {
@@ -59,28 +59,12 @@ const President = [[{
5959 } ,
6060 classes : "text-[#7055FD]" ,
6161} ,
62- {
63- name : "John Doe" ,
64- position : "Co-Pres" ,
65- year : "2025" ,
66- previousRole : "Events team" ,
67- testimonial : "Vitae eget venenatis rhoncus aliquet curabitur mauris, sed turpis nulla. Neque molestie mi placerat ultrices sit in sit." ,
68- linkedin : "random link" ,
69- pfp : {
70- fields : {
71- file : {
72- url : "//t3.ftcdn.net/jpg/05/16/27/58/360_F_516275801_f3Fsp17x6HQK0xQgDQEELoTuERO4SsWV.jpg"
73- }
74- }
75- } ,
76- classes : "text-[#7055FD]" ,
77- }
7862] ] ;
7963
80- const PresidentTile = ( { name, linkedin, pfp, classes, testimonial, position } ) => {
64+ const PresidentTile = ( { name, linkedin, pfp, classes, testimonial, position, currRole } ) => {
8165 return (
8266 < div className = { PRESIDENT_TILE } >
83- < Avatar key = { name } { ...{ name, linkedin, pfp, classes, position} } > </ Avatar >
67+ < Avatar key = { name } { ...{ name, linkedin, pfp, classes, position, currRole } } > </ Avatar >
8468 < p className = "text-[1.1rem] font-light italic leading-7 mx-auto md:ml-14 md:mb-24 md:text-[1.3rem] lg:text-[1.5rem] md:p-10 text-[#000000]" >
8569 < span className = "text-[2rem] font-extrabold" > "</ span >
8670 { testimonial }
@@ -99,7 +83,7 @@ const CoPresident = () => {
9983 < div className = 'bg-white w-full rounded-3xl h-full flex flex-col justify-center items-center gap-10 py-20' >
10084 < div className = 'text-[#000000] text-4xl absolute top-5 left-32' > { president [ 0 ] . year } </ div >
10185 < PresidentTile { ...president [ 0 ] } />
102- < PresidentTile { ...president [ 1 ] } />
86+ { president [ 1 ] && < PresidentTile { ...president [ 1 ] } /> }
10387 </ div >
10488 </ SwiperSlide >
10589 ) ) }
0 commit comments