|
1 | 1 | import TeamMember from "@/pages/Teams/TeamMember"; |
2 | 2 | import SkewButton from "@/components/SkewButton"; |
3 | | - |
4 | | -const teamMembers = [ |
5 | | - { |
6 | | - name: "Aditya Desai", |
7 | | - position: "PRESIDENT", |
8 | | - image: |
9 | | - "https://media.licdn.com/dms/image/C4D03AQEfAUzWvBYdVg/profile-displayphoto-shrink_800_800/0/1663487119730?e=1714608000&v=beta&t=q9xS0ojSlWeXtvYbYAGKC-POp7f0TXCfrTSkoP1yMLA", |
10 | | - description: |
11 | | - "Praesent vestibulum libero non diam Praesent vestibulum libero non diam ", |
12 | | - linkedin: "https://linkedin.com/in/john-doe", |
13 | | - instagram: "https://instagram.com/john_doe", |
14 | | - github: "https://github.com/john-doe", |
15 | | - }, |
16 | | - { |
17 | | - name: "Dr. Rupali Gangarde", |
18 | | - position: "FACULTY ADVISOR", |
19 | | - image: |
20 | | - "https://media-pnq1-2.cdn.whatsapp.net/v/t61.24694-24/362246050_985287035952930_3222687059276313181_n.jpg?ccb=11-4&oh=01_AdQzhJX4u0dIpMxNBjPYbrW4sfwKKQ4xbLc3kW69swB3Wg&oe=65EA2552&_nc_sid=e6ed6c&_nc_cat=106", |
21 | | - description: |
22 | | - "Praesent vestibulum libero non diam Praesent vestibulum libero non diam ", |
23 | | - linkedin: "https://linkedin.com/in/jane-doe", |
24 | | - instagram: "https://instagram.com/jane_doe", |
25 | | - github: "https://github.com/jane-doe", |
26 | | - }, |
27 | | - { |
28 | | - name: "Saksham Gupta", |
29 | | - position: "VICE-PRESIDENT", |
30 | | - image: |
31 | | - "https://media.licdn.com/dms/image/C4D03AQFf0M0m5SBEsw/profile-displayphoto-shrink_800_800/0/1661514280105?e=1714608000&v=beta&t=OU8Rye-qRguvPyAsyJ19wMr3toD5PtIFWEwjORVlohc", |
32 | | - description: |
33 | | - "Praesent vestibulum libero non diam Praesent vestibulum libero non diam ", |
34 | | - linkedin: "https://linkedin.com/in/john-doe", |
35 | | - instagram: "https://instagram.com/john_doe", |
36 | | - github: "https://github.com/john-doe", |
37 | | - }, |
38 | | - // Your team members data here |
39 | | -]; |
| 3 | +import teamMembersData from "./teamsdata.json"; |
40 | 4 |
|
41 | 5 | function Teams() { |
| 6 | + const teamMembers = teamMembersData.map((member) => ( |
| 7 | + <TeamMember key={member.name} member={member} /> |
| 8 | + )); |
| 9 | + |
42 | 10 | return ( |
43 | 11 | <div className="bg-zinc-800 min-h-screen"> |
44 | 12 | <div className="flex-grow container mx-auto pr-20 pl-20 space-x-30 py-8"> |
45 | | - <div |
46 | | - className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8" |
47 | | - style={{ gridAutoRows: "minmax(auto, max-content)" }} |
48 | | - > |
49 | | - {teamMembers.map((member) => ( |
50 | | - <TeamMember key={member.name} member={member} /> |
51 | | - ))} |
| 13 | + <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 grid grid-rows-auto"> |
| 14 | + {teamMembers} |
52 | 15 | </div> |
53 | 16 | <SkewButton text="SEE ALL" link="/all-members" /> |
54 | 17 | </div> |
|
0 commit comments