Skip to content

Commit

Permalink
Create Link Component
Browse files Browse the repository at this point in the history
  • Loading branch information
holybaechu committed Feb 22, 2024
1 parent a6ab83b commit b9829fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/components/Link.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script>
export let href = "";
</script>

<a target="_blank" href={href} class="text-primary hover:underline">
<slot />
</a>
7 changes: 4 additions & 3 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script>
import Button from '$components/Button.svelte';
import Card from '$components/Card.svelte';
import Link from '$components/Link.svelte';
import Logo from "$lib/images/logo.webp"
</script>
Expand Down Expand Up @@ -37,13 +38,13 @@
<!-- Cards -->
<div class="grid gap-4 mt-10 grid-cols-1 sm:grid-cols-2 md:grid-cols-3">
<Card title="🕑 Uptime">
We will work hard to ensure that our bot is always ready to send notifications when someone boosts your server. You can find our status page <a target="_blank" class="text-secondary" href="/status">here</a>.
We will work hard to ensure that our bot is always ready to send notifications when someone boosts your server. You can find our status page <Link href="/status">here</Link>.
</Card>
<Card title="✨ Customization">
You can customize the image of the embed and DM messages sent to booster to fit your server's style.
</Card>
<Card title="🌍 Multi Language">
You can change the language of the bot's reponses, command names and descriptions to ensure that your server members can use the bot in their own language. If you're missing a language, you can apply as a translator on our <a target="_blank" class="text-secondary" href="/support">support server</a>.
You can change the language of the bot's reponses, command names and descriptions to ensure that your server members can use the bot in their own language. If you're missing a language, you can apply as a translator on our <Linkhref="/support">support server</Link>.
</Card>
<Card title="🛠️ Easy Management">
You can manage which roles will be given to the booster and which channel will the notifications be sent to with just one command.
Expand All @@ -52,7 +53,7 @@
You can simulate a boost to test if the bot is working correctly and to see how your notification configuration will look like.
</Card>
<Card title="📞 Fast Support">
We have a dedicated <a target="_blank" class="text-secondary" href="/support">support server</a> where you can ask for help and we will respond as soon as possible. To report bugs or suggest new features use our <a target="_blank" class="text-secondary" href="/feedback">feedback app</a>.
We have a dedicated <Link href="/support">support server</Link> where you can ask for help and we will respond as soon as possible. To report bugs or suggest new features use our <Link href="/feedback">feedback app</Link>.
</Card>
</div>
</div>

0 comments on commit b9829fc

Please sign in to comment.