Skip to content

Commit ca28f01

Browse files
authored
Merge pull request #92 from Honzoraptor31415/main
Added a discord section
2 parents a2e34dd + a16d76b commit ca28f01

File tree

3 files changed

+89
-0
lines changed

3 files changed

+89
-0
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<script>
2+
import DiscordWhiteBig from '$lib/icons/socials/discord-white-big.svelte';
3+
</script>
4+
5+
<section id="discord">
6+
<div class="container">
7+
<div class="content">
8+
<DiscordWhiteBig />
9+
</div>
10+
<div class="content">
11+
<h2>We also have discord!</h2>
12+
<p>Join our discord server now and stay in touch with other users and developers!</p>
13+
</div>
14+
<div class="content">
15+
<a href="https://discord.com/invite/2D3jW2YDgS" class="discord-link">Join now!</a>
16+
</div>
17+
</div>
18+
</section>
19+
20+
<style>
21+
:root {
22+
--discord-color: #5865f2;
23+
}
24+
25+
#discord {
26+
background-color: var(--discord-color);
27+
border-radius: 1.5rem;
28+
padding: 30px;
29+
text-align: center;
30+
}
31+
32+
.container {
33+
display: flex;
34+
flex-direction: column;
35+
gap: 25px;
36+
align-items: center;
37+
padding: 0;
38+
}
39+
40+
.content {
41+
display: flex;
42+
flex-direction: column;
43+
gap: 6px;
44+
align-items: center;
45+
}
46+
47+
.discord-link {
48+
font-size: 0.875rem;
49+
padding: 0.625rem 0.875rem;
50+
border-radius: 0.375rem;
51+
text-decoration: none;
52+
display: flex;
53+
font-weight: 600;
54+
transition: 0.2s;
55+
color: black;
56+
border: 2px white solid;
57+
background: white;
58+
}
59+
60+
.discord-link:hover {
61+
background: transparent;
62+
border-color: white;
63+
color: white;
64+
}
65+
66+
@media (max-width: 599px) {
67+
h2 {
68+
font-size: 1.3rem;
69+
}
70+
71+
p {
72+
font-size: 0.9rem;
73+
}
74+
}
75+
76+
@media (min-width: 600px) {
77+
p {
78+
max-width: 600px;
79+
}
80+
}
81+
</style>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<svg xmlns="http://www.w3.org/2000/svg" width="90" height="90" viewBox="0 0 127.14 96.36"
2+
><path
3+
fill="#fff"
4+
d="M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"
5+
/></svg
6+
>

src/routes/(waves)/+page.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import Testimonials from '$lib/components/organisms/Testimonials.svelte';
1010
import Newsletter from '$lib/components/organisms/Newsletter.svelte';
1111
import type { Feature, BlogPost } from '$lib/utils/types';
12+
import Discord from '$lib/components/organisms/Discord.svelte';
1213
1314
export let data: {
1415
features: Feature[];
@@ -29,5 +30,6 @@
2930
{/if}
3031
<BCSponsors />
3132
<Newsletter />
33+
<Discord />
3234
<Faq />
3335
</div>

0 commit comments

Comments
 (0)