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

- 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:
Friederich Loheide 2026-09-26 10:46:05 +00:00
parent ee8dde93c0
commit 82bbeef31b
148 changed files with 2884 additions and 362 deletions

View file

@ -1,6 +1,6 @@
@import "tailwindcss";
@import "tw-animate-css";
@import "@fontsource-variable/inter";
@import "./fonts.css";
@plugin "@tailwindcss/typography";
@custom-variant dark (&:is(.dark *));
@ -34,8 +34,18 @@
--primary-foreground: var(--brand-foreground);
--ring: var(--brand-400);
/* Akzenttext (Links, Kategorien) – auf Weiß gut lesbar. */
/* Akzenttext (Links, Kategorien) – auf Weiß gut lesbar. Das Erscheinungsbild
setzt hier bei zu hellen Markenfarben automatisch eine dunklere Stufe. */
--brand-text: var(--brand-600);
/* Zweite Akzentfarbe (optional) – ohne eigene Angabe die Markenfarbe. */
--accent2: var(--brand);
--accent2-foreground: var(--brand-foreground);
--accent2-text: var(--brand-text);
/* Schriften – aus dem Erscheinungsbild, lokal ausgeliefert. */
--font-body: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
--font-heading: var(--font-body);
--brand-soft: var(--brand-50);
--brand-soft-foreground: var(--brand-700);
}
@ -63,7 +73,7 @@
}
@theme inline {
--font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
--font-sans: var(--font-body);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
@ -92,6 +102,9 @@
--color-brand: var(--brand);
--color-brand-foreground: var(--brand-foreground);
--color-brand-text: var(--brand-text);
--color-accent2: var(--accent2);
--color-accent2-foreground: var(--accent2-foreground);
--color-accent2-text: var(--accent2-text);
--color-brand-soft: var(--brand-soft);
--color-brand-soft-foreground: var(--brand-soft-foreground);
--color-brand-50: var(--brand-50);
@ -116,6 +129,10 @@
@apply bg-background text-foreground antialiased;
font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4, .font-heading {
font-family: var(--font-heading);
}
}
/* Fließtext aus dem Editor (Neuigkeiten, Termine) */
@ -147,3 +164,40 @@
--tw-prose-bullets: currentColor;
--tw-prose-headings: currentColor;
}
/* Kopfleiste in Markenfarbe oder dunkel (Erscheinungsbild): Tokens nur im Header umstellen. */
header[data-header="brand"] {
--foreground: var(--brand-foreground);
--accent: color-mix(in oklab, var(--brand-foreground) 14%, transparent);
--muted-foreground: color-mix(in oklab, var(--brand-foreground) 75%, transparent);
background: var(--brand);
border-color: transparent;
color: var(--foreground);
}
header[data-header="dark"] {
--foreground: #eef0f2;
--accent: rgb(255 255 255 / 0.1);
--muted-foreground: #a3aab3;
background: #16191d;
border-color: #262a30;
color: var(--foreground);
}
/* Suchfeld in farbiger bzw. dunkler Kopfleiste: halbtransparent statt weiß. */
header[data-header="brand"] input,
header[data-header="dark"] input {
background: color-mix(in oklab, var(--foreground) 14%, transparent);
border-color: transparent;
color: var(--foreground);
}
header[data-header="brand"] input::placeholder,
header[data-header="dark"] input::placeholder {
color: var(--muted-foreground);
}
header[data-header="brand"] .nav-underline,
header[data-header="dark"] .nav-underline {
background: currentColor;
}

217
resources/css/fonts.css Normal file
View file

@ -0,0 +1,217 @@
/* Automatisch erzeugt von scripts/generate-fonts-css.py – nicht von Hand ändern. */
/* inter-latin-ext-wght-normal */
@font-face {
font-family: 'Inter Variable';
font-style: normal;
font-display: swap;
font-weight: 100 900;
src: url(../../node_modules/@fontsource-variable/inter/files/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* inter-latin-wght-normal */
@font-face {
font-family: 'Inter Variable';
font-style: normal;
font-display: swap;
font-weight: 100 900;
src: url(../../node_modules/@fontsource-variable/inter/files/inter-latin-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* source-sans-3-latin-ext-wght-normal */
@font-face {
font-family: 'Source Sans 3 Variable';
font-style: normal;
font-display: swap;
font-weight: 200 900;
src: url(../../node_modules/@fontsource-variable/source-sans-3/files/source-sans-3-latin-ext-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* source-sans-3-latin-wght-normal */
@font-face {
font-family: 'Source Sans 3 Variable';
font-style: normal;
font-display: swap;
font-weight: 200 900;
src: url(../../node_modules/@fontsource-variable/source-sans-3/files/source-sans-3-latin-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* open-sans-latin-ext-wght-normal */
@font-face {
font-family: 'Open Sans Variable';
font-style: normal;
font-display: swap;
font-weight: 300 800;
src: url(../../node_modules/@fontsource-variable/open-sans/files/open-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* open-sans-latin-wght-normal */
@font-face {
font-family: 'Open Sans Variable';
font-style: normal;
font-display: swap;
font-weight: 300 800;
src: url(../../node_modules/@fontsource-variable/open-sans/files/open-sans-latin-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* nunito-sans-latin-ext-wght-normal */
@font-face {
font-family: 'Nunito Sans Variable';
font-style: normal;
font-display: swap;
font-weight: 200 1000;
src: url(../../node_modules/@fontsource-variable/nunito-sans/files/nunito-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* nunito-sans-latin-wght-normal */
@font-face {
font-family: 'Nunito Sans Variable';
font-style: normal;
font-display: swap;
font-weight: 200 1000;
src: url(../../node_modules/@fontsource-variable/nunito-sans/files/nunito-sans-latin-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* roboto-latin-ext-wght-normal */
@font-face {
font-family: 'Roboto Variable';
font-style: normal;
font-display: swap;
font-weight: 100 900;
src: url(../../node_modules/@fontsource-variable/roboto/files/roboto-latin-ext-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* roboto-latin-wght-normal */
@font-face {
font-family: 'Roboto Variable';
font-style: normal;
font-display: swap;
font-weight: 100 900;
src: url(../../node_modules/@fontsource-variable/roboto/files/roboto-latin-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ibm-plex-sans-latin-ext-wght-normal */
@font-face {
font-family: 'IBM Plex Sans Variable';
font-style: normal;
font-display: swap;
font-weight: 100 700;
src: url(../../node_modules/@fontsource-variable/ibm-plex-sans/files/ibm-plex-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* ibm-plex-sans-latin-wght-normal */
@font-face {
font-family: 'IBM Plex Sans Variable';
font-style: normal;
font-display: swap;
font-weight: 100 700;
src: url(../../node_modules/@fontsource-variable/ibm-plex-sans/files/ibm-plex-sans-latin-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* figtree-latin-ext-wght-normal */
@font-face {
font-family: 'Figtree Variable';
font-style: normal;
font-display: swap;
font-weight: 300 900;
src: url(../../node_modules/@fontsource-variable/figtree/files/figtree-latin-ext-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* figtree-latin-wght-normal */
@font-face {
font-family: 'Figtree Variable';
font-style: normal;
font-display: swap;
font-weight: 300 900;
src: url(../../node_modules/@fontsource-variable/figtree/files/figtree-latin-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* atkinson-hyperlegible-latin-ext-400-normal */
@font-face {
font-family: 'Atkinson Hyperlegible';
font-style: normal;
font-display: swap;
font-weight: 400;
src: url(../../node_modules/@fontsource/atkinson-hyperlegible/files/atkinson-hyperlegible-latin-ext-400-normal.woff2) format('woff2');
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* atkinson-hyperlegible-latin-400-normal */
@font-face {
font-family: 'Atkinson Hyperlegible';
font-style: normal;
font-display: swap;
font-weight: 400;
src: url(../../node_modules/@fontsource/atkinson-hyperlegible/files/atkinson-hyperlegible-latin-400-normal.woff2) format('woff2');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* atkinson-hyperlegible-latin-ext-700-normal */
@font-face {
font-family: 'Atkinson Hyperlegible';
font-style: normal;
font-display: swap;
font-weight: 700;
src: url(../../node_modules/@fontsource/atkinson-hyperlegible/files/atkinson-hyperlegible-latin-ext-700-normal.woff2) format('woff2');
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* atkinson-hyperlegible-latin-700-normal */
@font-face {
font-family: 'Atkinson Hyperlegible';
font-style: normal;
font-display: swap;
font-weight: 700;
src: url(../../node_modules/@fontsource/atkinson-hyperlegible/files/atkinson-hyperlegible-latin-700-normal.woff2) format('woff2');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* source-serif-4-latin-ext-wght-normal */
@font-face {
font-family: 'Source Serif 4 Variable';
font-style: normal;
font-display: swap;
font-weight: 200 900;
src: url(../../node_modules/@fontsource-variable/source-serif-4/files/source-serif-4-latin-ext-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* source-serif-4-latin-wght-normal */
@font-face {
font-family: 'Source Serif 4 Variable';
font-style: normal;
font-display: swap;
font-weight: 200 900;
src: url(../../node_modules/@fontsource-variable/source-serif-4/files/source-serif-4-latin-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* merriweather-latin-ext-wght-normal */
@font-face {
font-family: 'Merriweather Variable';
font-style: normal;
font-display: swap;
font-weight: 300 900;
src: url(../../node_modules/@fontsource-variable/merriweather/files/merriweather-latin-ext-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* merriweather-latin-wght-normal */
@font-face {
font-family: 'Merriweather Variable';
font-style: normal;
font-display: swap;
font-weight: 300 900;
src: url(../../node_modules/@fontsource-variable/merriweather/files/merriweather-latin-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* lora-latin-ext-wght-normal */
@font-face {
font-family: 'Lora Variable';
font-style: normal;
font-display: swap;
font-weight: 400 700;
src: url(../../node_modules/@fontsource-variable/lora/files/lora-latin-ext-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* lora-latin-wght-normal */
@font-face {
font-family: 'Lora Variable';
font-style: normal;
font-display: swap;
font-weight: 400 700;
src: url(../../node_modules/@fontsource-variable/lora/files/lora-latin-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

View file

@ -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>

View file

@ -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" />

View file

@ -3,29 +3,56 @@ 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 class="grid min-h-screen lg:grid-cols-[minmax(0,5fr)_minmax(0,6fr)]">
<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" />
<div class="relative max-w-md">
<p class="text-3xl leading-tight font-semibold tracking-tight">Alles Wichtige für Ihren Arbeitsalltag – an einem Ort.</p>
<p class="mt-4 text-[15px] opacity-80">Neuigkeiten, Ansprechpartner und Anwendungen von {{ branding.portal_name }}.</p>
<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-60">© {{ new Date().getFullYear() }} {{ branding.portal_name }}</p>
<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">

View file

@ -0,0 +1,43 @@
<script setup>
import { Bell } from '@lucide/vue';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import Panel from '@/components/Panel.vue';
import AppLayout from '@/layouts/AppLayout.vue';
import PageContent from '@/pagebuilder/PageContent.vue';
/**
* Beispielseite für die Vorschau im „Erscheinungsbild“.
*/
defineProps({
content: { type: Object, required: true },
});
</script>
<template>
<AppLayout title="Beispielseite">
<div class="grid gap-8 lg:grid-cols-[minmax(0,1fr)_320px]">
<article class="min-w-0">
<p class="text-[11px] font-semibold tracking-wide text-accent2-text uppercase">Kategorie</p>
<h1 class="mt-1 mb-8 text-3xl font-semibold tracking-tight">Beispielseite</h1>
<PageContent :content="content" />
</article>
<aside class="grid content-start gap-6">
<Panel title="Bedienelemente" action-label="Alle anzeigen" action-href="#">
<div class="grid gap-3">
<Input placeholder="Eingabefeld" />
<div class="flex flex-wrap gap-2">
<Button>Primär</Button>
<Button variant="outline">Umrandet</Button>
<Button variant="ghost"><Bell /> Symbol</Button>
</div>
</div>
</Panel>
<section class="rounded-lg bg-brand p-5 text-brand-foreground">
<p class="font-semibold">Fläche in der Markenfarbe</p>
<p class="mt-1 text-sm opacity-85">Zum Beispiel die Begrüßungskarte auf der Startseite.</p>
</section>
</aside>
</div>
</AppLayout>
</template>

View file

@ -9,11 +9,13 @@ import { Label } from '@/components/ui/label';
import FormField from '@/components/FormField.vue';
import GuestLayout from '@/layouts/GuestLayout.vue';
defineProps({
const props = defineProps({
canResetPassword: { type: Boolean, default: false },
status: { type: String, default: null },
providers: { type: Array, default: () => [] },
identityError: { type: String, default: null },
// Vorschau im Admin („Erscheinungsbild“): nur ansehen, nicht anmelden.
preview: { type: Boolean, default: false },
});
const showPassword = ref(false);
@ -25,6 +27,8 @@ const form = useForm({
});
function submit() {
if (props.preview) return;
form.post('/login', {
onFinish: () => form.reset('password'),
});
@ -56,9 +60,10 @@ function submit() {
</svg>
{{ provider.label }}
</a>
<div class="relative my-2 text-center text-xs text-muted-foreground">
<span class="absolute inset-x-0 top-1/2 border-t" />
<span class="relative bg-background px-3">oder mit E-Mail und Passwort</span>
<div class="my-2 flex items-center gap-3 text-xs text-muted-foreground">
<span class="h-px flex-1 bg-border" />
oder mit E-Mail und Passwort
<span class="h-px flex-1 bg-border" />
</div>
</div>

View file

@ -1,6 +1,10 @@
@php
$branding = app(\App\Support\Branding::class);
$theme = auth()->user()?->theme ?? 'system';
// Erzwungene Darstellung aus dem Erscheinungsbild, sonst die Wahl der Person; ?modus= nur für die Vorschau.
$theme = $branding->forcedColorMode() ?? (auth()->user()?->theme ?? 'system');
if ($branding->isPreviewing() && in_array(request()->query('modus'), ['hell', 'dunkel'], true)) {
$theme = request()->query('modus') === 'dunkel' ? 'dark' : 'light';
}
@endphp
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" @class(['dark' => $theme === 'dark']) data-theme="{{ $theme }}">
@ -10,12 +14,22 @@
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="{{ $branding->primaryColor() }}">
<title inertia>{{ $branding->portalName() }}</title>
<style>:root{ {!! $branding->cssVariables() !!} }</style>
<link rel="icon" href="{{ $branding->faviconUrl() }}">
@if ($branding->appleTouchIconUrl())
<link rel="apple-touch-icon" href="{{ $branding->appleTouchIconUrl() }}">
@endif
<link rel="manifest" href="/manifest.webmanifest">
@if ($theme === 'system')
{{-- Dunkles Systemdesign vor dem ersten Zeichnen übernehmen – kein helles Aufblitzen. --}}
<script>if (matchMedia('(prefers-color-scheme: dark)').matches) document.documentElement.classList.add('dark');</script>
@endif
@vite('resources/js/app.js')
{{-- Erscheinungsbild nach dem Portal-CSS, damit seine Variablen gelten. --}}
@if ($stylesheet = $branding->stylesheetUrl())
<link rel="stylesheet" href="{{ $stylesheet }}">
@else
<style>{!! $branding->inlineCss() !!}</style>
@endif
@inertiaHead
</head>
<body>

View file

@ -0,0 +1,63 @@
<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>

View file

@ -0,0 +1,25 @@
@props([
'url',
'color' => 'primary',
'align' => 'center',
])
<table class="action" align="{{ $align }}" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td align="{{ $align }}">
<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td align="{{ $align }}">
<table border="0" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td>
@php($branding = app(\App\Support\Branding::class))
<a href="{{ $url }}" class="button button-{{ $color }}" target="_blank" rel="noopener" style="background-color: {{ $branding->primaryColor() }}; border-color: {{ $branding->primaryColor() }}; color: {{ \App\Support\ColorPalette::foregroundFor($branding->primaryColor()) }};">{!! $slot !!}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

View file

@ -0,0 +1,11 @@
<tr>
<td>
<table class="footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td class="content-cell" align="center">
{{ Illuminate\Mail\Markdown::parse($slot) }}
</td>
</tr>
</table>
</td>
</tr>

View file

@ -0,0 +1,18 @@
@props(['url'])
@php
$branding = app(\App\Support\Branding::class);
// SVG zeigen viele Mailprogramme nicht an – dann den Namen als Text.
$logo = $branding->logoUrl();
$logo = $logo && ! str_ends_with(strtolower($logo), '.svg') ? $logo : null;
@endphp
<tr>
<td class="header">
<a href="{{ $url }}" style="display: inline-block; color: {{ $branding->primaryColor() }}; text-decoration: none; font-weight: 700; font-size: 19px;">
@if ($logo)
<img src="{{ $logo }}" alt="{{ $branding->portalName() }}" style="max-height: 48px; max-width: 240px; border: 0;">
@else
{{ $branding->portalName() }}
@endif
</a>
</td>
</tr>

View file

@ -0,0 +1,58 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<title>{{ config('app.name') }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light">
<meta name="supported-color-schemes" content="light">
<style>
@media only screen and (max-width: 600px) {
.inner-body {
width: 100% !important;
}
.footer {
width: 100% !important;
}
}
@media only screen and (max-width: 500px) {
.button {
width: 100% !important;
}
}
</style>
{!! $head ?? '' !!}
</head>
<body>
<table class="wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td align="center">
<table class="content" width="100%" cellpadding="0" cellspacing="0" role="presentation">
{!! $header ?? '' !!}
<!-- Email Body -->
<tr>
<td class="body" width="100%" cellpadding="0" cellspacing="0" style="border: hidden !important;">
<table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
<!-- Body content -->
<tr>
<td class="content-cell">
{!! Illuminate\Mail\Markdown::parse($slot) !!}
{!! $subcopy ?? '' !!}
</td>
</tr>
</table>
</td>
</tr>
{!! $footer ?? '' !!}
</table>
</td>
</tr>
</table>
</body>
</html>

View file

@ -0,0 +1,32 @@
<x-mail::layout>
{{-- Header --}}
<x-slot:header>
<x-mail::header :url="config('app.url')">
{{ app(\App\Support\Branding::class)->portalName() }}
</x-mail::header>
</x-slot:header>
{{-- Body --}}
{!! $slot !!}
{{-- Subcopy --}}
@isset($subcopy)
<x-slot:subcopy>
<x-mail::subcopy>
{!! $subcopy !!}
</x-mail::subcopy>
</x-slot:subcopy>
@endisset
{{-- Footer --}}
<x-slot:footer>
<x-mail::footer>
@php($emailFooter = app(\App\Support\Branding::class)->get('email_footer'))
@if ($emailFooter)
{!! nl2br(e($emailFooter)) !!}
@else
© {{ date('Y') }} {{ app(\App\Support\Branding::class)->portalName() }}
@endif
</x-mail::footer>
</x-slot:footer>
</x-mail::layout>

View file

@ -0,0 +1,14 @@
<table class="panel" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td class="panel-content">
<table width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td class="panel-item">
{{ Illuminate\Mail\Markdown::parse($slot) }}
</td>
</tr>
</table>
</td>
</tr>
</table>

View file

@ -0,0 +1,7 @@
<table class="subcopy" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td>
{{ Illuminate\Mail\Markdown::parse($slot) }}
</td>
</tr>
</table>

View file

@ -0,0 +1,3 @@
<div class="table">
{{ Illuminate\Mail\Markdown::parse($slot) }}
</div>

View file

@ -0,0 +1,297 @@
/* Base */
body,
body *:not(html):not(style):not(br):not(tr):not(code) {
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
position: relative;
}
body {
-webkit-text-size-adjust: none;
background-color: #ffffff;
color: #52525b;
height: 100%;
line-height: 1.4;
margin: 0;
padding: 0;
width: 100% !important;
}
p,
ul,
ol,
blockquote {
line-height: 1.4;
text-align: start;
}
a {
color: #18181b;
}
a img {
border: none;
}
/* Typography */
h1 {
color: #18181b;
font-size: 18px;
font-weight: bold;
margin-top: 0;
text-align: start;
}
h2 {
font-size: 16px;
font-weight: bold;
margin-top: 0;
text-align: start;
}
h3 {
font-size: 14px;
font-weight: bold;
margin-top: 0;
text-align: left;
}
p {
font-size: 16px;
line-height: 1.5em;
margin-top: 0;
text-align: left;
}
p.sub {
font-size: 12px;
}
img {
max-width: 100%;
}
/* Layout */
.wrapper {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 100%;
background-color: #fafafa;
margin: 0;
padding: 0;
width: 100%;
}
.content {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 100%;
margin: 0;
padding: 0;
width: 100%;
}
/* Header */
.header {
padding: 25px 0;
text-align: center;
}
.header a {
color: #18181b;
font-size: 19px;
font-weight: bold;
text-decoration: none;
}
/* Logo */
.logo {
height: 75px;
margin-top: 15px;
margin-bottom: 10px;
max-height: 75px;
width: 75px;
}
/* Body */
.body {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 100%;
background-color: #fafafa;
border-bottom: 1px solid #fafafa;
border-top: 1px solid #fafafa;
margin: 0;
padding: 0;
width: 100%;
}
.inner-body {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 570px;
background-color: #ffffff;
border-color: #e4e4e7;
border-radius: 4px;
border-width: 1px;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
margin: 0 auto;
padding: 0;
width: 570px;
}
.inner-body a {
word-break: break-all;
}
/* Subcopy */
.subcopy {
border-top: 1px solid #e4e4e7;
margin-top: 25px;
padding-top: 25px;
}
.subcopy p {
font-size: 14px;
}
/* Footer */
.footer {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 570px;
margin: 0 auto;
padding: 0;
text-align: center;
width: 570px;
}
.footer p {
color: #a1a1aa;
font-size: 12px;
text-align: center;
}
.footer a {
color: #a1a1aa;
text-decoration: underline;
}
/* Tables */
.table table {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 100%;
margin: 30px auto;
width: 100%;
}
.table th {
border-bottom: 1px solid #e4e4e7;
margin: 0;
padding-bottom: 8px;
}
.table td {
color: #52525b;
font-size: 15px;
line-height: 18px;
margin: 0;
padding: 10px 0;
}
.content-cell {
max-width: 100vw;
padding: 32px;
}
/* Buttons */
.action {
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
-premailer-width: 100%;
margin: 30px auto;
padding: 0;
text-align: center;
width: 100%;
float: unset;
}
.button {
-webkit-text-size-adjust: none;
border-radius: 4px;
color: #fff;
display: inline-block;
overflow: hidden;
text-decoration: none;
}
.button-blue,
.button-primary {
background-color: #18181b;
border-bottom: 8px solid #18181b;
border-left: 18px solid #18181b;
border-right: 18px solid #18181b;
border-top: 8px solid #18181b;
}
.button-green,
.button-success {
background-color: #16a34a;
border-bottom: 8px solid #16a34a;
border-left: 18px solid #16a34a;
border-right: 18px solid #16a34a;
border-top: 8px solid #16a34a;
}
.button-red,
.button-error {
background-color: #dc2626;
border-bottom: 8px solid #dc2626;
border-left: 18px solid #dc2626;
border-right: 18px solid #dc2626;
border-top: 8px solid #dc2626;
}
/* Panels */
.panel {
border-left: #18181b solid 4px;
margin: 21px 0;
}
.panel-content {
background-color: #fafafa;
color: #52525b;
padding: 16px;
}
.panel-content p {
color: #52525b;
}
.panel-item {
padding: 0;
}
.panel-item p:last-of-type {
margin-bottom: 0;
padding-bottom: 0;
}
/* Utilities */
.break-all {
word-break: break-all;
}

View file

@ -0,0 +1 @@
{{ $slot }}: {{ $url }}

View file

@ -0,0 +1 @@
{{ $slot }}

View file

@ -0,0 +1 @@
{{ $slot }}: {{ $url }}

View file

@ -0,0 +1,9 @@
{!! strip_tags($header ?? '') !!}
{!! strip_tags($slot) !!}
@isset($subcopy)
{!! strip_tags($subcopy) !!}
@endisset
{!! strip_tags($footer ?? '') !!}

View file

@ -0,0 +1,27 @@
<x-mail::layout>
{{-- Header --}}
<x-slot:header>
<x-mail::header :url="config('app.url')">
{{ app(\App\Support\Branding::class)->portalName() }}
</x-mail::header>
</x-slot:header>
{{-- Body --}}
{{ $slot }}
{{-- Subcopy --}}
@isset($subcopy)
<x-slot:subcopy>
<x-mail::subcopy>
{{ $subcopy }}
</x-mail::subcopy>
</x-slot:subcopy>
@endisset
{{-- Footer --}}
<x-slot:footer>
<x-mail::footer>
© {{ date('Y') }} {{ app(\App\Support\Branding::class)->portalName() }}. @lang('All rights reserved.')
</x-mail::footer>
</x-slot:footer>
</x-mail::layout>

View file

@ -0,0 +1 @@
{{ $slot }}

View file

@ -0,0 +1 @@
{{ $slot }}

View file

@ -0,0 +1 @@
{{ $slot }}