misc: design tweaks

This commit is contained in:
Xyphyn committed 2023-08-07 15:05:45 -07:00
1 parent 51344294ff
commit c922d5e143
6 files changed
+15 -14

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@
href="/admin" href="/admin"
aria-label="Admin" aria-label="Admin"
class="max-md:w-9 max-md:h-8 max-md:!p-0 class="max-md:w-9 max-md:h-8 max-md:!p-0
hover:text-inherit dark:text-zinc-300 text-slate-700 hover:text-inherit
hover:bg-slate-200 hover:dark:bg-zinc-900 relative" hover:bg-slate-200 hover:dark:bg-zinc-900 relative"
> >
<Icon src={CommandLine} mini size="16" slot="icon" /> <Icon src={CommandLine} mini size="16" slot="icon" />
+3 -3
View File
@@ -1,12 +1,12 @@
<div <div
class="text-slate-600 dark:text-zinc-400 flex flex-col justify-center items-center" class="text-slate-600 dark:text-zinc-400 flex flex-col justify-center items-center gap-1"
> >
<slot name="icon" /> <slot name="icon" />
{#if $$slots.title} {#if $$slots.title}
<h1 class="font-bold text-2xl"><slot name="title" /></h1> <h1 class="font-bold text-3xl"><slot name="title" /></h1>
{/if} {/if}
{#if $$slots.description} {#if $$slots.description}
<p><slot name="description" /></p> <p class="text-lg"><slot name="description" /></p>
{/if} {/if}
<slot name="action" /> <slot name="action" />
</div> </div>
+2
View File
@@ -68,11 +68,13 @@
{/if} {/if}
<PostFeed posts={data.posts.posts} /> <PostFeed posts={data.posts.posts} />
</section> </section>
<div class="mt-auto">
<Pageination <Pageination
page={data.page} page={data.page}
on:change={(p) => searchParam($page.url, 'page', p.detail.toString())} on:change={(p) => searchParam($page.url, 'page', p.detail.toString())}
/> />
</div> </div>
</div>
<aside class="hidden xl:block"> <aside class="hidden xl:block">
{#await data.streamed.site} {#await data.streamed.site}
<StickyCard> <StickyCard>
+1 -1
View File
@@ -39,7 +39,7 @@
{/if} {/if}
{:else} {:else}
<Placeholder> <Placeholder>
<Icon src={ClipboardDocumentCheck} size="32" slot="icon" /> <Icon src={ClipboardDocumentCheck} size="48" slot="icon" />
<span slot="title">No applications</span> <span slot="title">No applications</span>
<span slot="description">You're all caught up for now.</span> <span slot="description">You're all caught up for now.</span>
</Placeholder> </Placeholder>
+1 -1
View File
@@ -106,7 +106,7 @@
<Placeholder> <Placeholder>
<Icon src={QuestionMarkCircle} solid size="32" slot="icon" /> <Icon src={QuestionMarkCircle} solid size="32" slot="icon" />
<span slot="title">No taglines</span> <span slot="title">No taglines</span>
<div slot="action" class=" mt-4 w-full flex flex-col gap-2"> <div slot="action" class="mt-4 max-w-xl w-full flex flex-col gap-2">
<form <form
class="flex flex-col gap-2 w-full" class="flex flex-col gap-2 w-full"
on:submit|preventDefault={() => { on:submit|preventDefault={() => {
+7 -8
View File
@@ -9,6 +9,7 @@
import Pageination from '$lib/components/ui/Pageination.svelte' import Pageination from '$lib/components/ui/Pageination.svelte'
import MultiSelect from '$lib/components/input/MultiSelect.svelte' import MultiSelect from '$lib/components/input/MultiSelect.svelte'
import { profile } from '$lib/auth.js' import { profile } from '$lib/auth.js'
import Placeholder from '$lib/components/ui/Placeholder.svelte'
export let data export let data
@@ -81,16 +82,14 @@
}} }}
/> />
</div> </div>
<div class="flex flex-col gap-4 list-none my-4"> <div class="flex flex-col gap-4 list-none my-4 h-full">
{#if !data.data || (data.data?.length ?? 0) == 0} {#if !data.data || (data.data?.length ?? 0) == 0}
<div
class="text-slate-600 dark:text-zinc-400 flex flex-col justify-center items-center py-8 gap-2"
>
<Icon src={EnvelopeOpen} size="48" />
<div> <div>
<h1 class="font-bold text-3xl">Inbox empty</h1> <Placeholder>
<p class="mt-2 text-center">You're all caught up!</p> <Icon src={EnvelopeOpen} size="48" slot="icon" />
</div> <span slot="title">Inbox empty</span>
<span slot="description">You're all caught up!</span>
</Placeholder>
</div> </div>
{:else} {:else}
{#each data.data as item} {#each data.data as item}