Phase 5: Erscheinungsbild mit Entwurf, Vorschau und Veröffentlichen
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m7s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m11s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 2m16s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 2m18s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 2m49s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 2m46s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 2m41s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 2m33s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m0s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m7s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m11s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 2m16s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 2m18s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 2m49s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 2m46s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 2m41s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 2m33s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m0s
- Theme in den Einstellungen (Entwurf/veröffentlicht), Übernahme der Einstellungen aus Phase 0; statische CSS-Datei mit Hash beim Veröffentlichen - Logos hell/dunkel, Signet, App-Symbol → Favicon, Homescreen-Symbole, Web-App-Manifest; SVG-Bereinigung - Markenfarbe exakt, zweite Akzentfarbe, Kopfleiste hell/Marke/dunkel, Kontrastprüfung (WCAG AA) mit automatisch lesbarer Linkfarbe - Lokale Schriften (Latein), Überschriften-Schrift, eigene WOFF2-Schrift, Ecken, Dichte, Dunkelmodus-Regel - Anmeldeseite (geteilt/zentriert, Bild, Texte), Fußzeile, E-Mails im Design - Admin: Live-Vorschau (Startseite, Anmeldung, Beispielseite; hell/dunkel), Veröffentlichen, Verwerfen, Export/Import, Zurücksetzen, eigenes CSS - Admin-Bereich übernimmt Logo, Farbe und Favicon; Whitelabel Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ee8dde93c0
commit
82bbeef31b
148 changed files with 2884 additions and 362 deletions
|
|
@ -25,6 +25,8 @@ defineProps({
|
|||
|
||||
const page = usePage();
|
||||
const user = computed(() => page.props.auth.user);
|
||||
const branding = computed(() => page.props.branding);
|
||||
const headerStyle = computed(() => branding.value.header_style ?? 'light');
|
||||
const navigation = computed(() => page.props.navigation);
|
||||
const { preference, setPreference } = useThemePreference();
|
||||
|
||||
|
|
@ -45,8 +47,16 @@ const themeOptions = [
|
|||
<template>
|
||||
<Head v-if="title" :title="title" />
|
||||
|
||||
<div class="min-h-screen">
|
||||
<header class="sticky top-0 z-40 border-b bg-card/95 backdrop-blur supports-[backdrop-filter]:bg-card/85">
|
||||
<div class="flex min-h-screen flex-col">
|
||||
<div v-if="branding.preview" class="flex flex-wrap items-center justify-center gap-x-3 gap-y-1 bg-amber-400 px-4 py-1.5 text-center text-[13px] font-medium text-amber-950">
|
||||
Vorschau des Entwurfs – so sieht das Portal nach dem Veröffentlichen aus.
|
||||
<a href="?vorschau=aus" class="underline">Vorschau beenden</a>
|
||||
</div>
|
||||
<header
|
||||
class="sticky top-0 z-40 border-b"
|
||||
:class="headerStyle === 'light' ? 'bg-card/95 backdrop-blur supports-[backdrop-filter]:bg-card/85' : ''"
|
||||
:data-header="headerStyle"
|
||||
>
|
||||
<div class="mx-auto flex h-16 max-w-[1440px] items-center gap-2 px-4 lg:gap-6 lg:px-6">
|
||||
<Sheet v-model:open="mobileNavOpen">
|
||||
<SheetTrigger class="-ml-2 grid size-10 place-items-center rounded-md text-foreground/80 hover:bg-accent lg:hidden" aria-label="Menü öffnen">
|
||||
|
|
@ -72,7 +82,7 @@ const themeOptions = [
|
|||
</Sheet>
|
||||
|
||||
<Link href="/" class="shrink-0 text-foreground" aria-label="Startseite">
|
||||
<BrandLogo />
|
||||
<BrandLogo :inverted="headerStyle !== 'light'" compact />
|
||||
</Link>
|
||||
|
||||
<nav class="hidden h-full lg:block" aria-label="Hauptnavigation">
|
||||
|
|
@ -85,7 +95,7 @@ const themeOptions = [
|
|||
:aria-current="item.active ? 'page' : undefined"
|
||||
>
|
||||
{{ item.label }}
|
||||
<span v-if="item.active" class="absolute inset-x-3 bottom-0 h-[3px] rounded-t-full bg-brand" />
|
||||
<span v-if="item.active" class="nav-underline absolute inset-x-3 bottom-0 h-[3px] rounded-t-full bg-brand" />
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -147,6 +157,7 @@ const themeOptions = [
|
|||
<DropdownMenuItem v-if="user.can_admin" as-child>
|
||||
<a href="/admin"><Settings /> Administration</a>
|
||||
</DropdownMenuItem>
|
||||
<template v-if="!branding.color_mode">
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuLabel class="text-xs font-medium text-muted-foreground">Darstellung</DropdownMenuLabel>
|
||||
<DropdownMenuRadioGroup :model-value="preference" @update:model-value="setPreference">
|
||||
|
|
@ -155,6 +166,7 @@ const themeOptions = [
|
|||
{{ option.label }}
|
||||
</DropdownMenuRadioItem>
|
||||
</DropdownMenuRadioGroup>
|
||||
</template>
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuItem as-child>
|
||||
<Link href="/logout" method="post" as="button" class="w-full"><LogOut /> Abmelden</Link>
|
||||
|
|
@ -165,9 +177,18 @@ const themeOptions = [
|
|||
</div>
|
||||
</header>
|
||||
|
||||
<main class="mx-auto max-w-[1440px] px-4 py-6 lg:px-6 lg:py-8">
|
||||
<main class="mx-auto w-full max-w-[1440px] flex-1 px-4 py-6 lg:px-6 lg:py-8">
|
||||
<slot />
|
||||
</main>
|
||||
|
||||
<footer v-if="branding.footer.text || branding.footer.links.length" class="border-t">
|
||||
<div class="mx-auto flex max-w-[1440px] flex-wrap items-center justify-between gap-x-6 gap-y-2 px-4 py-5 text-[13px] text-muted-foreground lg:px-6">
|
||||
<p v-if="branding.footer.text">{{ branding.footer.text }}</p>
|
||||
<nav v-if="branding.footer.links.length" class="flex flex-wrap gap-x-5 gap-y-1" aria-label="Fußzeile">
|
||||
<a v-for="link in branding.footer.links" :key="link.url" :href="link.url" class="hover:text-foreground hover:underline">{{ link.label }}</a>
|
||||
</nav>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<Toaster position="bottom-right" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue