From 92cf69c685eb2eb8f13652689e926490552d25a6 Mon Sep 17 00:00:00 2001
From: Sanks <41530422+sanks64@users.noreply.github.com>
Date: Wed, 18 Nov 2020 21:35:31 +0600
Subject: [PATCH] Add an unofficial Discord server to the community page (#120)
* Add Discord icon
* Add Discord community row without content
* Add content to the Discord community row
* Remove a separator within the Chat Room section
---
_assets/css/_sprites.scss | 1 +
_assets/img/icons.svg | 18 ++++++++++++++++++
community/index.html | 10 ++++++++++
3 files changed, 29 insertions(+)
diff --git a/_assets/css/_sprites.scss b/_assets/css/_sprites.scss
index b0c878ba..526084ea 100644
--- a/_assets/css/_sprites.scss
+++ b/_assets/css/_sprites.scss
@@ -13,6 +13,7 @@ i.extra-icons {
&.github { background-position: 0px -24px; }
&.stack_overflow { background-position: 1px -1px; }
&.gitter { background-position: -24px -24px; }
+ &.discord { background-position: 0px -72px; }
&.google { background-position: -47px -24px; }
&.twitter { background-position: -24px -1px; }
&.reddit { background-position: -72px -1px; }
diff --git a/_assets/img/icons.svg b/_assets/img/icons.svg
index 39297844..c2142365 100644
--- a/_assets/img/icons.svg
+++ b/_assets/img/icons.svg
@@ -42,4 +42,22 @@
c0-0.7,0.7-1.3,1.4-1.3c0,0,0,0,0,0h19.2c0.7,0,1.4,0.6,1.4,1.3c0,0,0,0,0,0l0,0V69.7z"/>
+
+
diff --git a/community/index.html b/community/index.html
index bec46a95..7b898f1b 100644
--- a/community/index.html
+++ b/community/index.html
@@ -64,6 +64,16 @@
link_text="#crystal-lang"
url="https://webchat.freenode.net/?channels=%23crystal-lang"
icon="web_asset"
+ continues=true
+%}
+
+{% include community_row.html
+ title=""
+ content="The Discord server, unlike the Gitter room and the IRC channel, is unofficial, but strives not to yield to the official alternatives. There are many channels to discuss any kinds of topics related to the language."
+ link_text="Crystal Programming"
+ url="https://discord.gg/YS7YvQy"
+ icon="discord"
+ custom_icon=true
%}
{% include community_row.html