-
-
Notifications
You must be signed in to change notification settings - Fork 451
Expand file tree
/
Copy pathAmbassadorsList.tsx
More file actions
57 lines (53 loc) · 1.65 KB
/
AmbassadorsList.tsx
File metadata and controls
57 lines (53 loc) · 1.65 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import React from 'react';
import {
Card,
CardContent,
CardHeader,
CardTitle,
CardDescription,
} from '@/components/ui/card';
import Image from 'next/image';
interface AmbassadorsLink {
title: string;
icon: string;
details: string;
}
interface AmbassadorsListProps {
ambassadorList: {
contents: AmbassadorsLink[];
};
}
const AmbassadorList = ({ ambassadorList }: AmbassadorsListProps) => {
return (
<ul className='mt-10 grid grid-cols-1 gap-8 px-5 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-3'>
{ambassadorList.contents.map((link) => (
<li
key={link.title}
className='flex flex-col items-center text-center'
data-testid='Ambassadors-list'
>
<Card className='dark:border-gray-700 w-full h-full p-5 bg-white dark:bg-gray-800 rounded-lg shadow-lg transform transition hover:scale-105'>
<CardContent className='p-0'>
<Image
width={120}
height={60}
src={link.icon}
alt={link.title}
className='w-[150px] h-auto object-contain mb-5 mx-auto'
/>
<CardHeader className='p-0 mb-3'>
<CardTitle className='text-lg md:text-xl font-semibold text-gray-900 dark:text-white'>
{link.title}
</CardTitle>
</CardHeader>
<CardDescription className='text-sm md:text-base text-gray-700 dark:text-slate-100 leading-relaxed'>
{link.details}
</CardDescription>
</CardContent>
</Card>
</li>
))}
</ul>
);
};
export default AmbassadorList;