From 50607fd3df46c286671184c861f4ef7331ff5b18 Mon Sep 17 00:00:00 2001 From: Kaitlyn Date: Tue, 1 Oct 2024 10:11:15 -0400 Subject: [PATCH] add bg image only to light mode --- src/emails/templates/EmailFooter.tsx | 212 ++++++++++++++------------- 1 file changed, 110 insertions(+), 102 deletions(-) diff --git a/src/emails/templates/EmailFooter.tsx b/src/emails/templates/EmailFooter.tsx index d90cd1172cd..408180a6b7b 100644 --- a/src/emails/templates/EmailFooter.tsx +++ b/src/emails/templates/EmailFooter.tsx @@ -137,107 +137,115 @@ export const RedesignedBreachEmailFooter = (props: Props) => { supportLinkUrlObject.searchParams.set("utm_content", "support-center"); return ( - - - - - - {l10n.getString("email-footer-support-heading")} - - - {l10n.getFragment("email-footer-support-content", { - elems: { - "support-link": ( - - ), - }, - })} - - - - - - - - 149 New Montgomery St, 4th Floor -
- San Francisco, CA 94105 -
- - {l10n.getString("email-footer-trigger-transactional")} - - - {l10n.getFragment("email-footer-source-hibp", { - elems: { - "hibp-link": ( -
- ), - }, - })} - - - - {l10n.getString("terms-of-service")} - -   - - {l10n.getString("email-footer-meta-privacy-notice")} - - - - -
+ + + {` + @media (prefers-color-scheme: light) { + .footer_background { + background-image: url(${process.env.SERVER_URL}/images/email/footer-bg-shapes.png); + background-position-y: bottom; + background-position-x: centre; + background-repeat: no-repeat; + padding: 50px 32px; + } + } + `} + + + + + + + {l10n.getString("email-footer-support-heading")} + + + {l10n.getFragment("email-footer-support-content", { + elems: { + "support-link": ( + + ), + }, + })} + + + + + + + + 149 New Montgomery St, 4th Floor +
+ San Francisco, CA 94105 +
+ + {l10n.getString("email-footer-trigger-transactional")} + + + {l10n.getFragment("email-footer-source-hibp", { + elems: { + "hibp-link": ( +
+ ), + }, + })} + + + + {l10n.getString("terms-of-service")} + +   + + {l10n.getString("email-footer-meta-privacy-notice")} + + + + +
+
); };