feat: revamp settings page
This commit is contained in:
1 parent
d788b17f72
commit
4af32dc3f0
6 files changed
+100
-129
No files matched your search
@@ -1,22 +1,17 @@
|
||||
<script lang="ts">
|
||||
import { Material } from 'mono-svelte'
|
||||
</script>
|
||||
|
||||
<Material color="distinct" padding="none" class="my-2">
|
||||
<div class="px-5 pt-5 flex flex-col gap-3" class:pb-5={!$$slots.default}>
|
||||
<h1 class="font-bold text-lg"><slot name="title" /></h1>
|
||||
<div class="flex flex-row items-center w-full justify-between gap-4">
|
||||
<div class="flex flex-col gap-0.5 flex-1 {$$props.class}">
|
||||
<h1 class="font-medium text-base"><slot name="title" /></h1>
|
||||
{#if $$slots.description}
|
||||
<p class="text-slate-800 dark:text-zinc-200">
|
||||
<p class="text-slate-800 dark:text-zinc-200 text-sm">
|
||||
<slot name="description" />
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
{#if $$slots.default}
|
||||
<div
|
||||
class="w-full px-5 py-3 bg-slate-50 dark:bg-zinc-950 border-t dark:border-zinc-800 mt-4
|
||||
flex flex-col gap-2"
|
||||
class="w-full flex flex-col gap-2 flex-1 items-end {$$props.optionClass}"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
{/if}
|
||||
</Material>
|
||||
</div>
|
||||
Reference in new issue
Block a user