Loheide-eu-mitarbeiterplatt.../resources/js/layouts/GuestLayout.vue
Friederich Loheide 82bbeef31b
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
Phase 5: Erscheinungsbild mit Entwurf, Vorschau und Veröffentlichen
- 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>
2026-09-26 10:46:05 +00:00

71 lines
3.8 KiB
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script setup>
import { computed } from 'vue';
import { Head, usePage } from '@inertiajs/vue3';
import BrandLogo from '@/components/BrandLogo.vue';
/**
* Anmelden, Passwort vergessen … – Aufteilung, Bild und Texte aus dem Erscheinungsbild.
*/
const props = defineProps({
title: { type: String, default: '' },
description: { type: String, default: '' },
});
const branding = computed(() => usePage().props.branding);
const login = computed(() => branding.value.login ?? { layout: 'split' });
</script>
<template>
<Head :title="props.title" />
<div v-if="branding.preview" class="bg-amber-400 px-4 py-1.5 text-center text-[13px] font-medium text-amber-950">Vorschau des Entwurfs</div>
<!-- Zentriert: Anmeldung als Karte vor dem Hintergrundbild -->
<div v-if="login.layout === 'centered'" class="relative grid min-h-screen place-items-center bg-brand px-4 py-12">
<img v-if="login.image_url" :src="login.image_url" alt="" class="absolute inset-0 size-full object-cover" />
<div v-if="login.image_url" class="absolute inset-0 bg-black/35" />
<div class="relative w-full max-w-[440px]">
<div class="rounded-xl border bg-card p-8 text-card-foreground shadow-xl sm:p-10">
<div class="mb-8"><BrandLogo /></div>
<h1 class="text-2xl font-semibold tracking-tight">{{ props.title }}</h1>
<p v-if="props.description" class="mt-2 text-sm text-muted-foreground">{{ props.description }}</p>
<div class="mt-8"><slot /></div>
</div>
<p v-if="login.title" class="mt-6 text-center text-sm text-white/90 [text-shadow:0_1px_2px_rgb(0_0_0/0.4)]">{{ login.title }}</p>
</div>
</div>
<!-- Geteilt: Markenfläche bzw. Bild links, Anmeldung rechts -->
<div v-else class="grid min-h-screen lg:grid-cols-[minmax(0,5fr)_minmax(0,6fr)]">
<aside class="relative hidden overflow-hidden bg-brand text-brand-foreground lg:flex lg:flex-col lg:justify-between lg:p-12">
<template v-if="login.image_url">
<img :src="login.image_url" alt="" class="absolute inset-0 size-full object-cover" />
<div class="absolute inset-0 bg-gradient-to-t from-black/70 via-black/25 to-black/10" />
</template>
<div
v-else
class="pointer-events-none absolute inset-0 opacity-[0.12]"
style="background-image: radial-gradient(circle at 20% 20%, white 0, transparent 45%), radial-gradient(circle at 90% 80%, white 0, transparent 40%)"
/>
<BrandLogo inverted class="relative" :class="login.image_url ? 'text-white' : ''" />
<div class="relative max-w-md" :class="login.image_url ? 'text-white' : ''">
<p v-if="login.title" class="text-3xl leading-tight font-semibold tracking-tight">{{ login.title }}</p>
<p class="mt-4 text-[15px] opacity-85">{{ login.text || `Neuigkeiten, Ansprechpartner und Anwendungen von ${branding.portal_name}.` }}</p>
</div>
<p class="relative text-xs opacity-70" :class="login.image_url ? 'text-white' : ''">© {{ new Date().getFullYear() }} {{ branding.portal_name }}</p>
</aside>
<main class="flex items-center justify-center bg-background px-4 py-12 sm:px-8">
<div class="w-full max-w-[400px]">
<div class="mb-10 lg:hidden">
<BrandLogo />
</div>
<h1 class="text-2xl font-semibold tracking-tight">{{ props.title }}</h1>
<p v-if="props.description" class="mt-2 text-sm text-muted-foreground">{{ props.description }}</p>
<div class="mt-8">
<slot />
</div>
</div>
</main>
</div>
</template>