Skip to content

Commit 920befc

Browse files
committedMay 17, 2024·
Swapnil Image Updated
1 parent 32cd4c1 commit 920befc

File tree

4 files changed

+43
-34
lines changed

4 files changed

+43
-34
lines changed
 

‎public/Images/Developers/swapnil.jpg

-1.28 MB
Loading
301 KB
Loading

‎src/app/developer/developers.ts

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const x: devData = {
2121
name: "HRM Rafsan Amin",
2222
image_url: "/Images/Developers/hrm_rafsan.jpg",
2323
modal_image_url: "/Images/Developers/tr-hrm_rafsan.png",
24+
imageInCenter: false,
2425
profile_url: [
2526
{
2627
platform: "facebook",
@@ -45,6 +46,7 @@ const x: devData = {
4546
name: "Wasef Rahman Swapnil",
4647
image_url: "/Images/Developers/swapnil.jpg",
4748
modal_image_url: "/Images/Developers/tr-swapnil.png",
49+
imageInCenter: true,
4850
profile_url: [
4951
{
5052
platform: "facebook",

‎src/app/developer/page.tsx

+41-34
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
'use client';
1+
"use client";
22

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";
88

99
const Developer = () => {
1010
const [modalState, setModalState] = useState<[string, number] | null>(null);
@@ -19,51 +19,58 @@ const Developer = () => {
1919
<div>
2020
<div className=" flex flex-col md:flex-row gap-0 md:gap-3 justify-start md:justify-start items-start md:items-end">
2121
<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>
2325
</div>
2426
<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.
2932
</p>
3033
</div>
3134
</div>
3235
<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.
3640
We appreciate their efforts and contributions to our success.
3741
</p>
3842
{Object.entries(DevData).map(([title, members]) => {
39-
const titleArr = title.split(' ');
43+
const titleArr = title.split(" ");
4044
const first = titleArr?.splice(0, 1);
41-
const last = titleArr?.join(' ') + ' ';
45+
const last = titleArr?.join(" ") + " ";
4246
return (
4347
<>
4448
<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">
4549
<h1 className="text-4xl md:text-5xl text-primary">{first}</h1>
4650
<h1 className="text-4xl md:text-5xl ">{last}</h1>
4751
</div>
4852
<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+
)}
6774
</div>
6875
</>
6976
);

0 commit comments

Comments
 (0)
Please sign in to comment.