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
|
|
@ -2,21 +2,38 @@
|
|||
import { computed } from 'vue';
|
||||
import { usePage } from '@inertiajs/vue3';
|
||||
|
||||
defineProps({
|
||||
/**
|
||||
* Logo aus dem Erscheinungsbild: helle bzw. dunkle Variante je nach Untergrund,
|
||||
* auf kleinen Bildschirmen (compact) das quadratische Signet, falls vorhanden.
|
||||
*/
|
||||
const props = defineProps({
|
||||
inverted: { type: Boolean, default: false },
|
||||
compact: { type: Boolean, default: false },
|
||||
});
|
||||
|
||||
const branding = computed(() => usePage().props.branding);
|
||||
const monogram = computed(() => branding.value.portal_name.trim().charAt(0).toUpperCase());
|
||||
const onDark = computed(() => branding.value.logo_dark_url ?? branding.value.logo_url);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span class="flex items-center gap-3">
|
||||
<img v-if="branding.logo_url" :src="branding.logo_url" :alt="branding.portal_name" class="h-8 w-auto" />
|
||||
<template v-if="branding.logo_url">
|
||||
<img v-if="compact && branding.logo_mark_url" :src="branding.logo_mark_url" :alt="branding.portal_name" class="size-8 sm:hidden" />
|
||||
<span :class="compact && branding.logo_mark_url ? 'hidden sm:contents' : 'contents'">
|
||||
<img v-if="props.inverted" :src="onDark" :alt="branding.portal_name" class="h-8 w-auto" />
|
||||
<template v-else>
|
||||
<img :src="branding.logo_url" :alt="branding.portal_name" class="h-8 w-auto dark:hidden" />
|
||||
<img :src="onDark" :alt="branding.portal_name" class="hidden h-8 w-auto dark:block" />
|
||||
</template>
|
||||
</span>
|
||||
</template>
|
||||
<template v-else>
|
||||
<img v-if="branding.logo_mark_url" :src="branding.logo_mark_url" alt="" class="size-8" />
|
||||
<span
|
||||
v-else
|
||||
class="grid size-8 place-items-center rounded-md text-base font-bold"
|
||||
:class="inverted ? 'bg-white/15 text-white' : 'bg-brand text-brand-foreground'"
|
||||
:class="props.inverted ? 'bg-white/15 text-current' : 'bg-brand text-brand-foreground'"
|
||||
>
|
||||
{{ monogram }}
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue