From 304bd2934405940ef1a52dde4d0db1efb03f788c Mon Sep 17 00:00:00 2001 From: Sandino Scheidegger Date: Sat, 4 Jan 2025 20:21:23 +0100 Subject: [PATCH] Fixing various screen views --- shared/locales/fr/website-common.json | 2 +- .../src/components/navbar/navbar-client.tsx | 72 ++++++++++--------- website/src/components/navbar/navbar.tsx | 8 +-- 3 files changed, 43 insertions(+), 39 deletions(-) diff --git a/shared/locales/fr/website-common.json b/shared/locales/fr/website-common.json index 47210196f..1fc1d6e19 100644 --- a/shared/locales/fr/website-common.json +++ b/shared/locales/fr/website-common.json @@ -8,7 +8,7 @@ "twitter-image": "/assets/metadata/twitter/default.jpg" }, "navigation": { - "our-promise": "Modèle à 100 %", + "our-promise": "Notre promesse", "about-us": "Qui nous sommes", "contact": "Contact", "contributors": "Donateurs et donatrices", diff --git a/website/src/components/navbar/navbar-client.tsx b/website/src/components/navbar/navbar-client.tsx index 307b6292c..f861e5a49 100644 --- a/website/src/components/navbar/navbar-client.tsx +++ b/website/src/components/navbar/navbar-client.tsx @@ -276,15 +276,20 @@ const DesktopNavigation = ({ lang, region, languages, regions, currencies, navig const transparency = navigation![2]; return ( -
-
+
+
- - +
+ +
+ -
+
{translations.myProfile} -
+
{translations.donate} @@ -292,17 +297,12 @@ const DesktopNavigation = ({ lang, region, languages, regions, currencies, navig
-
-
- {ourWork.title} -
+
+
+ + {ourWork.title} + +
{ourWork.links?.map((link: any, index: number) => ( {link.title} @@ -310,9 +310,11 @@ const DesktopNavigation = ({ lang, region, languages, regions, currencies, navig ))}
-
- {aboutUs.title} -
+
+ + {aboutUs.title} + +
{aboutUs.links?.map((link, index) => ( {link.title} @@ -320,9 +322,11 @@ const DesktopNavigation = ({ lang, region, languages, regions, currencies, navig ))}
-
- {transparency.title} -
+
+ + {transparency.title} + +
{transparency.links?.map((link: any, index: number) => ( {link.title} @@ -331,14 +335,14 @@ const DesktopNavigation = ({ lang, region, languages, regions, currencies, navig
-
-
+
+
{(!isIntRegion || (isIntRegion && country)) && ( Country flag{languages.find((l) => l.code === lang)?.translation}
-
-
+
+
{regions .sort((a, b) => a.translation.localeCompare(b.translation)) .map((reg, index) => ( setRegion(reg.code)} @@ -363,13 +367,13 @@ const DesktopNavigation = ({ lang, region, languages, regions, currencies, navig ))}
-
+
{languages .sort((a, b) => a.translation.localeCompare(b.translation)) .map((l, index) => ( setLanguage(l.code)} @@ -378,14 +382,14 @@ const DesktopNavigation = ({ lang, region, languages, regions, currencies, navig ))}
-
+
{currencies .sort((a, b) => a.code.localeCompare(b.code)) .map((curr, index) => ( setCurrency(curr.code)} diff --git a/website/src/components/navbar/navbar.tsx b/website/src/components/navbar/navbar.tsx index b256301a9..def1e6431 100644 --- a/website/src/components/navbar/navbar.tsx +++ b/website/src/components/navbar/navbar.tsx @@ -70,10 +70,6 @@ async function Navbar({ lang, region }: DefaultParams) { title: translator.t('navigation.recipient-selection'), href: `/${lang}/${region}/transparency/recipient-selection`, }, - { - title: translator.t('navigation.faq'), - href: `/${lang}/${region}/faq`, - }, { title: translator.t('navigation.evidence'), href: `/${lang}/${region}/transparency/evidence`, @@ -82,6 +78,10 @@ async function Navbar({ lang, region }: DefaultParams) { title: translator.t('navigation.reporting'), href: `/${lang}/${region}/transparency/reporting`, }, + { + title: translator.t('navigation.faq'), + href: `/${lang}/${region}/faq`, + }, ], }, ]}