Enhance web-ui components and styles with new features and dependencies

- Added @lucide/svelte as a dependency for icon support in various components.
- Updated AboutDialog, AppShell, AuthPage, Header, SettingsDialog, and styles for improved functionality and UI consistency.
- Introduced new props and state management for better user experience.
- Refactored CSS for cleaner styling and improved layout.
This commit is contained in:
Gabriel20xx committed 2026-08-07 15:18:50 +02:00
1 parent ce6db8a457
commit e3544617e1
9 files changed
+260 -43

No files matched your search

@@ -2,6 +2,7 @@
import type { Snippet } from 'svelte';
import type { NavItem } from '../types';
import Header from './Header.svelte';
import PageHeader from './PageHeader.svelte';
let {
brand = 'Application',
@@ -15,9 +16,10 @@
onNavigate,
onProfile,
onSettings,
showPageHeader = true,
showSettings = true,
theme = 'dark',
username = ''
username = '',
}: {
brand?: string;
brandHref?: string;
@@ -30,10 +32,17 @@
onNavigate?: (item: NavItem) => void;
onProfile?: () => void;
onSettings?: () => void;
showPageHeader?: boolean;
showSettings?: boolean;
theme?: 'dark' | 'light' | 'system';
username?: string;
} = $props();
const activeNavItem = $derived(
navItems.find((item) =>
item.href === '/' ? currentPath === '/' : currentPath === item.href || currentPath.startsWith(`${item.href}/`),
),
);
</script>
<div class={`sc-root sc-app-shell ${className}`} data-theme={theme === 'system' ? undefined : theme}>
@@ -52,6 +61,13 @@
/>
<main class="sc-main">
{#if showPageHeader && activeNavItem?.href !== '/about'}
<PageHeader
title={activeNavItem?.label ?? brand}
description={activeNavItem?.description ??
`Explore the ${activeNavItem?.label?.toLowerCase() ?? 'application'} section.`}
/>
{/if}
{@render children?.()}
</main>
</div>