diff --git a/src/assets/social-elements/v2/instagram.png b/src/assets/social-elements/v2/instagram.png new file mode 100644 index 0000000..c4ef801 Binary files /dev/null and b/src/assets/social-elements/v2/instagram.png differ diff --git a/src/components/footer.tsx b/src/components/footer.tsx index 3b6f734..5d887da 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 = [ { @@ -32,6 +33,11 @@ const socialElements = [ href: 'https://blog.like.co', assetPath: '/social-elements/v2/blog.png', }, + { + key: 'instagram', + href: 'https://www.instagram.com/liker.land', + assetPath: '/social-elements/v2/instagram.png', + }, ]; export const FooterSection = ({ @@ -43,55 +49,71 @@ export const FooterSection = ({ }) => { const intl = useIntl(); return ( - - - {shouldShowDivider && ( - - )} - + + + {shouldShowDivider && ( + )} - href="https://twitter.com/likecoin" - /> - - {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) => { diff --git a/test/__snapshots__/basic.test.ts.snap b/test/__snapshots__/basic.test.ts.snap index 26bfb70..1ed6087 100644 --- a/test/__snapshots__/basic.test.ts.snap +++ b/test/__snapshots__/basic.test.ts.snap @@ -406,9 +406,9 @@ exports[`Render basic templates Default 1`] = ` - +
-
立即收藏以表支持
+

+

+ + + - @@ -497,7 +498,7 @@ exports[`Render basic templates Default 1`] = ` - - - -
- - - - \\"立即收藏以表支持\\" - - - + + + 訂閱電子報 +
@@ -517,23 +518,6 @@ exports[`Render basic templates Default 1`] = ` >
- -

-

- - - - -
- + @@ -617,7 +601,7 @@ exports[`Render basic templates Default 1`] = `
- + @@ -648,7 +632,7 @@ exports[`Render basic templates Default 1`] = `
- + @@ -659,6 +643,37 @@ exports[`Render basic templates Default 1`] = `
+ + + + + + + + + + + @@ -1104,9 +1119,9 @@ exports[`Render basic templates With avatar (Civic Liker) 1`] = ` + + + +
+ + + + + + +
+ + + +
+
- +
-
立即收藏以表支持
+

+

+ + +
- @@ -1195,7 +1211,7 @@ exports[`Render basic templates With avatar (Civic Liker) 1`] = ` - - - -
- - - - \\"立即收藏以表支持\\" - - - + + + 訂閱電子報 +
@@ -1215,23 +1231,6 @@ exports[`Render basic templates With avatar (Civic Liker) 1`] = ` >
- -

-

- - - - -
- + @@ -1315,7 +1314,7 @@ exports[`Render basic templates With avatar (Civic Liker) 1`] = `
- + @@ -1346,7 +1345,7 @@ exports[`Render basic templates With avatar (Civic Liker) 1`] = `
- + @@ -1357,6 +1356,37 @@ exports[`Render basic templates With avatar (Civic Liker) 1`] = `
+ + + + + + + @@ -1802,9 +1832,9 @@ exports[`Render basic templates With avatar 1`] = ` + + + +
+ + + + + + +
+ + + +
+
- +
-
立即收藏以表支持
+

+

+ + +
- @@ -1893,7 +1924,7 @@ exports[`Render basic templates With avatar 1`] = ` - - - -
- - - - \\"立即收藏以表支持\\" - - - + + + 訂閱電子報 +
@@ -1913,23 +1944,6 @@ exports[`Render basic templates With avatar 1`] = ` >
- -

-

- - - - -
- + @@ -2013,7 +2027,7 @@ exports[`Render basic templates With avatar 1`] = `
- + @@ -2044,7 +2058,7 @@ exports[`Render basic templates With avatar 1`] = `
- + @@ -2055,6 +2069,37 @@ exports[`Render basic templates With avatar 1`] = `
+ + + + + + + diff --git a/test/__snapshots__/new-supporter.test.ts.snap b/test/__snapshots__/new-supporter.test.ts.snap index be01168..850e119 100644 --- a/test/__snapshots__/new-supporter.test.ts.snap +++ b/test/__snapshots__/new-supporter.test.ts.snap @@ -406,9 +406,9 @@ exports[`Render new supporter templates Default 1`] = ` + + + +
+ + + + + + +
+ + + +
+
- +
-
立即收藏以表支持
+

+

+ + +
- @@ -497,7 +498,7 @@ exports[`Render new supporter templates Default 1`] = ` - - - -
- - - - \\"立即收藏以表支持\\" - - - + + + 訂閱電子報 +
@@ -517,23 +518,6 @@ exports[`Render new supporter templates Default 1`] = ` >
- -

-

- - - - -
- + @@ -617,7 +601,7 @@ exports[`Render new supporter templates Default 1`] = `
- + @@ -648,7 +632,7 @@ exports[`Render new supporter templates Default 1`] = `
- + @@ -659,6 +643,37 @@ exports[`Render new supporter templates Default 1`] = `
+ + + + + + + diff --git a/test/__snapshots__/referral-tx.test.ts.snap b/test/__snapshots__/referral-tx.test.ts.snap index 21e297b..bc6d742 100644 --- a/test/__snapshots__/referral-tx.test.ts.snap +++ b/test/__snapshots__/referral-tx.test.ts.snap @@ -508,18 +508,17 @@ exports[`Render referral tx templates Referee 1`] = ` - - - + +
- +
+ + + + + + +
+ + + +
+
+ + + + + +
@@ -541,7 +540,7 @@ exports[`Render referral tx templates Referee 1`] = `

+ + + + + + + +
+ + 訂閱電子報 + +
+ +
+ + + + + + +
+ + + + + + + + + + + + +
+ + + + + + + +
+ + +
+ + + + + + + + +
+ + + +
- + @@ -639,7 +713,7 @@ exports[`Render referral tx templates Referee 1`] = `
- + @@ -670,7 +744,7 @@ exports[`Render referral tx templates Referee 1`] = `
- + @@ -681,6 +755,37 @@ exports[`Render referral tx templates Referee 1`] = `
+ + + + + + + @@ -1252,18 +1357,17 @@ exports[`Render referral tx templates Referrer 1`] = ` - - - + +
- +
+ + + + + + +
+ + + +
+
+ + + + + +
@@ -1285,7 +1389,7 @@ exports[`Render referral tx templates Referrer 1`] = `

+ + + + + + + +
+ + 訂閱電子報 + +
+ +
+ +
+ +
+ + + + + + + + + + + + +
+ + + + + + + +
+ + +
+ + + + + + + + +
+ + + +
- + @@ -1383,7 +1562,7 @@ exports[`Render referral tx templates Referrer 1`] = `
- + @@ -1414,7 +1593,7 @@ exports[`Render referral tx templates Referrer 1`] = `
- + @@ -1425,6 +1604,37 @@ exports[`Render referral tx templates Referrer 1`] = `
+ + + + + + + diff --git a/test/__snapshots__/reset-password.test.ts.snap b/test/__snapshots__/reset-password.test.ts.snap index adb3560..16c6c84 100644 --- a/test/__snapshots__/reset-password.test.ts.snap +++ b/test/__snapshots__/reset-password.test.ts.snap @@ -614,18 +614,17 @@ exports[`Render new reset-password templates Default 1`] = ` - - - -
- + + +
+
+ + + + + + +
+ + + +
+
+ + + + + +
@@ -647,7 +646,7 @@ exports[`Render new reset-password templates Default 1`] = `

+ + + + + + + +
+ + Subscribe Newsletter + +
+ +
+ +
+ +
+ + + + + + + + + + + + +
+ + + + + + + +
+ + +
+ + + + + + + + +
+ + + +
- + @@ -745,7 +819,7 @@ exports[`Render new reset-password templates Default 1`] = `
- + @@ -776,7 +850,7 @@ exports[`Render new reset-password templates Default 1`] = `
- + @@ -787,6 +861,37 @@ exports[`Render new reset-password templates Default 1`] = `
+ + + + + + + diff --git a/test/__snapshots__/transaction.test.ts.snap b/test/__snapshots__/transaction.test.ts.snap index 6d08a33..cefb92c 100644 --- a/test/__snapshots__/transaction.test.ts.snap +++ b/test/__snapshots__/transaction.test.ts.snap @@ -600,18 +600,17 @@ exports[`Render new transaction templates Default 1`] = ` - - - -
- + + +
+
+ + + + + + +
+ + + +
+
+ + + + + +
@@ -633,7 +632,7 @@ exports[`Render new transaction templates Default 1`] = `

+ + + + + + + +
+ + Subscribe Newsletter + +
+ +
+ +
+ +
+ + + + + + + + + + + + +
+ + + + + + + +
+ + +
+ + + + + + + + +
+ + + +
- + @@ -731,7 +805,7 @@ exports[`Render new transaction templates Default 1`] = `
- + @@ -762,7 +836,7 @@ exports[`Render new transaction templates Default 1`] = `
- + @@ -773,6 +847,37 @@ exports[`Render new transaction templates Default 1`] = `
+ + + + + + + diff --git a/test/reports/monthly/__snapshots__/civic-liker.test.ts.snap b/test/reports/monthly/__snapshots__/civic-liker.test.ts.snap index 022f8c3..4b42418 100644 --- a/test/reports/monthly/__snapshots__/civic-liker.test.ts.snap +++ b/test/reports/monthly/__snapshots__/civic-liker.test.ts.snap @@ -838,18 +838,17 @@ exports[`Render Civic Liker monthly report templates V1 1`] = ` - - - + +
- +
+ + + + + + +
+ + + +
+
+ + + + + +
@@ -871,7 +870,7 @@ exports[`Render Civic Liker monthly report templates V1 1`] = `

+ + + + + + + +
+ + 訂閱電子報 + +
+ +
+ +
+ +
+ + + + + + + + + + + + +
+ + + + + + + +
+ + +
+ + + + + + + + +
+ + + +
- + @@ -969,7 +1043,7 @@ exports[`Render Civic Liker monthly report templates V1 1`] = `
- + @@ -1000,7 +1074,7 @@ exports[`Render Civic Liker monthly report templates V1 1`] = `
- + @@ -1011,6 +1085,37 @@ exports[`Render Civic Liker monthly report templates V1 1`] = `
+ + + + + + + @@ -1988,18 +2093,17 @@ exports[`Render Civic Liker monthly report templates V2 1`] = ` - - - + +
- +
+ + + + + + +
+ + + +
+
+ + + + + +
@@ -2021,7 +2125,7 @@ exports[`Render Civic Liker monthly report templates V2 1`] = `

+ + + + + + + +
+ + 訂閱電子報 + +
+ +
+ +
+ +
+ + + + + + + + + + + + +
+ + + + + + + +
+ + + + + +
+
+ + + + +
+
+ + + +
+ + +
+ + + + + + + +
+ + + + + + + + + +
+ + + + + + + +
+ + 訂閱電子報 + +
+ +
+ +
+
@@ -3401,7 +3685,7 @@ exports[`Render Civic Liker monthly report templates V3 1`] = `
@@ -3434,7 +3718,7 @@ exports[`Render Civic Liker monthly report templates V3 1`] = `
- + @@ -3504,7 +3788,7 @@ exports[`Render Civic Liker monthly report templates V3 1`] = `
- + @@ -3535,7 +3819,7 @@ exports[`Render Civic Liker monthly report templates V3 1`] = `
- + @@ -3546,6 +3830,37 @@ exports[`Render Civic Liker monthly report templates V3 1`] = `
+ + + + + + + + + + + diff --git a/test/reports/monthly/__snapshots__/creator.test.ts.snap b/test/reports/monthly/__snapshots__/creator.test.ts.snap index 7c929d4..e048006 100644 --- a/test/reports/monthly/__snapshots__/creator.test.ts.snap +++ b/test/reports/monthly/__snapshots__/creator.test.ts.snap @@ -1127,18 +1127,17 @@ exports[`Render writer monthly report templates Default 1`] = ` - - - + +
- +
+ + + + + + +
+ + + +
+
+ + + + + +
@@ -1160,7 +1159,7 @@ exports[`Render writer monthly report templates Default 1`] = `

+ + + + + + + +
+ + 訂閱電子報 + +
+ +
+ + + + + + +
+ + + + + + +
+ + + + + +
+ + + + + + + +
+ + +
+ + + + + + + + +
+ + + +
- + @@ -1258,7 +1332,7 @@ exports[`Render writer monthly report templates Default 1`] = `
- + @@ -1289,7 +1363,7 @@ exports[`Render writer monthly report templates Default 1`] = `
- + @@ -1300,6 +1374,37 @@ exports[`Render writer monthly report templates Default 1`] = `
+ + + + + + + @@ -2723,18 +2828,17 @@ exports[`Render writer monthly report templates V2 1`] = ` - - - + +
- +
+ + + + + + +
+ + + +
+
+ + + + + +
@@ -2756,7 +2860,7 @@ exports[`Render writer monthly report templates V2 1`] = `

+ + + + + + + +
+ + 訂閱電子報 + +
+ +
+ +
+ +
+ + + + + + + + + + + + +
+ + + + +
+ + +