misc: add account logging in
This commit is contained in:
1 parent
7d3f29d9eb
commit
f71ad4be8e
21 files changed
+686
-151
No files matched your search
@@ -0,0 +1,27 @@
|
||||
<script lang="ts">
|
||||
import { Color } from '$lib/ui/colors'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
|
||||
export let color: Color = Color.secondary
|
||||
export let link = false
|
||||
export let href = ''
|
||||
|
||||
const click = createEventDispatcher()
|
||||
</script>
|
||||
|
||||
{#if link}
|
||||
<a
|
||||
{href}
|
||||
class="flex flex-row gap-2 items-center px-4 py-2 w-full text-sm transition-colors {color}"
|
||||
>
|
||||
<slot />
|
||||
</a>
|
||||
{:else}
|
||||
<button
|
||||
on:click={(e) => click('click', e)}
|
||||
type="button"
|
||||
class="flex flex-row gap-2 items-center px-4 py-2 w-full text-sm transition-colors {color}"
|
||||
>
|
||||
<slot />
|
||||
</button>
|
||||
{/if}
|
||||
Reference in new issue
Block a user