Skip to content

Commit 377cbc5

Browse files
authored
adds community links (#88)
1 parent b0f801b commit 377cbc5

File tree

6 files changed

+40
-3
lines changed

6 files changed

+40
-3
lines changed

src/app/home/home.component.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,24 @@
2727
</div>
2828

2929
<article>
30+
<section
31+
class="max-w-md my-8 sm:-mt-16 relative z-50 center mx-auto px-8 py-8 items-center rounded-2xl sm:shadow-lg bg-bg">
32+
<h2 class="text-center">Community</h2>
33+
<div class="flex flex-row align-center justify-center gap-8">
34+
<a
35+
href="https://discord.gg/vKxQztg7gB"
36+
target="_blank"
37+
title="Ecsact Discord Server">
38+
<div class="brand discord w-16 h-16"></div>
39+
</a>
40+
<a
41+
href="https://github.com/ecsact-dev"
42+
target="_blank"
43+
title="Ecsact GitHub Org">
44+
<div class="brand github w-16 h-16"></div>
45+
</a>
46+
</div>
47+
</section>
3048
<section
3149
class="max-w-2xl my-8 center mx-auto px-4 py-16 flex flex-col-reverse lg:flex-row gap-8 items-center">
3250
<div class="flex-1">
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

src/assets/brand/github-mark.svg

Lines changed: 1 addition & 0 deletions
Loading

src/styles.scss

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ $whiteColor: #d4d4d4;
2929
.brand.godot {
3030
background-image: url(assets/brand/godot-dark.png);
3131
}
32+
.brand.discord {
33+
background-image: url(assets/brand/discord-mark-white.svg);
34+
}
35+
.brand.github {
36+
background-image: url(assets/brand/github-mark.svg);
37+
filter: invert(1);
38+
}
3239
}
3340

3441
@mixin light-color-scheme {
@@ -54,6 +61,13 @@ $whiteColor: #d4d4d4;
5461
.brand.godot {
5562
background-image: url(assets/brand/godot-light.png);
5663
}
64+
.brand.discord {
65+
background-image: url(assets/brand/discord-mark-white.svg);
66+
filter: invert(1);
67+
}
68+
.brand.github {
69+
background-image: url(assets/brand/github-mark.svg);
70+
}
5771
}
5872

5973
:root {
@@ -327,9 +341,6 @@ main article {
327341
&:hover {
328342
box-shadow: 0 12px 16px rgba(0, 0, 0, 0.16);
329343
}
330-
*::selection {
331-
background: rgba(255, 255, 255, 0.16);
332-
}
333344
}
334345

335346
@media (max-width: 1600px) {

src/syntax-highlighting.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99

1010
code[class*='language-'],
1111
pre[class*='language-'] {
12+
13+
*::selection {
14+
background: rgba(255, 255, 255, 0.16);
15+
}
16+
1217
.token.comment,
1318
.token.prolog,
1419
.token.doctype,

0 commit comments

Comments
 (0)