|
1 | 1 | import { useTranslations } from "@/i18n";
|
2 | 2 | import Image from "next/image";
|
3 | 3 |
|
4 |
| -const COLLABORATORS = ["ilc", "rangelands", "ilri", "unep", "FAO", "wwf", "iucn"]; |
| 4 | +import ILC from "@/assets/images/collaborators/ilc.png"; |
| 5 | +import Rangelands from "@/assets/images/collaborators/rangelands.png"; |
| 6 | +import ILRI from "@/assets/images/collaborators/ilri.png"; |
| 7 | +import UNEP from "@/assets/images/collaborators/unep.png"; |
| 8 | +import FAO from "@/assets/images/collaborators/fao.png"; |
| 9 | +import WWF from "@/assets/images/collaborators/wwf.png"; |
| 10 | +import IUCN from "@/assets/images/collaborators/iucn.png"; |
5 | 11 |
|
6 |
| -const imageSrc = "https://storage.googleapis.com/rdp-landing-bucket/collaborators/"; |
| 12 | +const COLLABORATORS = [ |
| 13 | + { name: "ilc", image: ILC }, |
| 14 | + { name: "rangelands", image: Rangelands }, |
| 15 | + { name: "ilri", image: ILRI }, |
| 16 | + { name: "unep", image: UNEP }, |
| 17 | + { name: "fao", image: FAO }, |
| 18 | + { name: "wwf", image: WWF }, |
| 19 | + { name: "iucn", image: IUCN }, |
| 20 | +]; |
7 | 21 |
|
8 | 22 | const Collaborators = () => {
|
9 | 23 | const t = useTranslations();
|
10 | 24 | return (
|
11 | 25 | <div className="space-y-10">
|
12 | 26 | <p className="text-center uppercase">{t("collaborators")}:</p>
|
13 | 27 | <div className="flex flex-wrap content-center items-center justify-between gap-6">
|
14 |
| - {COLLABORATORS.map((name) => ( |
| 28 | + {COLLABORATORS.map(({ name, image }) => ( |
15 | 29 | <div key={name} className="p-5">
|
16 | 30 | <Image
|
17 |
| - src={`${imageSrc}${name}.png`} |
| 31 | + src={image} |
18 | 32 | alt={name}
|
19 |
| - width={180} |
20 |
| - height={100} |
21 |
| - className="h-full max-h-16 w-full max-w-40 object-contain" |
| 33 | + className="h-full max-h-20 w-full max-w-40 object-contain" |
22 | 34 | />
|
23 | 35 | </div>
|
24 | 36 | ))}
|
|
0 commit comments