Skip to content

Commit

Permalink
Merge pull request #69 from Vizzuality/develop
Browse files Browse the repository at this point in the history
Use collaborators logo from local images
  • Loading branch information
barbara-chaves authored Jul 3, 2024
2 parents 44050a7 + eb9f624 commit f66469b
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 7 deletions.
Binary file added client/src/assets/images/collaborators/fao.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/collaborators/ilc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/collaborators/ilri.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/collaborators/unep.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/images/collaborators/wwf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 19 additions & 7 deletions client/src/containers/home/collaborator.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
import { useTranslations } from "@/i18n";
import Image from "next/image";

const COLLABORATORS = ["ilc", "rangelands", "ilri", "unep", "FAO", "wwf", "iucn"];
import ILC from "@/assets/images/collaborators/ilc.png";
import Rangelands from "@/assets/images/collaborators/rangelands.png";
import ILRI from "@/assets/images/collaborators/ilri.png";
import UNEP from "@/assets/images/collaborators/unep.png";
import FAO from "@/assets/images/collaborators/fao.png";
import WWF from "@/assets/images/collaborators/wwf.png";
import IUCN from "@/assets/images/collaborators/iucn.png";

const imageSrc = "https://storage.googleapis.com/rdp-landing-bucket/collaborators/";
const COLLABORATORS = [
{ name: "ilc", image: ILC },
{ name: "rangelands", image: Rangelands },
{ name: "ilri", image: ILRI },
{ name: "unep", image: UNEP },
{ name: "fao", image: FAO },
{ name: "wwf", image: WWF },
{ name: "iucn", image: IUCN },
];

const Collaborators = () => {
const t = useTranslations();
return (
<div className="space-y-10">
<p className="text-center uppercase">{t("collaborators")}:</p>
<div className="flex flex-wrap content-center items-center justify-between gap-6">
{COLLABORATORS.map((name) => (
{COLLABORATORS.map(({ name, image }) => (
<div key={name} className="p-5">
<Image
src={`${imageSrc}${name}.png`}
src={image}
alt={name}
width={180}
height={100}
className="h-full max-h-16 w-full max-w-40 object-contain"
className="h-full max-h-20 w-full max-w-40 object-contain"
/>
</div>
))}
Expand Down

0 comments on commit f66469b

Please sign in to comment.