Neues Design: Tailwind + shadcn-vue statt Vuetify/Material 3
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 1m3s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m7s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 1m16s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 1m20s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m29s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m33s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 1m28s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m33s
CI / Build-Artefakte aktuell (pull_request) Failing after 52s
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 1m3s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m7s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 1m16s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 1m20s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m29s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m33s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 1m28s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m33s
CI / Build-Artefakte aktuell (pull_request) Failing after 52s
- Nüchterne, professionelle Optik: neutrale Flächen, Markenfarbe nur als Akzent, Inter-Schrift (lokal) - Zweizeiliger Header mit Suche, Hauptnavigation und Avatar-Menü - Startseite mit Begrüßungskarte, Schnellzugriffen und „Neu im Team“ - Personenverzeichnis mit Suche, Abteilungsfilter und Seitenaufteilung - Markenfarbe exakt übernommen, Abstufungen serverseitig in OKLCH (ColorPalette) – gemeinsam für Portal und Admin, keine Farbberechnung im Browser - Schnellzugriffe im Admin pflegbar - Filament-Avatare lokal statt über ui-avatars.com (DSGVO) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9c0f8de791
commit
5a3f1f34c7
141 changed files with 3873 additions and 974 deletions
|
|
@ -12,7 +12,7 @@ class Branding
|
|||
{
|
||||
public const DEFAULT_NAME = 'Inhaus';
|
||||
|
||||
public const DEFAULT_PRIMARY_COLOR = '#2E6B5E';
|
||||
public const DEFAULT_PRIMARY_COLOR = '#0F4C5C';
|
||||
|
||||
public function __construct(private readonly Settings $settings) {}
|
||||
|
||||
|
|
@ -42,6 +42,33 @@ class Branding
|
|||
return $path ? Storage::disk('uploads')->url($path) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<int, string>
|
||||
*/
|
||||
public function palette(): array
|
||||
{
|
||||
return ColorPalette::fromHex($this->primaryColor());
|
||||
}
|
||||
|
||||
/**
|
||||
* CSS-Variablen für das Portal. Werden serverseitig in die Seite geschrieben –
|
||||
* ohne Build und ohne Farbberechnung im Browser.
|
||||
*/
|
||||
public function cssVariables(): string
|
||||
{
|
||||
$color = $this->primaryColor();
|
||||
$variables = [
|
||||
'--brand' => $color,
|
||||
'--brand-foreground' => ColorPalette::foregroundFor($color),
|
||||
];
|
||||
|
||||
foreach ($this->palette() as $shade => $hex) {
|
||||
$variables["--brand-{$shade}"] = $hex;
|
||||
}
|
||||
|
||||
return collect($variables)->map(fn (string $value, string $name) => "{$name}:{$value}")->implode(';');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{portal_name: string, primary_color: string, logo_url: string|null}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue