99 lines
3.8 KiB
HTML
99 lines
3.8 KiB
HTML
<f:layout name="FullWidth" />
|
||
|
||
<f:section name="Header" />
|
||
|
||
<f:section name="Main">
|
||
<section class="bg-white md:bg-hero-gradient md:mb-16">
|
||
<div class="container mx-auto px-6 py-12 md:py-24 bg-white md:bg-hero-inner">
|
||
<div class="md:flex md:items-center">
|
||
|
||
<!-- IMAGE HALF -->
|
||
<div class="order-2 md:order-1 md:w-1/2 relative">
|
||
<f:if condition="{data.image}">
|
||
<f:then>
|
||
<picture class="block w-full object-cover">
|
||
<!-- WEBP -->
|
||
<source
|
||
type="image/webp"
|
||
srcset="
|
||
{f:uri.image(image:data.image.0, width:'320c', fileExtension:'webp')} 320w,
|
||
{f:uri.image(image:data.image.0, width:'768c', fileExtension:'webp')} 768w,
|
||
{f:uri.image(image:data.image.0, width:'1024c', fileExtension:'webp')} 1024w"
|
||
sizes="(max-width: 768px) 80vw, 1024px" />
|
||
<!-- fallback -->
|
||
<source
|
||
srcset="
|
||
{f:uri.image(image:data.image.0, width:'320c')} 320w,
|
||
{f:uri.image(image:data.image.0, width:'768c')} 768w,
|
||
{f:uri.image(image:data.image.0, width:'1024c')} 1024w"
|
||
sizes="(max-width: 768px) 80vw, 1024px" />
|
||
<f:image
|
||
image="{data.image.0}"
|
||
treatIdAsReference="1"
|
||
fetchpriority="high"
|
||
cropVariant="default"
|
||
width="1024c"
|
||
alt="Hero Image"
|
||
loading="lazy"
|
||
class="w-full h-auto"
|
||
/>
|
||
</picture>
|
||
</f:then>
|
||
<f:else>
|
||
<p class="w-full text-center text-white py-20">
|
||
No image available
|
||
</p>
|
||
</f:else>
|
||
</f:if>
|
||
|
||
<!-- Down‑arrow, half out on the right edge -->
|
||
<div
|
||
class="absolute top-2/3 -translate-y-1/2 right-[-3rem] z-20">
|
||
<a href="#next-section"
|
||
class="w-24 h-24 text-5xl bg-primary border-8 border-white text-white rounded-full inline-flex items-center justify-center hover:bg-primary-dark hover:text-white">
|
||
<span class="sr-only">Scroll down</span>
|
||
<i class="ci ci-arrow-down"></i>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- TEXT HALF -->
|
||
<div class="order-1 md:order-2 md:w-1/2 flex flex-col justify-center md:pl-24">
|
||
|
||
<!-- Desktop: line + intro -->
|
||
<div class="hidden md:flex items-center space-x-3">
|
||
<span class="block h-px w-10 bg-gray-600"></span>
|
||
<span class="text-sm uppercase tracking-wide text-gray-600">
|
||
{data.subheader}
|
||
</span>
|
||
</div>
|
||
|
||
<!-- Heading -->
|
||
<h1>
|
||
{data.header}
|
||
</h1>
|
||
|
||
<!-- Body copy -->
|
||
<div class="text-base md:text-lg max-w-md">
|
||
<f:format.html>{data.bodytext}</f:format.html>
|
||
</div>
|
||
|
||
<!-- Social icons -->
|
||
<div class="space-x-3">
|
||
<a href="#" class="w-6 h-6 md:w-10 md:h-10 bg-primary text-white rounded-full inline-flex items-center justify-center hover:bg-primary-dark hover:text-white">
|
||
<i class="ci ci-linkedin"></i>
|
||
</a>
|
||
<a href="#" class="w-6 h-6 md:w-10 md:h-10 bg-primary text-white rounded-full inline-flex items-center justify-center hover:bg-primary-dark hover:text-white">
|
||
<i class="ci ci-instagram"></i>
|
||
</a>
|
||
<a href="#" class="w-6 h-6 md:w-10 md:h-10 bg-primary text-white rounded-full inline-flex items-center justify-center hover:bg-primary-dark hover:text-white">
|
||
<i class="ci ci-facebook"></i>
|
||
</a>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
</f:section>
|