feat: add instance blocking
This commit is contained in:
1 parent
0704ee86c2
commit
896175935e
8 files changed
+202
-47
No files matched your search
@@ -0,0 +1,15 @@
|
||||
<script lang="ts">
|
||||
import Avatar from './Avatar.svelte'
|
||||
|
||||
export let name: string
|
||||
export let label: string | undefined = undefined
|
||||
export let icon: string | undefined = undefined
|
||||
</script>
|
||||
|
||||
<div class="flex flex-row gap-2 items-center">
|
||||
<Avatar url={icon} width={32} />
|
||||
<div class="flex flex-col">
|
||||
<span class="font-medium">{name}</span>
|
||||
<span class="text-sm">{label}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -5,10 +5,13 @@
|
||||
|
||||
export let title: string
|
||||
export let description: string | undefined = undefined
|
||||
export let center: boolean = true
|
||||
</script>
|
||||
|
||||
<div
|
||||
class="text-slate-700 dark:text-zinc-300 flex flex-col justify-center items-center gap-2 {$$props.class}"
|
||||
class="text-slate-700 dark:text-zinc-300 flex flex-col {center
|
||||
? 'justify-center items-center'
|
||||
: 'justify-start items-start'} gap-2 {$$props.class}"
|
||||
>
|
||||
{#if icon}
|
||||
<div
|
||||
@@ -17,12 +20,18 @@
|
||||
<Icon src={icon} size="28" />
|
||||
</div>
|
||||
{/if}
|
||||
<div class="flex flex-col gap-1 text-center">
|
||||
<div
|
||||
class="flex flex-col gap-1 {center
|
||||
? 'text-center'
|
||||
: 'text-left'} {$$props.class}"
|
||||
>
|
||||
<h1 class="text-slate-900 dark:text-zinc-100 text-lg font-medium">
|
||||
{title}
|
||||
</h1>
|
||||
{#if description}
|
||||
<p class="text-sm text-center font-normal">{description}</p>
|
||||
<p class="text-sm {center ? 'text-center' : 'text-left'} font-normal">
|
||||
{description}
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
<slot />
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
<span
|
||||
{...$$restProps}
|
||||
class="text-sm font-bold text-slate-600 dark:text-zinc-400 {$$props.class}"
|
||||
>
|
||||
<span {...$$restProps} class="text-lg font-semibold {$$props.class}">
|
||||
<slot />
|
||||
</span>
|
||||
Reference in new issue
Block a user