diff --git a/src/components/footer.tsx b/src/components/footer.tsx index dd5c5b0..7f41092 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; import { + MjmlButton, MjmlColumn, MjmlDivider, MjmlImage, @@ -7,14 +8,14 @@ import { MjmlSocialElement, MjmlText, } from 'mjml-react'; +import { FormattedMessage, useIntl } from 'react-intl'; import * as Colors from '../constants/colors'; -import { getAssetPath } from '../utils/url'; +import { getAssetPath, wrapUtm } from '../utils/url'; import { BasicSection } from './sections/basic'; import { HelpCenterLink } from './help-center-link'; import { UnsubscribeLink } from './unsubscribe-link'; -import { useIntl } from 'react-intl'; const socialElements = [ { @@ -43,55 +44,71 @@ export const FooterSection = ({ }) => { const intl = useIntl(); return ( - - - {shouldShowDivider && ( - - )} - + + + {shouldShowDivider && ( + )} - href="https://twitter.com/likerland" - /> - - {socialElements.map(({ key, href, assetPath }) => ( - - {null} - - ))} - - - - - - - - - + + + + + + + + + + {socialElements.map(({ key, href, assetPath }) => ( + + {null} + + ))} + + + + + + + + + + ); }; diff --git a/src/i18n/translations/cn.json b/src/i18n/translations/cn.json index 238a3ab..db0197f 100644 --- a/src/i18n/translations/cn.json +++ b/src/i18n/translations/cn.json @@ -4,6 +4,7 @@ "cta.sponsor-link.hint": "用这条链结建立你的粉丝团。详情", "cta.writing-nft.title": "立即收藏以表支持", "download": "下载:", + "footer_newsletter_button": "订阅电子报", "greeting": "你好 {name}:", "header.manage-delegation": "管理委託", "help.center.text": "帮助中心", diff --git a/src/i18n/translations/en.json b/src/i18n/translations/en.json index b3e6683..18d8b94 100644 --- a/src/i18n/translations/en.json +++ b/src/i18n/translations/en.json @@ -4,6 +4,7 @@ "cta.sponsor-link.hint": "Build your fans group by this link. Learn more", "cta.writing-nft.title": "Collect to support now", "download": "Download:", + "footer_newsletter_button": "Subscribe Newsletter", "greeting": "Dear {name}", "header.manage-delegation": "Manage delegation", "help.center.text": "Help Center", diff --git a/src/i18n/translations/zh.json b/src/i18n/translations/zh.json index 3a73b81..631e9e2 100644 --- a/src/i18n/translations/zh.json +++ b/src/i18n/translations/zh.json @@ -4,6 +4,7 @@ "cta.sponsor-link.hint": "用這條鏈結建立你的粉絲團。詳情", "cta.writing-nft.title": "立即收藏以表支持", "download": "下載:", + "footer_newsletter_button": "訂閱電子報", "greeting": "你好 {name}:", "header.manage-delegation": "管理委託", "help.center.text": "幫助中心", diff --git a/src/templates/basic-v2.tsx b/src/templates/basic-v2.tsx index 51b14ea..8f40653 100644 --- a/src/templates/basic-v2.tsx +++ b/src/templates/basic-v2.tsx @@ -32,7 +32,7 @@ export const BasicV2Template = ({ subtitle, subtitlePrepend, content, - cta = 'writing-nft', + cta = '', unsubscribeLink, language, }: BasicV2TemplateProps) => { diff --git a/src/templates/basic.tsx b/src/templates/basic.tsx index 3a0205a..f5d7b0f 100644 --- a/src/templates/basic.tsx +++ b/src/templates/basic.tsx @@ -33,7 +33,7 @@ export const BasicTemplate = ({ subtitle, subtitlePrepend, content, - cta = 'writing-nft', + cta = '', unsubscribeLink, language, }: BasicTemplateProps) => {