style(admin): Emoji-Icons durch Lucide-Icons ersetzt
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 1m20s

🌐/👥/💾 waren die letzten verbliebenen Emoji-Icons in der App und
stachen gegen die Lucide-Icons im Rest heraus. Jetzt Globe/Users/
DatabaseBackup als SVG-Icons in den Admin-Tabs, passt zum übrigen
Design.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-18 14:08:57 +02:00
parent 351434f43d
commit 68e27a6868

View File

@@ -1,23 +1,26 @@
<script lang="ts"> <script lang="ts">
import { page } from '$app/stores'; import { page } from '$app/stores';
import { Globe, Users, DatabaseBackup, type Icon } from 'lucide-svelte';
let { children } = $props(); let { children } = $props();
const items = [ const items: { href: string; label: string; icon: typeof Icon }[] = [
{ href: '/admin/domains', label: '🌐 Domains' }, { href: '/admin/domains', label: 'Domains', icon: Globe },
{ href: '/admin/profiles', label: '👥 Profile' }, { href: '/admin/profiles', label: 'Profile', icon: Users },
{ href: '/admin/backup', label: '💾 Backup' } { href: '/admin/backup', label: 'Backup', icon: DatabaseBackup }
]; ];
</script> </script>
<nav class="tabs"> <nav class="tabs">
{#each items as item (item.href)} {#each items as item (item.href)}
{@const Icon = item.icon}
<a <a
href={item.href} href={item.href}
class="tab" class="tab"
class:active={$page.url.pathname.startsWith(item.href)} class:active={$page.url.pathname.startsWith(item.href)}
> >
{item.label} <Icon size={16} strokeWidth={2} />
<span>{item.label}</span>
</a> </a>
{/each} {/each}
</nav> </nav>
@@ -35,7 +38,7 @@
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }
.tab { .tab {
padding: 0.6rem 0.9rem; padding: 0.5rem 0.95rem 0.5rem 0.8rem;
background: white; background: white;
border: 1px solid #e4eae7; border: 1px solid #e4eae7;
border-radius: 999px; border-radius: 999px;
@@ -46,6 +49,7 @@
min-height: 40px; min-height: 40px;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 0.4rem;
} }
.tab.active { .tab.active {
background: #2b6a3d; background: #2b6a3d;