Skip to content

Commit

Permalink
bugfix(website): display the correct logos in quotes section on home …
Browse files Browse the repository at this point in the history
…page (#930)
  • Loading branch information
mdumond authored Nov 1, 2024
1 parent e7e8aa7 commit c00fdf2
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 3 deletions.
3 changes: 3 additions & 0 deletions shared/locales/de/website-home.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
"text": "zu besorgen.»"
}
],
"logo": "/assets/logos/logo-icrc.svg",
"author": "Internationales Rotes Kreuz"
},
{
Expand All @@ -167,6 +168,7 @@
"text": "zu implementieren. So können uns Krisen zwar treffen, aber ohne zerstörerische Kraft zu entfalten. »"
}
],
"logo": "/assets/logos/logo-un.svg",
"author": "Vereinte Nationen"
},
{
Expand All @@ -182,6 +184,7 @@
"text": "zu ermöglichen. »"
}
],
"logo": "/assets/logos/logo-worldbank.svg",
"author": "Weltbank"
}
]
Expand Down
3 changes: 3 additions & 0 deletions shared/locales/en/website-home.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
"text": "from local markets and service providers. »"
}
],
"logo": "/assets/logos/logo-icrc.svg",
"author": "International Red Cross"
},
{
Expand All @@ -167,6 +168,7 @@
"text": "so shocks may hit, but they won’t destroy. »"
}
],
"logo": "/assets/logos/logo-un.svg",
"author": "United Nations"
},
{
Expand All @@ -182,6 +184,7 @@
"text": "to access financial services. »"
}
],
"logo": "/assets/logos/logo-worldbank.svg",
"author": "World Bank"
}
]
Expand Down
3 changes: 3 additions & 0 deletions shared/locales/fr/website-home.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
"text": "sur les marchés locaux et auprès des prestataires de services. »"
}
],
"logo": "/assets/logos/logo-icrc.svg",
"author": "Croix-Rouge Internationale"
},
{
Expand All @@ -167,6 +168,7 @@
"text": "mais sans détruire. »"
}
],
"logo": "/assets/logos/logo-un.svg",
"author": "Nations Unies"
},
{
Expand All @@ -182,6 +184,7 @@
"text": "l’accès aux services financiers à l'aide d'un téléphone portable. »"
}
],
"logo": "/assets/logos/logo-worldbank.svg",
"author": "Banque mondiale"
}
]
Expand Down
3 changes: 3 additions & 0 deletions shared/locales/it/website-home.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
"text": "dai mercati locali e dai fornitori di servizi. »"
}
],
"logo": "/assets/logos/logo-icrc.svg",
"author": "Comitato Internazionale della Croce Rossa"
},
{
Expand All @@ -167,6 +168,7 @@
"text": "in modo che gli shock possano arrivare, ma non distruggano. »"
}
],
"logo": "/assets/logos/logo-un.svg",
"author": "Nazioni Unite"
},
{
Expand All @@ -182,6 +184,7 @@
"text": "per accedere ai servizi finanziari. »"
}
],
"logo": "/assets/logos/logo-worldbank.svg",
"author": "Banca Mondiale"
}
]
Expand Down
1 change: 1 addition & 0 deletions website/public/assets/logos/logo-icrc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website/public/assets/logos/logo-un.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website/public/assets/logos/logo-worldbank.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
import { Carousel, CarouselContent, Typography } from '@socialincome/ui';
import { FontColor } from '@socialincome/ui/src/interfaces/color';
import Image from 'next/image';
import LogoUnitedNations from '../(assets)/logo-un.svg';

export type CarouselCardProps = {
quote: {
text: string;
color: FontColor;
}[];
icon: ImageData | string;
logo: string;
author: string;
}[];

Expand Down Expand Up @@ -38,7 +37,7 @@ export function QuotesCarousel(cardsObj: CarouselCardProps) {
</Typography>
))}
</Typography>
<Image src={LogoUnitedNations} alt="Logo United Nations" className="mb-3 mt-5 h-auto w-12" />
<Image src={card.logo} alt={card.author} width="48" height="48" className="mb-3 mt-5 h-auto w-12" />
<Typography size="sm" className="mb-12">
{card.author}
</Typography>
Expand Down

0 comments on commit c00fdf2

Please sign in to comment.