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>
42 lines
1.2 KiB
PHP
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 }}"
|
|
/>
|