-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeamSection.tsx
More file actions
29 lines (27 loc) · 858 Bytes
/
TeamSection.tsx
File metadata and controls
29 lines (27 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// src/components/about/TeamSection.tsx
import { TeamCard, TeamMemberProps } from "./TeamCard";
type TeamSectionProps = {
title: string;
members: TeamMemberProps[];
};
export const TeamSection: React.FC<TeamSectionProps> = ({ title, members }) => {
return (
<div className="mt-16 first:mt-8">
<h3 className="mb-6 border-b border-gray-800 pb-2 text-xl font-semibold sm:text-2xl">
{title}
</h3>
<div className="grid grid-cols-1 gap-16 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
{members.map((member, index) => (
<TeamCard
key={`${title}-${index}`}
name={member.name}
role={member.role}
imageSrc={member.imageSrc}
linkedinUrl={member.linkedinUrl}
altText={member.altText}
/>
))}
</div>
</div>
);
};