feat(mvp): phase 7 - UI polish & ambient backgrounds

Add layout system (sidebar, header, main layout), dark/light/system theme
with HSL customization, 3 ambient backgrounds (mesh gradient, particle field,
aurora), Cmd/Ctrl+K search dialog, page transitions, card hover effects,
status pulse animations, skeleton loaders, and responsive design. Polish
all existing pages with consistent theming.
This commit is contained in:
2026-03-24 21:37:16 +03:00
parent c5166ba3a9
commit 0bd30c5e17
41 changed files with 2106 additions and 391 deletions
+28 -8
View File
@@ -2,6 +2,7 @@
import type { PageData } from './$types.js';
import AppCard from '$lib/components/app/AppCard.svelte';
import AppForm from '$lib/components/app/AppForm.svelte';
import CardSkeleton from '$lib/components/skeleton/CardSkeleton.svelte';
let { data }: { data: PageData } = $props();
@@ -12,21 +13,26 @@
<title>Apps — Web App Launcher</title>
</svelte:head>
<main class="min-h-screen bg-background p-6 text-foreground">
<div class="p-6">
<div class="mx-auto max-w-6xl">
<div class="mb-6 flex items-center justify-between">
<h1 class="text-2xl font-bold text-card-foreground">App Registry</h1>
<div>
<h1 class="text-2xl font-bold text-foreground">App Registry</h1>
<p class="mt-1 text-sm text-muted-foreground">
{data.apps.length} app{data.apps.length === 1 ? '' : 's'} registered
</p>
</div>
<button
type="button"
onclick={() => (showForm = !showForm)}
class="rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 focus:outline-none focus:ring-2 focus:ring-ring"
class="rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90 focus:outline-none focus:ring-2 focus:ring-ring"
>
{showForm ? 'Cancel' : 'Add App'}
</button>
</div>
{#if showForm}
<div class="mb-6 rounded-lg border border-border bg-card p-6">
<div class="mb-6 rounded-xl border border-border bg-card p-6 shadow-sm">
<h2 class="mb-4 text-lg font-semibold text-card-foreground">New App</h2>
<AppForm form={data.form} action="?/create" />
</div>
@@ -36,14 +42,14 @@
<div class="mb-4 flex flex-wrap gap-2">
<a
href="/apps"
class="rounded-full border border-border px-3 py-1 text-sm text-muted-foreground hover:bg-accent"
class="rounded-full border border-border px-3 py-1 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"
>
All
</a>
{#each data.categories as category}
<a
href="/apps?category={encodeURIComponent(category)}"
class="rounded-full border border-border px-3 py-1 text-sm text-muted-foreground hover:bg-accent"
class="rounded-full border border-border px-3 py-1 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"
>
{category}
</a>
@@ -52,7 +58,21 @@
{/if}
{#if data.apps.length === 0}
<div class="flex flex-col items-center justify-center py-16 text-muted-foreground">
<div class="flex flex-col items-center justify-center rounded-xl border border-border bg-card/50 py-16 text-muted-foreground">
<svg
class="mb-3 h-12 w-12 text-muted-foreground/40"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="12" r="10" />
<line x1="12" y1="8" x2="12" y2="12" />
<line x1="12" y1="16" x2="12.01" y2="16" />
</svg>
<p class="text-lg">No apps registered yet.</p>
<p class="mt-1 text-sm">Click "Add App" to register your first application.</p>
</div>
@@ -64,4 +84,4 @@
</div>
{/if}
</div>
</main>
</div>