Files
amare/resources/views/components/public/package-hero.blade.php

43 lines
2.2 KiB
PHP

@props([
'imagePath' => null,
'imageAlt' => null,
'eyebrow' => null,
'titleLine' => null,
'titleEmphasis' => null,
'lead' => null,
'headingId' => 'package-hero-heading',
])
<section aria-labelledby="{{ $headingId }}" {{ $attributes->class(['border-b border-amare-border bg-amare-bg']) }} data-motion="page-open">
<div class="grid min-h-[calc(100dvh-5rem)] lg:h-[calc(100dvh-5rem)] lg:min-h-0 lg:grid-cols-12" data-photo-hero>
<div class="flex min-w-0 items-center bg-amare-bg px-6 py-16 lg:col-span-5 lg:px-[clamp(3rem,6vw,7rem)]" data-hero-content data-reveal-group>
<div class="w-full max-w-[470px] space-y-7">
@if ($eyebrow)
<div class="flex items-center gap-4" data-motion-beat="seal">
<x-brand.logo mark variant="on-light" class="h-8 w-auto" />
<p class="text-sm font-medium uppercase tracking-[0.18em] text-amare-accent">{{ $eyebrow }}</p>
</div>
@endif
<h1 id="{{ $headingId }}" class="max-w-[470px] whitespace-normal break-normal text-hero-spread font-medium text-amare-text" data-motion-beat="title">
{{ $titleLine }}
@if ($titleEmphasis)
<em class="mt-4 block text-[0.7em] italic text-amare-accent-deep">{{ $titleEmphasis }}</em>
@endif
</h1>
<div class="h-[42px] w-px bg-amare-accent" aria-hidden="true"></div>
@if ($lead)
<p class="max-w-[470px] text-lg text-amare-text-muted">{{ $lead }}</p>
@endif
<div data-motion-beat="cta">
{{ $slot }}
</div>
</div>
</div>
<div data-split-hero data-motion-beat="media" class="min-h-[56dvh] overflow-hidden bg-amare-bg-deep max-lg:aspect-[4/5] lg:col-span-7 lg:min-h-0" data-reveal-media>
@if ($imagePath)
<x-media.image :path="$imagePath" :alt="$imageAlt ?: $titleLine" loading="eager" fetchpriority="high" sizes="(max-width: 1023px) 100vw, 58vw" class="img-editorial h-full w-full object-cover" />
@endif
</div>
</div>
</section>