Skip to content

Commit f66469b

Browse files
Merge pull request #69 from Vizzuality/develop
Use collaborators logo from local images
2 parents 44050a7 + eb9f624 commit f66469b

File tree

8 files changed

+19
-7
lines changed

8 files changed

+19
-7
lines changed
273 KB
Loading
7.01 KB
Loading
8.86 KB
Loading
Loading
Loading
8.83 KB
Loading
6.84 KB
Loading

client/src/containers/home/collaborator.tsx

+19-7
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,36 @@
11
import { useTranslations } from "@/i18n";
22
import Image from "next/image";
33

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

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+
];
721

822
const Collaborators = () => {
923
const t = useTranslations();
1024
return (
1125
<div className="space-y-10">
1226
<p className="text-center uppercase">{t("collaborators")}:</p>
1327
<div className="flex flex-wrap content-center items-center justify-between gap-6">
14-
{COLLABORATORS.map((name) => (
28+
{COLLABORATORS.map(({ name, image }) => (
1529
<div key={name} className="p-5">
1630
<Image
17-
src={`${imageSrc}${name}.png`}
31+
src={image}
1832
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"
2234
/>
2335
</div>
2436
))}

0 commit comments

Comments
 (0)