feat: add instance blocking
This commit is contained in:
1 parent
0704ee86c2
commit
896175935e
8 files changed
+202
-47
No files matched your search
@@ -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 />
|
||||
|
||||
Reference in new issue
Block a user