From 058b7b45c6a1706c32fbb36259a80a5a399046b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Rivi=C3=A8re?= Date: Fri, 3 Oct 2025 22:42:42 +0200 Subject: [PATCH 1/2] Donation banner --- frontend/messages/fr/layout.json | 7 + frontend/public/images/confettis-banner.svg | 910 ++++++++++++++++++ .../src/app/[locale]/_partials/header.tsx | 4 +- frontend/src/app/[locale]/layout.tsx | 3 +- .../CampaignBanner/CampaignBanner.tsx | 57 ++ frontend/src/components/molecules/index.ts | 3 + 6 files changed, 981 insertions(+), 3 deletions(-) create mode 100644 frontend/public/images/confettis-banner.svg create mode 100644 frontend/src/components/molecules/CampaignBanner/CampaignBanner.tsx diff --git a/frontend/messages/fr/layout.json b/frontend/messages/fr/layout.json index f05cf407..1f2a5787 100644 --- a/frontend/messages/fr/layout.json +++ b/frontend/messages/fr/layout.json @@ -2,6 +2,13 @@ "layout": { "header": { "title": "Data For Good, accueil", + "banner": { + "top": { + "desktopText": "Rejoins notre campagne de dons", + "mobileText":"Rejoins notre campagne de dons", + "cta": "Participer" + } + }, "nav": { "toggle": { "alt": "Principale", diff --git a/frontend/public/images/confettis-banner.svg b/frontend/public/images/confettis-banner.svg new file mode 100644 index 00000000..a5b65bc8 --- /dev/null +++ b/frontend/public/images/confettis-banner.svg @@ -0,0 +1,910 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/app/[locale]/_partials/header.tsx b/frontend/src/app/[locale]/_partials/header.tsx index 174c4d40..1c0e31a5 100644 --- a/frontend/src/app/[locale]/_partials/header.tsx +++ b/frontend/src/app/[locale]/_partials/header.tsx @@ -145,7 +145,7 @@ const Header = () => { return (