* 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>
37 lines
1.8 KiB
PHP
37 lines
1.8 KiB
PHP
@props([
|
|
'testimonials',
|
|
])
|
|
|
|
@if ($testimonials->isNotEmpty())
|
|
<section aria-labelledby="testimonials-heading" class="border-b border-amare-border bg-amare-bg-muted py-16">
|
|
<div class="container-amare space-y-8">
|
|
<div class="max-w-2xl space-y-3">
|
|
<h2 id="testimonials-heading" class="text-3xl font-semibold text-amare-text">Depoimentos</h2>
|
|
<p class="text-amare-text-muted">Quem celebrou com a Amare conta como foi a experiência.</p>
|
|
</div>
|
|
|
|
<div class="grid gap-6 md:grid-cols-2">
|
|
@foreach ($testimonials as $testimonial)
|
|
@php
|
|
$paragraphs = preg_split('/\n\s*\n/', trim((string) $testimonial->quote)) ?: [];
|
|
$paragraphs = array_values(array_filter(array_map('trim', $paragraphs), fn (string $p): bool => $p !== ''));
|
|
@endphp
|
|
<blockquote class="space-y-4 border-t border-amare-border pt-4">
|
|
<div class="space-y-3 text-lg text-amare-text">
|
|
@foreach ($paragraphs as $index => $paragraph)
|
|
<p>@if ($index === 0)“@endif{{ $paragraph }}@if ($index === count($paragraphs) - 1)”@endif</p>
|
|
@endforeach
|
|
</div>
|
|
<footer class="text-sm text-amare-text-muted">
|
|
<cite class="not-italic font-semibold text-amare-text">{{ $testimonial->author_name }}</cite>
|
|
@if (filled($testimonial->context))
|
|
<span> — {{ $testimonial->context }}</span>
|
|
@endif
|
|
</footer>
|
|
</blockquote>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
</section>
|
|
@endif
|