Loheide-eu-mitarbeiterplatt.../resources/views/filament/pages/appearance.blade.php
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

63 lines
4.4 KiB
PHP
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.

<x-filament-panels::page>
{{-- Eigene Anordnung mit Inline-Stilen: Filament liefert fertig kompiliertes CSS ohne freie Tailwind-Klassen. --}}
<style>
.appearance-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1280px) { .appearance-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } .appearance-preview { position: sticky; top: 5rem; align-self: start; } }
.appearance-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem .75rem; border-bottom: 1px solid rgba(127,127,127,.2); }
.appearance-seg { display: flex; padding: 2px; border-radius: .5rem; background: rgba(127,127,127,.12); font-size: .75rem; }
.appearance-seg button { padding: .25rem .6rem; border-radius: .375rem; color: inherit; opacity: .65; }
.appearance-seg button[aria-pressed="true"] { background: white; color: #111; opacity: 1; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.appearance-frame { position: relative; height: 70vh; overflow: hidden; background: #f4f5f7; }
.appearance-frame iframe { position: absolute; top: 0; left: 0; width: 1280px; border: 0; transform-origin: top left; }
</style>
<div
x-data="{
page: '/',
mode: 'hell',
stamp: Date.now(),
scale: 0.55,
get src() { return this.page + (this.page.includes('?') ? '&' : '?') + 'vorschau=entwurf&modus=' + this.mode + '&t=' + this.stamp },
}"
x-init="$nextTick(() => { const frame = $el.querySelector('.appearance-frame'); if (frame) new ResizeObserver(() => scale = frame.clientWidth / 1280).observe(frame) })"
x-on:theme-preview-reload.window="stamp = Date.now()"
class="appearance-grid"
>
<form wire:submit="save" style="display: grid; gap: 1.5rem; align-content: start;">
@if ($this->hasDraft())
<x-filament::section compact>
<span style="color: #b45309; font-weight: 500;">Es gibt einen gespeicherten Entwurf, der noch nicht veröffentlicht ist.</span>
</x-filament::section>
@endif
{{ $this->form }}
<div style="display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;">
<x-filament::button type="submit" icon="heroicon-o-eye">Entwurf speichern und ansehen</x-filament::button>
<span style="font-size: .875rem; opacity: .7;">Für alle sichtbar erst mit „Veröffentlichen“ oben rechts.</span>
</div>
</form>
<section class="appearance-preview">
<x-filament::section :heading="null" style="padding: 0; overflow: hidden;">
<div class="appearance-toolbar">
<strong style="margin-right: auto; font-size: .875rem;">Vorschau</strong>
<div class="appearance-seg" role="group" aria-label="Seite">
<button type="button" x-on:click="page = '/'" :aria-pressed="page === '/'">Startseite</button>
<button type="button" x-on:click="page = '/erscheinungsbild/vorschau/anmeldung'" :aria-pressed="page === '/erscheinungsbild/vorschau/anmeldung'">Anmeldung</button>
<button type="button" x-on:click="page = '/erscheinungsbild/vorschau/beispiel'" :aria-pressed="page === '/erscheinungsbild/vorschau/beispiel'">Beispielseite</button>
</div>
<div class="appearance-seg" role="group" aria-label="Darstellung">
<button type="button" x-on:click="mode = 'hell'" :aria-pressed="mode === 'hell'">Hell</button>
<button type="button" x-on:click="mode = 'dunkel'" :aria-pressed="mode === 'dunkel'">Dunkel</button>
</div>
<a :href="src" target="_blank" style="font-size: .75rem; text-decoration: underline;">Im neuen Tab</a>
</div>
<div class="appearance-frame" x-ref="frame">
<iframe :src="src" title="Vorschau des Portals" :style="`transform: scale(${scale}); height: ${100 / scale}%`"></iframe>
</div>
</x-filament::section>
<p style="margin-top: .5rem; font-size: .75rem; opacity: .7;">Die Vorschau zeigt den gespeicherten Entwurf. Nur Sie sehen ihn – bis zum Veröffentlichen.</p>
</section>
</div>
</x-filament-panels::page>