Added Donate button to navbar

This commit is contained in:
Mawoka
2023-01-31 18:11:48 +01:00
parent 3e61ecc8d4
commit d738c8eaab
+24 -1
View File
@@ -9,6 +9,7 @@
import { signedIn, pathname } from '$lib/stores';
import { createTippy } from 'svelte-tippy';
import { browser } from '$app/environment';
import BrownButton from '$lib/components/buttons/brown.svelte';
const tippy = createTippy({
arrow: true,
@@ -173,8 +174,11 @@
{/if}
</ul>
<div
class="justify-self-end h-full flex justify-center items-center lg:relative fixed right-12 -top-1/2 pt-11 lg:right-0 lg:top-0 lg:p-0"
class="justify-self-end gap-2 h-full flex justify-center items-center lg:relative fixed right-12 -top-1/2 pt-11 lg:right-0 lg:top-0 lg:p-0"
>
<div class="whitespace-nowrap">
<BrownButton>Donate <span class="">❤️</span></BrownButton>
</div>
{#if darkMode}
<button
on:click={() => {
@@ -229,3 +233,22 @@
{/if}
</div>
</nav>
<style>
.heart {
animation: heartbeat 1s linear infinite;
}
@keyframes heartbeat {
0% {
transform: scale(1);
}
50% {
transform: scale(2);
}
100% {
transform: scale(2);
opacity: 0;
}
}
</style>