feat(main): add discord server links & routes
This commit is contained in:
parent
ea48ea5e07
commit
c4549b8a95
3 changed files with 18 additions and 0 deletions
1
apps/main/src/constants.ts
Normal file
1
apps/main/src/constants.ts
Normal file
|
@ -0,0 +1 @@
|
|||
export const discordInviteLink = "https://discord.gg/aQqamSCUcS"
|
|
@ -2,9 +2,11 @@
|
|||
import { css } from "@emotion/css"
|
||||
import darkTheme from "@developomp-site/theme/dist/dark.json"
|
||||
import HandWave from "../components/HandWave.svelte"
|
||||
import { discordInviteLink } from "../constants"
|
||||
import { SocialProfile } from "../theme"
|
||||
|
||||
import GitHub from "@inqling/svelte-icons/simple-icons/github.svelte"
|
||||
import Discord from "@inqling/svelte-icons/simple-icons/discord.svelte"
|
||||
import Twitter from "@inqling/svelte-icons/simple-icons/twitter.svelte"
|
||||
import Mastodon from "@inqling/svelte-icons/simple-icons/mastodon.svelte"
|
||||
import YouTube from "@inqling/svelte-icons/simple-icons/youtube.svelte"
|
||||
|
@ -88,6 +90,9 @@
|
|||
>
|
||||
<GitHub />
|
||||
</a>
|
||||
<a class={SocialProfile} target="_blank" href={discordInviteLink} aria-label="GitHub link">
|
||||
<Discord />
|
||||
</a>
|
||||
<a
|
||||
class={SocialProfile}
|
||||
target="_blank"
|
||||
|
|
12
apps/main/src/routes/discord/+page.svelte
Normal file
12
apps/main/src/routes/discord/+page.svelte
Normal file
|
@ -0,0 +1,12 @@
|
|||
<script>
|
||||
import Discord from "@inqling/svelte-icons/simple-icons/discord.svelte"
|
||||
import { discordInviteLink } from "../../constants"
|
||||
|
||||
// redirect to developomp's discord server
|
||||
window.location.replace(discordInviteLink)
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<Discord />
|
||||
<h1>Redirecting...</h1>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue