@@ -13,95 +13,105 @@ import AbhishekPatawariImage from "@/assets/images/Website_Team/AbhishekPatawari
1313import JayTrivediImage from "@/assets/images/Website_Team/JayTrivedi.png" ;
1414
1515const images = {
16- 1 : MiranFirdausiImage ,
17- 2 : AchyutShuklaImage ,
18- 3 : MitikshaPaliwalImage ,
19- 4 : AnkushDuttaImage ,
20- 5 : AbhishekPatawariImage ,
21- 6 : JayTrivediImage ,
16+ 1 : MiranFirdausiImage ,
17+ 2 : AchyutShuklaImage ,
18+ 3 : MitikshaPaliwalImage ,
19+ 4 : AnkushDuttaImage ,
20+ 5 : AbhishekPatawariImage ,
21+ 6 : JayTrivediImage ,
2222} ;
2323
2424const bgimages = {
25- 1 : RectangleRed ,
26- 2 : RectangleGreen ,
27- 3 : RectangleYellow ,
28- 4 : RectangleGreen ,
29- 5 : RectangleRed ,
30- 6 : RectangleYellow ,
25+ 1 : RectangleRed ,
26+ 2 : RectangleGreen ,
27+ 3 : RectangleYellow ,
28+ 4 : RectangleGreen ,
29+ 5 : RectangleRed ,
30+ 6 : RectangleYellow ,
3131} ;
32-
33-
3432function TeamMember ( { member } ) {
35- const { name, batch, description, linkedin, instagram, github, id } = member ;
36- const image = images [ id ] ;
33+ const { name, batch, description, linkedin, instagram, github, id } = member ;
34+ const image = images [ id ] ;
3735
38- return (
39- < div className = "relative group transition ease-in-out delay-150 hover:-translate-y-1 hover:scale-105 duration-200 cursor-pointer overflow-hidden p-8 align-middle max-w-[700px]" >
40- < div className = "overflow-hidden p-4 align-middle" >
41- < div className = "relative" >
42- < img
43- src = { bgimages [ id ] }
44- alt = "background"
45- className = "absolute bottom-1 left-1/2 rounded-md transform -translate-x-1/2 w-56 h-56 object-cover z-0 transition-transform duration-700 group-hover:scale-105"
46- />
47- < img
48- src = { image }
49- alt = { name }
50- className = "relative w-72 h-72 mx-auto object-cover z-10 filter grayscale transition duration-500 group-hover:filter-none group-hover:duration-500 group-hover:ease-in-out group-hover:delay-150 group-hover:scale-110"
51- />
52- </ div >
53- < h2 className = "text-4xl mt-10 font-poppins font-bold text-center tracking-wide text-text-light" >
54- { name }
55- </ h2 >
56- < p className = "text-xl mt-3 font-poppins text-center font-semibold tracking-wide text-text-light" >
57- { batch }
58- </ p >
59- < p className = "text-xl font-poppins my-5 text-center text-wrap text-secondary-light" >
60- { description }
61- </ p >
62- < div className = "absolute -left-1 top-[40%] transform -translate-y-1/2 opacity-0 group-hover:opacity-100 transition-opacity duration-500 sm:left-1 sm:top-[30%] md:left-4 md:top-[40%] lg:left-4 lg:top-[40%] xl:left-4 xl:top-[40%]" >
63- < div className = "flex flex-col space-y-4" >
64- < a
65- href = { linkedin }
66- target = "_blank"
67- rel = "noreferrer"
68- className = "text-white font-sans opacity-0 group-hover:opacity-100 transition-opacity duration-500 delay-100"
69- >
70- < img src = { LinkedInIcon } alt = "Linkedin" className = "w-10 h-10 sm:w-8 sm:h-8 md:w-10 md:h-10 lg:w-12 lg:h-12 p-2" />
71- </ a >
72- < a
73- href = { github }
74- target = "_blank"
75- rel = "noreferrer"
76- className = "text-white font-sans opacity-0 group-hover:opacity-100 transition-opacity duration-500 delay-200"
77- >
78- < img src = { GithubIcon } alt = "Github" className = "w-10 h-10 sm:w-8 sm:h-8 md:w-10 md:h-10 lg:w-12 lg:h-12 p-2" />
79- </ a >
80- < a
81- href = { instagram }
82- target = "_blank"
83- rel = "noreferrer"
84- className = "text-white font-sans opacity-0 group-hover:opacity-100 transition-opacity duration-500 delay-300"
85- >
86- < img src = { InstagramIcon } alt = "Instagram" className = "w-10 h-10 sm:w-8 sm:h-8 md:w-10 md:h-10 lg:w-12 lg:h-12 p-2" />
87- </ a >
88- </ div >
89- </ div >
90- </ div >
36+ return (
37+ < div className = "relative group transition ease-in-out delay-150 hover:-translate-y-1 hover:scale-105 duration-200 cursor-pointer overflow-hidden p-8 align-middle max-w-[700px]" >
38+ < div className = "overflow-hidden p-4 align-middle" >
39+ < div className = "relative" >
40+ < img
41+ src = { bgimages [ id ] }
42+ alt = "background"
43+ className = "absolute bottom-1 left-1/2 rounded-md transform -translate-x-1/2 w-40 h-40 sm:w-48 sm:h-48 md:w-56 md:h-56 lg:w-64 lg:h-64 object-cover z-0 transition-transform duration-700 group-hover:scale-105"
44+ />
45+ < img
46+ src = { image }
47+ alt = { name }
48+ className = "relative w-48 h-48 sm:w-56 sm:h-56 md:w-64 md:h-64 lg:w-72 lg:h-72 mx-auto object-cover z-10 filter grayscale transition duration-500 group-hover:filter-none group-hover:duration-500 group-hover:ease-in-out group-hover:delay-150 group-hover:scale-110"
49+ />
50+ </ div >
51+ < h2 className = "text-2xl sm:text-3xl md:text-5xl mt-10 font-poppins font-semibold text-center tracking-wide text-text-light" >
52+ { name }
53+ </ h2 >
54+ < p className = "text-lg sm:text-xl mt-3 font-poppins text-center font-semibold tracking-wide text-text-light" >
55+ { batch }
56+ </ p >
57+ < p className = "text-lg sm:text-xl font-poppins my-5 text-center text-wrap text-secondary-light" >
58+ { description }
59+ </ p >
60+ < div className = "mr-2 absolute -left-2 top-[40%] transform -translate-y-1/2 opacity-0 group-hover:opacity-100 transition-opacity duration-500 sm:left-[0.5rem] sm:top-[30%] md:-left-[0.5rem] md:top-[40%] lg:-left-[0.5rem] lg:top-[40%] xl:-left-[0.5rem] xl:top-[40%]" >
61+ < div className = "flex flex-col space-y-4" >
62+ < a
63+ href = { linkedin }
64+ target = "_blank"
65+ rel = "noreferrer"
66+ className = "text-white font-sans opacity-0 group-hover:opacity-100 transition-opacity duration-500 delay-100"
67+ >
68+ < img
69+ src = { LinkedInIcon }
70+ alt = "Linkedin"
71+ className = "w-8 h-8 sm:w-10 sm:h-10 md:w-10 md:h-10 lg:w-12 lg:h-12 p-2"
72+ />
73+ </ a >
74+ < a
75+ href = { github }
76+ target = "_blank"
77+ rel = "noreferrer"
78+ className = "text-white font-sans opacity-0 group-hover:opacity-100 transition-opacity duration-500 delay-200"
79+ >
80+ < img
81+ src = { GithubIcon }
82+ alt = "Github"
83+ className = "w-8 h-8 sm:w-10 sm:h-10 md:w-10 md:h-10 lg:w-12 lg:h-12 p-2"
84+ />
85+ </ a >
86+ < a
87+ href = { instagram }
88+ target = "_blank"
89+ rel = "noreferrer"
90+ className = "text-white font-sans opacity-0 group-hover:opacity-100 transition-opacity duration-500 delay-300"
91+ >
92+ < img
93+ src = { InstagramIcon }
94+ alt = "Instagram"
95+ className = "w-8 h-8 sm:w-10 sm:h-10 md:w-10 md:h-10 lg:w-12 lg:h-12 p-2"
96+ />
97+ </ a >
98+ </ div >
9199 </ div >
92- ) ;
100+ </ div >
101+ </ div >
102+ ) ;
93103}
94104
95105TeamMember . propTypes = {
96- member : PropTypes . shape ( {
97- name : PropTypes . string . isRequired ,
98- batch : PropTypes . string . isRequired ,
99- description : PropTypes . string . isRequired ,
100- linkedin : PropTypes . string . isRequired ,
101- instagram : PropTypes . string . isRequired ,
102- github : PropTypes . string . isRequired ,
103- id : PropTypes . number . isRequired ,
104- } ) . isRequired ,
106+ member : PropTypes . shape ( {
107+ name : PropTypes . string . isRequired ,
108+ batch : PropTypes . string . isRequired ,
109+ description : PropTypes . string . isRequired ,
110+ linkedin : PropTypes . string . isRequired ,
111+ instagram : PropTypes . string . isRequired ,
112+ github : PropTypes . string . isRequired ,
113+ id : PropTypes . number . isRequired ,
114+ } ) . isRequired ,
105115} ;
106116
107- export default TeamMember ;
117+ export default TeamMember ;
0 commit comments