{% include 'includes/partials/hero_usp_bar.html.twig' %}
{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
<!-- Text + Cards 2 columns -->
<section class="relative text-white bg-blue-300">
{# Defined as Dialog field. #}
{% if not pimcore_image('background-image').isEmpty() %}
{# Doing getThumbnail() instead of direct echo so image also gets rendered in editmode. #}
{{ pimcore_image('background-image').getThumbnail('projects-hero-background-image').html({
pictureAttributes: {class: 'z-0 absolute top-1/2 -translate-y-1/2'}
}) | raw }}
{% endif %}
<div
class="container relative z-10 flex flex-wrap items-center gap-6 py-10 pr-0 mx-auto overflow-hidden md:py-20 lg:pr-20 lg:flex-nowrap">
<div class="w-full pr-5 lg:w-5/12">
<span class="inline-block mb-3 text-base font-bold md:text-lg">
{{ pimcore_input('subtitle', { placeholder: 'Subtitel' }) }}
</span>
<h2 class="mb-4 text-3xl lg:text-5xl">
{{ pimcore_input('title', { placeholder: 'Titel' }) }}
</h2>
<p class="mb-8 text-lg">
{{ pimcore_textarea('text', { placeholder: 'Tekst' }) }}
</p>
{{ pimcore_link('link', {
placeholder: 'Link',
class: 'button button__primary',
}) }}
</div>
<div class="mt-6 lg:w-7/12 lg:mt-0">
<div class="swiper project-swiper">
<div class="swiper-wrapper lg:flex">
{# Defined in Brick as editableContent fields #}
{% for project in pimcore_relations('projects') %}
{# Also see areas/projects-card-slider-brick/card.html.twig #}
{% set page = project.page() %}
<a href="{{ page ? (page.url | trimUrl) : '' }}" class="!w-11/12 lg:!w-6/12 swiper-slide pr-6">
{% set image = project.visuals.current() %}
{% if image %}
<div class="relative">
{{ image.getThumbnail('projects-hero-1').html({
pictureAttributes: {class: 'inline-block mb-5 overflow-hidden rounded-md'}
})|raw }}
</div>
{% endif %}
<span
class="block mb-3 text-lg">{{ (project.meta_description ?: (project.webdesq_content|striptags|slice(0, 38) ~ '...'))|raw }}</span>
<h3 class="text-2xl leading-7">{{ project.title }}</h3>
</a>
{% endfor %}
</div>
<div class="flex items-center justify-between gap-6 mt-6 mr-5 lg:hidden">
<div class="flex items-center custom-swiper-pagination"></div>
<div class="flex gap-2.5 items-center text-white">
<div class="arrow-swiper-button-prev">
<svg width="24px" height="18px" xmlns="http://www.w3.org/2000/svg"><g id=">-Klimaatbeheersing-v2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" ><g id="coolworld-product-category-vd-375-v02.3" transform="translate(-296 -3452)" fill="currentColor"><g id="Group-4" transform="translate(0 3333)"><g id="components/navigation/mobile/carousel" transform="translate(21 116)"><g id="icons/ui/arrow-line-right-copy" transform="translate(275 3)"><path d="M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z" id="arrow-line-left" transform="matrix(1 0 0 -1 0 17.968)"/></g></g></g></g></g></svg>
</div>
<div class="arrow-swiper-button-next">
<svg width="24px" height="18px" xmlns="http://www.w3.org/2000/svg"><g id=">-Klimaatbeheersing-v2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="coolworld-product-category-vd-375-v02.3" transform="translate(-332 -3452)" fill="currentColor"><g id="Group-4" transform="translate(0 3333)"><g id="components/navigation/mobile/carousel" transform="translate(21 116)"><g id="icons/ui/arrow-line-right" transform="translate(311 3)"><path d="M22.659 7.643H5.095L9.92 2.817A1.328 1.328 0 1 0 8.044.939L.707 8.277a1 1 0 0 0 0 1.414l7.337 7.338a1.328 1.328 0 0 0 1.878-1.878l-4.827-4.826h17.564a1.341 1.341 0 0 0 0-2.682Z" id="arrow-line-right" transform="matrix(-1 0 0 1 24 0)"/></g></g></g></g></g></svg>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
{% endblock %}
{% endembed %}