From 1056e0c2a490d58b508a2a1707b7d5007f3f81ac Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 13 Feb 2023 21:14:46 +0000 Subject: [PATCH] feat: support discord server logo and social platforms tips --- public/assets/social/discord.svg | 1 + src/components/site/Platform.tsx | 5 +++++ .../[subdomain]/settings/social-platforms.tsx | 14 ++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 public/assets/social/discord.svg diff --git a/public/assets/social/discord.svg b/public/assets/social/discord.svg new file mode 100644 index 00000000..ca654007 --- /dev/null +++ b/public/assets/social/discord.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/site/Platform.tsx b/src/components/site/Platform.tsx index da86f056..cccc3393 100644 --- a/src/components/site/Platform.tsx +++ b/src/components/site/Platform.tsx @@ -70,6 +70,11 @@ const syncMap: { name: "Nintendo Switch", icon: "/assets/social/nintendo_switch.svg", }, + "discord server": { + name: "Discord Server", + icon: "/assets/social/discord.svg", + url: "https://discord.gg/{username}", + }, } export const Platform: React.FC<{ diff --git a/src/pages/dashboard/[subdomain]/settings/social-platforms.tsx b/src/pages/dashboard/[subdomain]/settings/social-platforms.tsx index c0942eff..2cfa3f2c 100644 --- a/src/pages/dashboard/[subdomain]/settings/social-platforms.tsx +++ b/src/pages/dashboard/[subdomain]/settings/social-platforms.tsx @@ -153,6 +153,20 @@ export default function SiteSettingsNavigationPage() { corner of your xLog.
+
+
+ We support{" "}
+
You can also connect to Twitter, Telegram Channel, Medium, Substack