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>
This commit is contained in:
41
resources/views/components/brand/logo.blade.php
Normal file
41
resources/views/components/brand/logo.blade.php
Normal file
@@ -0,0 +1,41 @@
|
||||
@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 }}"
|
||||
/>
|
||||
Reference in New Issue
Block a user