Files
amare/resources/views/components/brand/logo.blade.php
Manoel Freitas cf1589c916 feat: recreate public frontend with Heritage Editorial identity (#5)
* feat: recreate public frontend with Heritage Editorial identity

Replace placeholder visual system with EB Garamond/olive tokens, brand assets, editorial home narrative, São Paulo settings, real testimonials, and regenerated visual baselines.

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs: archive recreate-public-frontend and sync Heritage Editorial specs

Merge delta requirements into main OpenSpec capabilities and move the completed change into the dated archive.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-01 23:39:00 -03:00

42 lines
1.2 KiB
PHP

@props([
'variant' => 'on-light',
'mark' => false,
'alt' => null,
'class' => '',
])
@php
$settings = $siteSettings ?? null;
$uploadedPath = is_object($settings) ? ($settings->logo_path ?? null) : null;
$uploadedAlt = is_object($settings) ? ($settings->logo_alt ?? null) : null;
$resolvedAlt = $alt
?? (filled($uploadedAlt) ? $uploadedAlt : null)
?? ((is_object($settings) && filled($settings->brand_name ?? null))
? $settings->brand_name
: 'Amare Assessoria');
$variant = $variant === 'on-dark' ? 'on-dark' : 'on-light';
$kind = $mark ? 'mark' : 'lockup';
$staticSrc = asset("brand/{$kind}-{$variant}.webp");
$staticFallback = asset("brand/{$kind}-{$variant}.png");
$src = filled($uploadedPath)
? \Illuminate\Support\Facades\Storage::disk('public')->url($uploadedPath)
: $staticSrc;
@endphp
<img
{{ $attributes->merge([
'src' => $src,
'alt' => $resolvedAlt,
'class' => trim('brand-logo '.$class),
'decoding' => 'async',
'loading' => 'eager',
]) }}
@if (! filled($uploadedPath))
data-brand-fallback="{{ $staticFallback }}"
@endif
data-brand-variant="{{ $variant }}"
/>