refactor(nav): Pfeil-Icon im Header statt großem Zurück-Pill
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 1m19s

Der neu eingefügte Admin-Pill war zu prominent für seinen Zweck. Raus
damit. Stattdessen zeigt der Haupt-Header auf allen Nicht-Hauptseiten
links einen ArrowLeft-Icon-Link zur Startseite — platzsparend und
konsistent über alle Sub-Seiten (Admin, Rezept, Preview, Wunschliste…).
Auf der Startseite selbst bleibt das „Kochwas"-Wortmarke stehen.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-18 11:06:52 +02:00
parent 82e8371451
commit 9e471c7bf3
2 changed files with 22 additions and 26 deletions

View File

@@ -1,6 +1,5 @@
<script lang="ts">
import { page } from '$app/stores';
import { ArrowLeft } from 'lucide-svelte';
let { children } = $props();
@@ -12,10 +11,6 @@
</script>
<nav class="tabs">
<a href="/" class="back" aria-label="Zurück zu Kochwas">
<ArrowLeft size={18} strokeWidth={2} />
<span>Zurück</span>
</a>
{#each items as item (item.href)}
<a
href={item.href}
@@ -57,25 +52,6 @@
color: white;
border-color: #2b6a3d;
}
.back {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.6rem 0.85rem 0.6rem 0.7rem;
background: white;
border: 1px solid #e4eae7;
border-radius: 999px;
text-decoration: none;
color: #2b6a3d;
font-size: 0.9rem;
font-weight: 600;
white-space: nowrap;
min-height: 40px;
flex-shrink: 0;
}
.back:hover {
background: #eaf4ed;
}
.admin-body {
padding: 1rem 0;
}