* feat(home): alinhar cadência editorial * test(home): ajustar contrato do hero dividido
67 lines
3.7 KiB
PHP
67 lines
3.7 KiB
PHP
@props([
|
|
'cases',
|
|
])
|
|
|
|
@if ($cases->isNotEmpty())
|
|
<section aria-labelledby="portfolio-heading" class="home-chapter border-b border-amare-accent-deep bg-amare-accent-deep py-24 text-amare-accent-text" data-chapter="portfolio">
|
|
<div class="container-amare space-y-10" data-reveal-group>
|
|
<div class="grid gap-4 md:grid-cols-12" data-reveal data-reveal-from="up">
|
|
<div class="md:col-span-7 md:col-start-5 space-y-3">
|
|
<h2 id="portfolio-heading" class="text-headline font-medium">Celebrações que ganham forma com intenção.</h2>
|
|
<p class="max-w-2xl text-amare-accent-text/80">Recortes de eventos conduzidos com escuta, direção e presença em cada etapa.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid gap-8 md:grid-cols-12 md:gap-x-8 md:gap-y-14" data-editorial-portfolio>
|
|
@foreach ($cases as $case)
|
|
@php
|
|
$isFeature = $loop->first;
|
|
$isOffset = ! $isFeature && $loop->even;
|
|
@endphp
|
|
<article
|
|
@class([
|
|
'space-y-4 border-t border-amare-accent-text/30 pt-4',
|
|
'md:col-span-7' => $isFeature,
|
|
'md:col-span-5 md:col-start-8 md:pt-12' => $isOffset,
|
|
'md:col-span-5' => ! $isFeature && ! $isOffset,
|
|
])
|
|
data-editorial-portfolio-item="{{ $isFeature ? 'feature' : ($isOffset ? 'offset' : 'standard') }}"
|
|
data-reveal
|
|
data-reveal-from="up"
|
|
>
|
|
@if (filled($case->cover_image_path))
|
|
<x-media.image
|
|
:path="$case->cover_image_path"
|
|
:alt="$case->cover_image_alt ?: $case->title"
|
|
sizes="(max-width: 768px) calc(100vw - 3rem), 50vw"
|
|
@class([
|
|
'img-editorial w-full object-cover',
|
|
'aspect-[5/4]' => $isFeature,
|
|
'aspect-[4/5]' => $isOffset,
|
|
'aspect-[4/3]' => ! $isFeature && ! $isOffset,
|
|
])
|
|
/>
|
|
@endif
|
|
<div class="space-y-2">
|
|
<h3 class="text-2xl font-medium">{{ $case->title }}</h3>
|
|
<p class="text-amare-accent-text/80">{{ $case->summary }}</p>
|
|
<a href="{{ route('portfolio.show', $case->slug) }}" class="inline-flex min-h-11 items-center text-sm font-semibold transition-colors hover:text-amare-accent-text">
|
|
<span class="border-b border-amare-accent-text pb-1">Ver caso</span>
|
|
</a>
|
|
</div>
|
|
</article>
|
|
@endforeach
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-4 border-t border-amare-accent-text/30 pt-5 md:flex-row md:items-end md:justify-between">
|
|
<p class="max-w-2xl text-sm text-amare-accent-text/75">
|
|
Imagens demonstrativas enquanto o acervo autorizado da Amare está em organização.
|
|
</p>
|
|
<a href="{{ route('portfolio.index') }}" class="inline-flex min-h-11 items-center text-sm font-semibold transition-colors hover:text-amare-accent-text">
|
|
<span class="border-b border-amare-accent-text pb-1">Conhecer o portfólio</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
@endif
|