Files
dialog-relations-website/packages/base/ContentBlocks/ContentElements/hero/templates/frontend.html

109 lines
4.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<f:layout name="FullWidth" />
<f:section name="Header" />
<f:section name="Main">
<section class="bg-white md:bg-hero-gradient">
<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>
<!-- Downarrow, half out on the right edge -->
<div
class="absolute top-1/2 -translate-y-1/2 right-[-2rem] z-20">
<a href="#next-section"
class="bg-primary border-4 border-white rounded-full p-5 inline-flex items-center justify-center hover:bg-opacity-90">
<span class="sr-only">Scroll down</span>
<svg xmlns="http://www.w3.org/2000/svg"
class="w-6 h-6"
fill="none" viewBox="0 0 24 24"
stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M19 9l-7 7-7-7" />
</svg>
</a>
</div>
</div>
<!-- TEXT HALF -->
<div class="order-1 md:order-2 md:w-1/2 flex flex-col justify-center space-y-6 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">
Hallo, wir sind
</span>
</div>
<!-- Heading -->
<h1 class="text-3xl md:text-5xl font-extrabold">
Dialog Relations
</h1>
<!-- Body copy -->
<p class="text-base md:text-lg text-gray-800 max-w-md">
Sorem ipsum dolor sit amet, consectetur adipiscing elit.
Nunc vulputate libero et velit interdum, ac aliquet odio mattis.
</p>
<!-- Social icons -->
<div class="flex space-x-4">
<a href="#" class="bg-primary text-white p-3 rounded-full">
<span class="sr-only">LinkedIn</span>
<svg class="w-5 h-5" fill="currentColor"><!----></svg>
</a>
<a href="#" class="bg-primary text-white p-3 rounded-full">
<span class="sr-only">Instagram</span>
<svg class="w-5 h-5" fill="currentColor"><!----></svg>
</a>
<a href="#" class="bg-primary text-white p-3 rounded-full">
<span class="sr-only">Facebook</span>
<svg class="w-5 h-5" fill="currentColor"><!----></svg>
</a>
</div>
</div>
</div>
</div>
</section>
</f:section>