design: make placeholders more consistent
This commit is contained in:
1 parent
060040c06e
commit
c3d2ae112f
6 files changed
+45
-55
No files matched your search
@@ -1,12 +1,18 @@
|
||||
<div
|
||||
class="text-slate-600 dark:text-zinc-400 flex flex-col justify-center items-center gap-1"
|
||||
>
|
||||
<slot name="icon" />
|
||||
{#if $$slots.icon}
|
||||
<div
|
||||
class="bg-slate-100 border border-slate-200 dark:border-zinc-700 dark:bg-zinc-800 p-3 rounded-full"
|
||||
>
|
||||
<slot name="icon" />
|
||||
</div>
|
||||
{/if}
|
||||
{#if $$slots.title}
|
||||
<h1 class="font-bold text-3xl"><slot name="title" /></h1>
|
||||
<h1 class="font-bold text-lg"><slot name="title" /></h1>
|
||||
{/if}
|
||||
{#if $$slots.description}
|
||||
<p class="text-lg text-center"><slot name="description" /></p>
|
||||
<p class="text-sm text-center"><slot name="description" /></p>
|
||||
{/if}
|
||||
<slot name="action" />
|
||||
</div>
|
||||
Reference in new issue
Block a user