presseportale/resources/views/components/web/brand-mark.blade.php
Kevin Adametz 092ee0e918
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
13-05-2026 Frontend DEV + HUB
2026-05-13 18:11:03 +02:00

66 lines
2.4 KiB
PHP
Raw 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.

@props([
'brand' => 'presseportale',
'variant' => 'auto',
'serif' => true,
])
@php
/**
* Zentrale Brand-Wortmarke für alle drei Marken der Verlags-Familie.
*
* Schreibweise (verbindlich):
* - presseecho → "presse" + "echo" (echo ist die Akzentfarbe)
* - businessportal24 → "businessportal" + "24" (24 ist orange)
* - presseportale → "presse" + "portale" (portale ist Bernstein)
*
* Keine TLD-Endung (".de", ".com") direkt am Markennamen. Diese gehören
* falls überhaupt getrennt in den juristischen Bereich (Impressum, Kontakt).
*
* Schriftart:
* - Standard `font-serif` (Source Serif 4) passt zum Editorial-Charakter
* von Presseecho und BusinessPortal24. Der Hub lädt Source Serif 4
* ebenfalls mit, damit Markennennungen typografisch konsistent bleiben.
* - `:serif="false"` schaltet auf font-sans (Inter Tight) etwa für die
* Top-Utility-Bar, in der die Marken sehr klein erscheinen.
*
* Variant:
* - `auto` → Akzentfarbe = Theme-Default (Orange / Grün / Bernstein)
* - `on-dark` → hellere/wärmere Akzentfarbe (für dunkle Hub-Panels)
* - `mono` → Akzent identisch zum Basis-Ton (z. B. wenn beides weiß sein soll)
*/
$marks = [
'presseecho' => [
'name' => 'presse',
'accent' => 'echo',
'accent_color_auto' => '#345636',
'accent_color_on_dark' => '#9BD5B2',
],
'businessportal24' => [
'name' => 'businessportal',
'accent' => '24',
'accent_color_auto' => '#C84A1E',
'accent_color_on_dark' => '#C84A1E',
],
'presseportale' => [
'name' => 'presse',
'accent' => 'portale',
'accent_color_auto' => '#B07A3A',
'accent_color_on_dark' => '#B07A3A',
],
];
$mark = $marks[$brand] ?? $marks['presseportale'];
$accentColor = match ($variant) {
'on-dark' => $mark['accent_color_on_dark'],
'mono' => 'inherit',
default => $mark['accent_color_auto'],
};
$fontClass = $serif ? 'font-serif' : 'font-sans';
$baseAttributes = $attributes->merge(['class' => $fontClass]);
@endphp
<span {{ $baseAttributes }}>{{ $mark['name'] }}<span
style="color: {{ $accentColor }};">{{ $mark['accent'] }}</span></span>