Skip to content

Commit b86bcaa

Browse files
committed
discord for Thrive articles
1 parent 6c42073 commit b86bcaa

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed
Lines changed: 19 additions & 0 deletions
Loading

src/shared/components/Contentful/Article/Article.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import ReadMoreArrow from 'assets/images/read-more-arrow.svg';
3131
import IconFacebook from 'assets/images/icon-facebook.svg';
3232
import IconTwitter from 'assets/images/icon-twitter.svg';
3333
import IconLinkedIn from 'assets/images/icon-linkedIn.svg';
34+
import DiscordIconWhite from 'assets/images/tc-edu/discord-icon-white.svg';
3435

3536
const htmlToText = require('html-to-text');
3637

@@ -335,6 +336,10 @@ class Article extends React.Component {
335336
<span>{downvotes}</span>
336337
</div>
337338
</div>
339+
{/* Discord */}
340+
<div className={theme.actionContainer}>
341+
<a class="primary-green-md" href="https://discord.gg/topcoder?ref=thrive-article" rel="noopener noreferrer" target="_blank"><DiscordIconWhite /> Chat on Discord</a>
342+
</div>
338343
</div>
339344
</div>
340345
{/* Recommended */}

src/shared/components/Contentful/Article/themes/default.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@
66
flex-direction: column;
77
}
88

9+
a.primary-green-md {
10+
outline: none;
11+
12+
@include primary-green;
13+
@include md;
14+
15+
&:hover {
16+
@include primary-green;
17+
}
18+
19+
&:disabled,
20+
&:hover:disabled {
21+
background-color: #e9e9e9 !important;
22+
border: none !important;
23+
text-decoration: none !important;
24+
color: #fafafb !important;
25+
box-shadow: none !important;
26+
}
27+
}
28+
929
.shareButtons {
1030
margin-top: 10px;
1131

0 commit comments

Comments
 (0)