From cc03ebdf610008f919e2c05e06b890da3e123428 Mon Sep 17 00:00:00 2001 From: NormanPracht Date: Tue, 21 Nov 2023 09:12:42 +0100 Subject: [PATCH 1/3] add x social network in socialelements.js --- packages/mjml-social/src/SocialElement.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/mjml-social/src/SocialElement.js b/packages/mjml-social/src/SocialElement.js index 0050f8526..faf910d27 100644 --- a/packages/mjml-social/src/SocialElement.js +++ b/packages/mjml-social/src/SocialElement.js @@ -14,6 +14,11 @@ const defaultSocialNetworks = { 'background-color': '#55acee', src: `${IMG_BASE_URL}twitter.png`, }, + x: { + 'share-url': 'https://twitter.com/intent/tweet?url=[[URL]]', + 'background-color': '000000', + src: `${IMG_BASE_URL}x.png`, + }, google: { 'share-url': 'https://plus.google.com/share?url=[[URL]]', 'background-color': '#dc4e41', From 61736f153508b59adc0871bd977decc1fc4d3009 Mon Sep 17 00:00:00 2001 From: NormanPracht Date: Tue, 21 Nov 2023 11:57:45 +0100 Subject: [PATCH 2/3] fix path --- packages/mjml-social/src/SocialElement.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mjml-social/src/SocialElement.js b/packages/mjml-social/src/SocialElement.js index faf910d27..e39f61a44 100644 --- a/packages/mjml-social/src/SocialElement.js +++ b/packages/mjml-social/src/SocialElement.js @@ -16,8 +16,8 @@ const defaultSocialNetworks = { }, x: { 'share-url': 'https://twitter.com/intent/tweet?url=[[URL]]', - 'background-color': '000000', - src: `${IMG_BASE_URL}x.png`, + 'background-color': '#000000', + src: `${IMG_BASE_URL}twitter-x.png`, }, google: { 'share-url': 'https://plus.google.com/share?url=[[URL]]', From cebf7925a7d789dcb43daeda7b0986fa69abbc3e Mon Sep 17 00:00:00 2001 From: NormanPracht Date: Mon, 29 Jan 2024 13:40:23 +0100 Subject: [PATCH 3/3] update readme --- packages/mjml-social/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/mjml-social/README.md b/packages/mjml-social/README.md index 63874f284..1cfd8f4db 100644 --- a/packages/mjml-social/README.md +++ b/packages/mjml-social/README.md @@ -18,9 +18,12 @@ Displays calls-to-action for various social networks with their associated logo. Google - + Twitter + + X + @@ -106,6 +109,7 @@ vertical-align | string | top/middle/bottom | midd Supported networks with a share url: - facebook - twitter +- x - google - pinterest - linkedin