feat: change the way placeholders work
This commit is contained in:
1 parent
8aa62b046e
commit
e86d436c86
12 files changed
+121
-96
No files matched your search
@@ -38,8 +38,9 @@
|
||||
</div>
|
||||
{/if}
|
||||
{:else}
|
||||
<Placeholder>
|
||||
<Icon src={ClipboardDocumentCheck} size="28" slot="icon" />
|
||||
<span slot="title">No new applications</span>
|
||||
</Placeholder>
|
||||
<Placeholder
|
||||
icon={ClipboardDocumentCheck}
|
||||
title="No new applications"
|
||||
description="Applications to join your instance will appear here."
|
||||
/>
|
||||
{/if}
|
||||
@@ -103,10 +103,12 @@
|
||||
</form>
|
||||
{:else}
|
||||
<div class="my-auto">
|
||||
<Placeholder>
|
||||
<Icon src={Plus} solid size="28" slot="icon" />
|
||||
<span slot="title">No taglines</span>
|
||||
<div slot="action" class="mt-4 max-w-xl w-full flex flex-col gap-2">
|
||||
<Placeholder
|
||||
icon={Plus}
|
||||
title="No taglines"
|
||||
description="A random tagline will appear when users visit your instance."
|
||||
>
|
||||
<div class="mt-4 max-w-xl w-full flex flex-col gap-2">
|
||||
<form
|
||||
class="flex flex-col gap-2 w-full"
|
||||
on:submit|preventDefault={() => {
|
||||
|
||||
Reference in new issue
Block a user