diff --git a/shared/locales/de/website-common.json b/shared/locales/de/website-common.json index f705e0f18..553872d22 100644 --- a/shared/locales/de/website-common.json +++ b/shared/locales/de/website-common.json @@ -30,7 +30,8 @@ "footer": { "follow-us": "Folge uns", "resources": "Informationen", - "legal": "Rechtliches" + "legal": "Rechtliches", + "newsletter": "Newsletter" }, "cookie-consent-banner": { "text": "Dürfen wir Cookies benützen um den Traffic und die Leistung unserer Website zu analysieren? Wir sammeln niemals persönliche Daten. Datenschutzrichtlinie.", diff --git a/shared/locales/de/website-newsletter.json b/shared/locales/de/website-newsletter.json index 83e4bff7b..c81aaab0d 100644 --- a/shared/locales/de/website-newsletter.json +++ b/shared/locales/de/website-newsletter.json @@ -1,29 +1,29 @@ { "metadata": { - "title": "Datenschutzrichtlinie | Social Income" + "title": "Newsletter | Social Income" }, "updates": { - "alert-title": "Social Income Newsletter", - "alert-description": "Melde dich an, um bei allen Thema rund um Social Income auf dem neusten Stand zu sein.", + "title": "Bleib informiert", + "description-1": "Erhalte News zu Social Income, plus:", + "bullet-1": "Stories von Empfänger:innen", + "bullet-2": "Neue Forschung zu Direktzahlungen", + "bullet-3": "Berichterstattung rund um das BGE", + "description-2": "Wird an jedem Monatsende versendet.", + "description-3": "Newsletters verfasst von", + "author-name": "Aurélie Schmiedlin", + "author-city": "Genf", + "form-title": "Newsletter abonnieren", "firstname": "Vorname", - "lastname": "Nachname", - "gender": "Geschlecht", "email": "E-Mail", - "street": "Strasse", - "street-number": "Nummer", - "city": "Ort", - "zip": "PLZ", - "country": "Land", - "language": "Kommunikationssprache", - "submit-button": "Beim Newsletter anmelden", + "submit-button": "Anmelden", "newsletter-updated-toast": "Du wurdest zum Newsletter hinzugefügt", "newsletter-error-toast": "Du konntest leider nicht zum Newsletter hinzugefügt werden" }, "popup": { - "information-label": "Melde dich für unseren Newsletter an und werde Teil der Social Income Community!", + "information-label": "Erhalte monatliche Updates über Social Income, BGE und Direktzahlungen.", "toast-success": "Danke für das Abonnieren des Social Income Newsletters!", "toast-failure": "Oops! Etwas ist schief gelaufen. Bitte versuche es nochmals, oder kontaktiere uns auf hello@socialincome.org", "email-placeholder": "Deine E-Mail Adresse", - "button-subscribe": "Abonnieren" + "button-subscribe": "Newsletter abonnieren" } } diff --git a/shared/locales/en/website-common.json b/shared/locales/en/website-common.json index eafac3160..94423473a 100644 --- a/shared/locales/en/website-common.json +++ b/shared/locales/en/website-common.json @@ -30,7 +30,8 @@ "footer": { "follow-us": "Follow Us", "resources": "Resources", - "legal": "Legal" + "legal": "Legal", + "newsletter": "Newsletter" }, "cookie-consent-banner": { "text": "Do you allow us to use cookies for analyzing our website traffic and performance? We never collect any personal data. Privacy Policy.", diff --git a/shared/locales/en/website-newsletter.json b/shared/locales/en/website-newsletter.json index ed3172900..df99ff88a 100644 --- a/shared/locales/en/website-newsletter.json +++ b/shared/locales/en/website-newsletter.json @@ -1,29 +1,29 @@ { "metadata": { - "title": "Datenschutzrichtlinie | Social Income" + "title": "Newsletter | Social Income" }, "updates": { - "alert-title": "Social Income Newsletter", - "alert-description": "Sign up to stay up to date on all things of Social Income.", + "title": "Stay Informed", + "description-1": "Receive updates on Social Income, plus:", + "bullet-1": "Engaging stories from our recipients", + "bullet-2": "New research on direct cash transfers", + "bullet-3": "Summaries of the latest news around UBI", + "description-2": "Sent at the end month of each month.", + "description-3": "Newsletters written by", + "author-name": "Aurélie Schmiedlin", + "author-city": "Geneva", + "form-title": "Subscribe to our newsletter", "firstname": "First Name", - "lastname": "Last Name", - "gender": "Gender", "email": "Email", - "street": "Street", - "street-number": "Number", - "city": "City", - "zip": "Zip", - "country": "Country", - "language": "Communication language", - "submit-button": "Subscribe to newsletter", + "submit-button": "Subscribe now", "newsletter-updated-toast": "You have been added to the newsletter", "newsletter-error-toast": "We weren't able to add you to our newsletter" }, "popup": { - "information-label": "Join our newsletter and become part of the Social Income Community!", + "information-label": "Our monthly newsletter updates you on Social Income, UBI and Direct Cash Transfers.", "toast-success": "Thank you for subscribing to our newsletter!", "toast-failure": "Something went wrong. Try again or contact us at hello@socialincome.org", "email-placeholder": "Your email", - "button-subscribe": "Subscribe" + "button-subscribe": "Subscribe now" } } diff --git a/shared/src/mailchimp/MailchimpAPI.ts b/shared/src/mailchimp/MailchimpAPI.ts index 5df44b0ee..f8dc2f085 100644 --- a/shared/src/mailchimp/MailchimpAPI.ts +++ b/shared/src/mailchimp/MailchimpAPI.ts @@ -8,6 +8,7 @@ export type NewsletterSubscriptionData = { firstname?: string; lastname?: string; country?: CountryCode; + source?: 'contributor' | 'subscriber'; }; export class MailchimpAPI { @@ -39,6 +40,7 @@ export class MailchimpAPI { LNAME: data.lastname ?? '', COUNTRY: data.country ?? '', LANGUAGE: data.language === 'de' ? 'German' : 'English', + SOURCE: data.source ?? 'subscriber', }, }); } @@ -53,6 +55,7 @@ export class MailchimpAPI { LNAME: data.lastname ?? '', COUNTRY: data.country ?? '', LANGUAGE: data.language === 'de' ? 'German' : 'English', + SOURCE: data.source ?? 'subscriber', }, }); }; diff --git a/website/src/app/[lang]/[region]/(website)/newsletter/page.tsx b/website/src/app/[lang]/[region]/(website)/newsletter/page.tsx index 0f90ac73e..c31cfe4d1 100644 --- a/website/src/app/[lang]/[region]/(website)/newsletter/page.tsx +++ b/website/src/app/[lang]/[region]/(website)/newsletter/page.tsx @@ -1,8 +1,15 @@ import { DefaultPageProps } from '@/app/[lang]/[region]'; import { SubscriptionInfoForm } from '@/app/[lang]/[region]/(website)/newsletter/subscription-info-form'; - +import { getMetadata } from '@/metadata'; import { Translator } from '@socialincome/shared/src/utils/i18n'; -import { Alert, AlertDescription, AlertTitle } from '@socialincome/ui'; +import { BaseContainer, Typography } from '@socialincome/ui'; +import Image from 'next/image'; +import Link from 'next/link'; +import aurelieImage from '../about-us/(assets)/aurelie.jpeg'; + +export async function generateMetadata({ params }: DefaultPageProps) { + return getMetadata(params.lang, 'website-newsletter'); +} export default async function Page({ params }: DefaultPageProps) { const translator = await Translator.getInstance({ @@ -11,25 +18,63 @@ export default async function Page({ params }: DefaultPageProps) { }); return ( -