From 0bb99ddb86d36a075649418f5d38e00baf3a5d9c Mon Sep 17 00:00:00 2001 From: Xylight Date: Tue, 14 Oct 2025 17:20:26 -0700 Subject: [PATCH] design: update accounts page and commonlist --- src/lib/feature/legacy/ProfileAvatar.svelte | 46 ++--- src/lib/ui/generic/Blobs.svelte | 146 ++++++++++++++ src/lib/ui/layout/CommonList.svelte | 14 +- src/lib/ui/layout/Shell.svelte | 1 - src/routes/accounts/+page.svelte | 201 ++++++++++---------- 5 files changed, 266 insertions(+), 142 deletions(-) create mode 100644 src/lib/ui/generic/Blobs.svelte diff --git a/src/lib/feature/legacy/ProfileAvatar.svelte b/src/lib/feature/legacy/ProfileAvatar.svelte index 7f9a9da1..c421850d 100644 --- a/src/lib/feature/legacy/ProfileAvatar.svelte +++ b/src/lib/feature/legacy/ProfileAvatar.svelte @@ -1,23 +1,14 @@ {#if profile} @@ -25,30 +16,15 @@ style="width: {size}px; height: {size}px;" class={[profile.avatar && 'bg-slate-200 rounded-full dark:bg-zinc-700']} > - {#if profile.avatar} - - {:else} - - {/if} + {/if} diff --git a/src/lib/ui/generic/Blobs.svelte b/src/lib/ui/generic/Blobs.svelte new file mode 100644 index 00000000..883d5352 --- /dev/null +++ b/src/lib/ui/generic/Blobs.svelte @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/lib/ui/layout/CommonList.svelte b/src/lib/ui/layout/CommonList.svelte index 9dbf8d20..61f3d4c4 100644 --- a/src/lib/ui/layout/CommonList.svelte +++ b/src/lib/ui/layout/CommonList.svelte @@ -29,7 +29,7 @@ }: Props = $props() -
    +
      {#if items} {#each items as item, index (item)}
    • :global(li).selected { + ul > :global(li.selected) { background-color: color-mix( in oklab, var(--color-white), @@ -95,10 +95,10 @@ ); } - :global(.dark) ul > :global(li).selected { + :global(.dark) ul > :global(li.selected) { background-color: color-mix( in oklab, - var(--color-zinc-925), + var(--color-zinc-900) 90%, var(--color-zinc-800) ); } @@ -116,7 +116,11 @@ } &:active { - background-color: var(--color-zinc-950); + background-color: color-mix( + in oklab, + var(--color-zinc-900) 80%, + var(--color-zinc-925) + ); } } diff --git a/src/lib/ui/layout/Shell.svelte b/src/lib/ui/layout/Shell.svelte index fb081a87..7431a831 100644 --- a/src/lib/ui/layout/Shell.svelte +++ b/src/lib/ui/layout/Shell.svelte @@ -154,7 +154,6 @@ border-left: 1px solid var(--color-slate-200); border-right: 1px solid var(--color-slate-200); padding-bottom: calc(var(--spacing) * 22); - z-index: 0; @variant dark { background-color: var(--color-zinc-925); diff --git a/src/routes/accounts/+page.svelte b/src/routes/accounts/+page.svelte index 6a0439ce..421f5400 100644 --- a/src/routes/accounts/+page.svelte +++ b/src/routes/accounts/+page.svelte @@ -132,111 +132,110 @@ /> {:else}
      - p.id == profile.meta.profile} - items={profile.meta.profiles} - animate={false} - > - {#snippet item(p, index)} - +
    • + {/each} {/if}