1
- ' use client' ;
1
+ " use client" ;
2
2
3
- import { FaCode } from ' react-icons/fa' ;
4
- import Member from ' @/Components/Home/Member' ;
5
- import DevData from ' ./developers' ;
6
- import { useState } from ' react' ;
7
- import Modal from ' ./Modal' ;
3
+ import { FaCode } from " react-icons/fa" ;
4
+ import Member from " @/Components/Home/Member" ;
5
+ import DevData from " ./developers" ;
6
+ import { useState } from " react" ;
7
+ import Modal from " ./Modal" ;
8
8
9
9
const Developer = ( ) => {
10
10
const [ modalState , setModalState ] = useState < [ string , number ] | null > ( null ) ;
@@ -19,51 +19,58 @@ const Developer = () => {
19
19
< div >
20
20
< div className = " flex flex-col md:flex-row gap-0 md:gap-3 justify-start md:justify-start items-start md:items-end" >
21
21
< h1 className = "text-4xl md:text-6xl pb-1 md:pb-2" > MEET OUR</ h1 >
22
- < h1 className = "text-5xl sm:text-6xl md:text-8xl text-primary" > DEVELOPERS</ h1 >
22
+ < h1 className = "text-5xl sm:text-6xl md:text-8xl text-primary" >
23
+ DEVELOPERS
24
+ </ h1 >
23
25
</ div >
24
26
< p className = "pt-3 hidden md:block text-lg" >
25
- We would like to thank our amazing developers who worked hard to create this website.
26
- They have shown great skill, creativity, and dedication in bringing our vision to
27
- life. They have overcome many challenges and delivered a high-quality product that we
28
- are proud of. We appreciate their efforts and contributions to our success.
27
+ We would like to thank our amazing developers who worked hard to
28
+ create this website. They have shown great skill, creativity, and
29
+ dedication in bringing our vision to life. They have overcome many
30
+ challenges and delivered a high-quality product that we are proud
31
+ of. We appreciate their efforts and contributions to our success.
29
32
</ p >
30
33
</ div >
31
34
</ div >
32
35
< p className = "pt-3 mt-4 md:hidden text-base" >
33
- We would like to thank our amazing developers who worked hard to create this website. They
34
- have shown great skill, creativity, and dedication in bringing our vision to life. They
35
- have overcome many challenges and delivered a high-quality product that we are proud of.
36
+ We would like to thank our amazing developers who worked hard to
37
+ create this website. They have shown great skill, creativity, and
38
+ dedication in bringing our vision to life. They have overcome many
39
+ challenges and delivered a high-quality product that we are proud of.
36
40
We appreciate their efforts and contributions to our success.
37
41
</ p >
38
42
{ Object . entries ( DevData ) . map ( ( [ title , members ] ) => {
39
- const titleArr = title . split ( ' ' ) ;
43
+ const titleArr = title . split ( " " ) ;
40
44
const first = titleArr ?. splice ( 0 , 1 ) ;
41
- const last = titleArr ?. join ( ' ' ) + ' ' ;
45
+ const last = titleArr ?. join ( " " ) + " " ;
42
46
return (
43
47
< >
44
48
< div className = "mt-14 md:mt-16 flex flex-col md:flex-row gap-0 md:gap-3 justify-start md:justify-start items-start md:items-end" >
45
49
< h1 className = "text-4xl md:text-5xl text-primary" > { first } </ h1 >
46
50
< h1 className = "text-4xl md:text-5xl " > { last } </ h1 >
47
51
</ div >
48
52
< div className = "flex pt-2 mt-4 md:mt-5 grid-fluid-fill-[275px] md:grid-fluid-fill-[250px] flex-wrap gap-4 md:gap-8 justify-start" >
49
- { members . map ( ( { name, post, image_url, dept } , index ) => (
50
- < div
51
- className = ""
52
- key = { index }
53
- onClick = { ( ) => {
54
- setModalState ( [ title , index ] ) ;
55
- } }
56
- >
57
- < Member
58
- hasClickHandler = { true }
59
- img = { image_url }
60
- name = { name }
61
- designation = { post }
62
- department = { dept }
63
- hoverText = "Click for Details"
64
- />
65
- </ div >
66
- ) ) }
53
+ { members . map (
54
+ ( { name, post, image_url, dept, imageInCenter } , index ) => (
55
+ < div
56
+ className = ""
57
+ key = { index }
58
+ onClick = { ( ) => {
59
+ setModalState ( [ title , index ] ) ;
60
+ } }
61
+ >
62
+ < Member
63
+ hasClickHandler = { true }
64
+ imgInCenter = { imageInCenter }
65
+ img = { image_url }
66
+ name = { name }
67
+ designation = { post }
68
+ department = { dept }
69
+ hoverText = "Click for Details"
70
+ />
71
+ </ div >
72
+ )
73
+ ) }
67
74
</ div >
68
75
</ >
69
76
) ;
0 commit comments