From c00fdf2ce726a83fa92bb9f50020e3c6519896a7 Mon Sep 17 00:00:00 2001
From: mdumond <48355472+mdumond@users.noreply.github.com>
Date: Fri, 1 Nov 2024 19:53:41 +0100
Subject: [PATCH] bugfix(website): display the correct logos in quotes section
on home page (#930)
---
shared/locales/de/website-home.json | 3 +++
shared/locales/en/website-home.json | 3 +++
shared/locales/fr/website-home.json | 3 +++
shared/locales/it/website-home.json | 3 +++
website/public/assets/logos/logo-icrc.svg | 1 +
website/public/assets/logos/logo-un.svg | 1 +
website/public/assets/logos/logo-worldbank.svg | 1 +
.../(website)/(home)/(components)/quotes-carousel.tsx | 5 ++---
8 files changed, 17 insertions(+), 3 deletions(-)
create mode 100644 website/public/assets/logos/logo-icrc.svg
create mode 100644 website/public/assets/logos/logo-un.svg
create mode 100644 website/public/assets/logos/logo-worldbank.svg
diff --git a/shared/locales/de/website-home.json b/shared/locales/de/website-home.json
index 04e756527..8588a3b65 100644
--- a/shared/locales/de/website-home.json
+++ b/shared/locales/de/website-home.json
@@ -152,6 +152,7 @@
"text": "zu besorgen.»"
}
],
+ "logo": "/assets/logos/logo-icrc.svg",
"author": "Internationales Rotes Kreuz"
},
{
@@ -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"
},
{
@@ -182,6 +184,7 @@
"text": "zu ermöglichen. »"
}
],
+ "logo": "/assets/logos/logo-worldbank.svg",
"author": "Weltbank"
}
]
diff --git a/shared/locales/en/website-home.json b/shared/locales/en/website-home.json
index 95fa26b01..978a50e15 100644
--- a/shared/locales/en/website-home.json
+++ b/shared/locales/en/website-home.json
@@ -152,6 +152,7 @@
"text": "from local markets and service providers. »"
}
],
+ "logo": "/assets/logos/logo-icrc.svg",
"author": "International Red Cross"
},
{
@@ -167,6 +168,7 @@
"text": "so shocks may hit, but they won’t destroy. »"
}
],
+ "logo": "/assets/logos/logo-un.svg",
"author": "United Nations"
},
{
@@ -182,6 +184,7 @@
"text": "to access financial services. »"
}
],
+ "logo": "/assets/logos/logo-worldbank.svg",
"author": "World Bank"
}
]
diff --git a/shared/locales/fr/website-home.json b/shared/locales/fr/website-home.json
index 10c9e495f..5db651c88 100644
--- a/shared/locales/fr/website-home.json
+++ b/shared/locales/fr/website-home.json
@@ -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"
},
{
@@ -167,6 +168,7 @@
"text": "mais sans détruire. »"
}
],
+ "logo": "/assets/logos/logo-un.svg",
"author": "Nations Unies"
},
{
@@ -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"
}
]
diff --git a/shared/locales/it/website-home.json b/shared/locales/it/website-home.json
index 61c545949..09d33bd7e 100644
--- a/shared/locales/it/website-home.json
+++ b/shared/locales/it/website-home.json
@@ -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"
},
{
@@ -167,6 +168,7 @@
"text": "in modo che gli shock possano arrivare, ma non distruggano. »"
}
],
+ "logo": "/assets/logos/logo-un.svg",
"author": "Nazioni Unite"
},
{
@@ -182,6 +184,7 @@
"text": "per accedere ai servizi finanziari. »"
}
],
+ "logo": "/assets/logos/logo-worldbank.svg",
"author": "Banca Mondiale"
}
]
diff --git a/website/public/assets/logos/logo-icrc.svg b/website/public/assets/logos/logo-icrc.svg
new file mode 100644
index 000000000..c84d86c84
--- /dev/null
+++ b/website/public/assets/logos/logo-icrc.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/website/public/assets/logos/logo-un.svg b/website/public/assets/logos/logo-un.svg
new file mode 100644
index 000000000..409e756b5
--- /dev/null
+++ b/website/public/assets/logos/logo-un.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/website/public/assets/logos/logo-worldbank.svg b/website/public/assets/logos/logo-worldbank.svg
new file mode 100644
index 000000000..35d14a0c3
--- /dev/null
+++ b/website/public/assets/logos/logo-worldbank.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/website/src/app/[lang]/[region]/(website)/(home)/(components)/quotes-carousel.tsx b/website/src/app/[lang]/[region]/(website)/(home)/(components)/quotes-carousel.tsx
index 417121cdf..cef750535 100644
--- a/website/src/app/[lang]/[region]/(website)/(home)/(components)/quotes-carousel.tsx
+++ b/website/src/app/[lang]/[region]/(website)/(home)/(components)/quotes-carousel.tsx
@@ -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;
}[];
@@ -38,7 +37,7 @@ export function QuotesCarousel(cardsObj: CarouselCardProps) {
))}
-
+
{card.author}