From 62190dcb39e47fa2856b09523e77540252576162 Mon Sep 17 00:00:00 2001 From: Marcus Kazmierczak Date: Wed, 14 Oct 2020 10:19:46 -0700 Subject: [PATCH] Social Icons: Adds Patreon, Telegram, Tiktok Adds the icons for Pateron, Telegram, and Tiktok Closes: #25008, #24572, #21701 --- .../src/social-link/icons/index.js | 3 +++ .../src/social-link/icons/patreon.js | 11 ++++++++++ .../src/social-link/icons/telegram.js | 10 +++++++++ .../src/social-link/icons/tiktok.js | 10 +++++++++ .../src/social-link/socials-with-bg.scss | 15 +++++++++++++ .../src/social-link/socials-without-bg.scss | 12 +++++++++++ .../src/social-link/variations.js | 21 +++++++++++++++++++ 7 files changed, 82 insertions(+) create mode 100644 packages/block-library/src/social-link/icons/patreon.js create mode 100644 packages/block-library/src/social-link/icons/telegram.js create mode 100644 packages/block-library/src/social-link/icons/tiktok.js diff --git a/packages/block-library/src/social-link/icons/index.js b/packages/block-library/src/social-link/icons/index.js index a57b6f3d048f75..a9b096a4b0eaab 100644 --- a/packages/block-library/src/social-link/icons/index.js +++ b/packages/block-library/src/social-link/icons/index.js @@ -22,6 +22,7 @@ export * from './mail'; export * from './mastodon'; export * from './meetup'; export * from './medium'; +export * from './patreon'; export * from './pinterest'; export * from './pocket'; export * from './reddit'; @@ -29,6 +30,8 @@ export * from './skype'; export * from './snapchat'; export * from './soundcloud'; export * from './spotify'; +export * from './telegram'; +export * from './tiktok'; export * from './tumblr'; export * from './twitch'; export * from './twitter'; diff --git a/packages/block-library/src/social-link/icons/patreon.js b/packages/block-library/src/social-link/icons/patreon.js new file mode 100644 index 00000000000000..9970d49eb4e0f6 --- /dev/null +++ b/packages/block-library/src/social-link/icons/patreon.js @@ -0,0 +1,11 @@ +/** + * WordPress dependencies + */ +import { Circle, Rect, SVG } from '@wordpress/primitives'; + +export const PatreonIcon = () => ( + + + + +); diff --git a/packages/block-library/src/social-link/icons/telegram.js b/packages/block-library/src/social-link/icons/telegram.js new file mode 100644 index 00000000000000..4a694d1d278dee --- /dev/null +++ b/packages/block-library/src/social-link/icons/telegram.js @@ -0,0 +1,10 @@ +/** + * WordPress dependencies + */ +import { Path, SVG } from '@wordpress/primitives'; + +export const TelegramIcon = () => ( + + + +); diff --git a/packages/block-library/src/social-link/icons/tiktok.js b/packages/block-library/src/social-link/icons/tiktok.js new file mode 100644 index 00000000000000..bc76127b02b2a2 --- /dev/null +++ b/packages/block-library/src/social-link/icons/tiktok.js @@ -0,0 +1,10 @@ +/** + * WordPress dependencies + */ +import { Path, SVG } from '@wordpress/primitives'; + +export const TiktokIcon = () => ( + + + +); diff --git a/packages/block-library/src/social-link/socials-with-bg.scss b/packages/block-library/src/social-link/socials-with-bg.scss index ec46f3626bf4d0..a94b8560ba9ef1 100644 --- a/packages/block-library/src/social-link/socials-with-bg.scss +++ b/packages/block-library/src/social-link/socials-with-bg.scss @@ -108,6 +108,11 @@ color: #fff; } +.wp-social-link-patreon { + background-color: #ff424d; + color: #fff; +} + .wp-social-link-pinterest { background-color: #e60122; color: #fff; @@ -144,6 +149,16 @@ color: #fff; } +.wp-social-link-telegram { + background-color: #2aabee; + color: #fff; +} + +.wp-social-link-tiktok { + background-color: #000; + color: #fff; +} + .wp-social-link-tumblr { background-color: #011835; color: #fff; diff --git a/packages/block-library/src/social-link/socials-without-bg.scss b/packages/block-library/src/social-link/socials-without-bg.scss index 89d05e6fd37cb9..2bb6b65d0c03b0 100644 --- a/packages/block-library/src/social-link/socials-without-bg.scss +++ b/packages/block-library/src/social-link/socials-without-bg.scss @@ -82,6 +82,10 @@ color: #f6405f; } +.wp-social-link-patreon { + color: #ff424d; +} + .wp-social-link-pinterest { color: #e60122; } @@ -111,6 +115,14 @@ color: #1bd760; } +.wp-social-link-telegram { + color: #2aabee; +} + +.wp-social-link-tiktok { + color: #000; +} + .wp-social-link-tumblr { color: #011835; } diff --git a/packages/block-library/src/social-link/variations.js b/packages/block-library/src/social-link/variations.js index 028495590bcaac..5455f93254aa10 100644 --- a/packages/block-library/src/social-link/variations.js +++ b/packages/block-library/src/social-link/variations.js @@ -26,6 +26,7 @@ import { MastodonIcon, MeetupIcon, MediumIcon, + PatreonIcon, PinterestIcon, PocketIcon, RedditIcon, @@ -33,6 +34,8 @@ import { SnapchatIcon, SoundCloudIcon, SpotifyIcon, + TelegramIcon, + TiktokIcon, TumblrIcon, TwitchIcon, TwitterIcon, @@ -197,6 +200,12 @@ const variations = [ title: 'Medium', icon: MediumIcon, }, + { + name: 'patreon', + attributes: { service: 'patreon' }, + title: 'Patreon', + icon: PatreonIcon, + }, { name: 'pinterest', attributes: { service: 'pinterest' }, @@ -239,6 +248,18 @@ const variations = [ title: 'Spotify', icon: SpotifyIcon, }, + { + name: 'telegram', + attributes: { service: 'telegram' }, + title: 'Telegram', + icon: TelegramIcon, + }, + { + name: 'tiktok', + attributes: { service: 'tiktok' }, + title: 'Tiktok', + icon: TiktokIcon, + }, { name: 'tumblr', attributes: { service: 'tumblr' },