From 1014ee3413f7a1ffd341d19c73d80ca772348d11 Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 23 May 2023 22:52:17 +0600 Subject: [PATCH] added discord server to about --- src/config.json | 4 ++++ src/front/emoji/alien_monster.svg | 9 +++++++++ src/modules/emoji.js | 3 ++- src/modules/pageRender/page.js | 5 +++-- 4 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 src/front/emoji/alien_monster.svg diff --git a/src/config.json b/src/config.json index 2871c3ea..91915bcf 100644 --- a/src/config.json +++ b/src/config.json @@ -14,6 +14,10 @@ "mastodon": { "url": "https://wetdry.world/@cobalt", "handle": "@cobalt@wetdry.world" + }, + "discord": { + "url": "https://discord.gg/pQPt8HBUPu", + "handle": "cobalt community server" } } }, diff --git a/src/front/emoji/alien_monster.svg b/src/front/emoji/alien_monster.svg new file mode 100644 index 00000000..66be00bd --- /dev/null +++ b/src/front/emoji/alien_monster.svg @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/modules/emoji.js b/src/modules/emoji.js index 284404d4..3565a452 100644 --- a/src/modules/emoji.js +++ b/src/modules/emoji.js @@ -23,7 +23,8 @@ const names = { "🐙": "octopus", "🔮": "crystal_ball", "💪": "biceps", - "💖": "sparkling_heart" + "💖": "sparkling_heart", + "👾": "alien_monster" } let sizing = { 22: 0.4, diff --git a/src/modules/pageRender/page.js b/src/modules/pageRender/page.js index f4046e80..9e6bf957 100644 --- a/src/modules/pageRender/page.js +++ b/src/modules/pageRender/page.js @@ -96,8 +96,9 @@ export default function(obj) { "name": "support", "title": t("CollapseSupport"), "body": `${t("FollowSupport")}
- ${socialLink(emoji("🐘"), "mastodon", authorInfo.support.mastodon.handle, authorInfo.support.mastodon.url)} - ${socialLink(emoji("🐦"), "twitter", authorInfo.support.twitter.handle, authorInfo.support.twitter.url)}
+ ${socialLink(emoji("🐦"), "twitter", authorInfo.support.twitter.handle, authorInfo.support.twitter.url)} + ${socialLink(emoji("👾"), "discord", authorInfo.support.discord.handle, authorInfo.support.discord.url)} + ${socialLink(emoji("🐘"), "mastodon", authorInfo.support.mastodon.handle, authorInfo.support.mastodon.url)}
${t("SourceCode")}
${socialLink(emoji("🐙"), "github", repo.replace("https://github.com/", ''), repo)}
${t("SupportNote")}`