From 45db56e65672794bbca346a96410ce732b8c761e Mon Sep 17 00:00:00 2001 From: sbuhan Date: Tue, 21 Jan 2025 20:38:34 -0500 Subject: [PATCH] Add the newsletters link to main page (header,footer) --- components/Footer/Footer.tsx | 13 ++++++++++++- components/HeroHeader/HeroHeader.js | 10 ++++++++++ public/locales/en/common.json | 13 +++++++------ public/locales/en/footer.json | 1 + 4 files changed, 30 insertions(+), 7 deletions(-) diff --git a/components/Footer/Footer.tsx b/components/Footer/Footer.tsx index 7212b2f1e..f7ff8c0e7 100644 --- a/components/Footer/Footer.tsx +++ b/components/Footer/Footer.tsx @@ -278,7 +278,18 @@ const PageFooter = (props: PageFooterProps) => {
- {t("legal.disclaimer")} + + {t("legal.disclaimer")} + {" - "} + + {t("newsletter")} + +
) diff --git a/components/HeroHeader/HeroHeader.js b/components/HeroHeader/HeroHeader.js index ec8833604..b39405ed0 100644 --- a/components/HeroHeader/HeroHeader.js +++ b/components/HeroHeader/HeroHeader.js @@ -68,6 +68,16 @@ const HeroHeader = ({ authenticated }) => { {" "} {t("joinTraining")}

+

+ + {t("newsletter")} + +

{!authenticated && (
diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 6f36654a2..bbf2d1186 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -35,10 +35,10 @@ }, "bill_updates": "Bill Updates", "browse_bills": "browse bills", - "button":{ - "follow" : "Follow", - "following" : "Following", - "followed" : "Followed" + "button": { + "follow": "Follow", + "following": "Following", + "followed": "Followed" }, "calendar": "Our Calendar", "hideAns": "Hide Answer", @@ -62,7 +62,7 @@ "browseBills": "Browse Bills", "browseTestimony": "Browse Testimony", "closeNavMenu": "Close Navigation Menu", - "closeProfileMenu":"Close Profile Menu", + "closeProfileMenu": "Close Profile Menu", "communicatingWithLegislators": "Communicating with Legislators", "editProfile": "Edit Profile", "faq": "FAQ", @@ -81,7 +81,8 @@ "viewProfile": "View Profile", "whyUseMaple": "Why Use MAPLE" }, - "newcomer" : "New to MAPLE? For extra support, check", + "newcomer": "New to MAPLE? For extra support, check", + "newsletter": "Click Here to Subscribe to Our Newsletter", "newsfeed": { "actionTaken": "Action taken on ", "actionUpdate": "has an action update from the ", diff --git a/public/locales/en/footer.json b/public/locales/en/footer.json index 3d847b03e..1423b0ee9 100644 --- a/public/locales/en/footer.json +++ b/public/locales/en/footer.json @@ -27,5 +27,6 @@ "TOS": "Terms of Service", "codeOfConduct": "Code of Conduct" }, + "newsletter": "Click Here to Subscribe to Our Newsletter", "logo": "MAPLE Massachusetts Platform for Legislative Engagement logo" }