{% include 'includes/partials/hero_usp_bar.html.twig' %}{% embed 'app/area-brick-layout.html.twig' %} {% block content %} {% set customButtonLabel = pimcore_input('customButtonLabel').getData() %} <section class="relative pb-8 md:pb-10"> {% set selectedImage = pimcore_image('background-image') %} {% set HeroLargeBackgroundImage = selectedImage.getThumbnail("header-large-gradient") %} {% set backgroundPositionStyle = "background-position:" ~ (selectedImage.getImage().getCustomSetting('focalPointX') ?? "50") ~ "% " ~ (selectedImage.getImage().getCustomSetting('focalPointY') ?? "50") ~ "%; " %} <section> <div class="bg-blue-200 pb-8 pt-[150px] sm:py-20"> <div class="sm:container flex flex-row h-full items-center sm:min-h-[650px]"> <div class="sm:absolute sm:left-0 hero-large-background" style="{{ backgroundPositionStyle ?? "" }} background-image:url('{{ HeroLargeBackgroundImage }}');"></div> <div class="mx-5 sm:mx-0 w-full sm:w-[630px] relative hero-card hero-card--overlap bg-white px-10 py-8 sm:ml-8 rounded"> {% include 'includes/partials/hero_content.html.twig' %} </div> </div> </div> </section> {# Defined as editableDialogBox field #} {% if pimcore_relations("product-categories") is not empty %} <div class="container flex flex-wrap justify-center -mt-3 text-base font-bold md:-mt-[68px] drop-shadow-xl"> {% for productCategory in pimcore_relations("product-categories") %} {% include 'areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig' %} {% if productCategory.page is empty or productCategory.page == false %} <div class="flex items-center w-full p-4 transition-transform bg-white border-b border-gray-300 md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none {{ loop.index === 1 ? "rounded-t-md md:rounded-l-md md:rounded-r-none" : "" }}"> <div class="flex items-center w-full md:justify-center md:flex-col"> {% if productCategory.icon %} <div class="inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4"> {{ productCategory.icon.thumbnail('default').html|raw }} </div> {% endif %} <span class="text-center"> {{ productCategory.name ?: productCategory.key }} </span> </div> <span class="text-gray-800 md:hidden"> <svg class="w-4 h-8 " xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z"/> </svg> </span> </div> {% else %} <a href="{{ productCategory.page.url | trimUrl }}" class="flex items-center w-full p-4 transition-transform bg-white border-b border-gray-300 md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none {{ loop.index === 1 ? "rounded-t-md md:rounded-l-md md:rounded-r-none" : "" }}"> <div class="flex items-center w-full md:justify-center md:flex-col"> {% if productCategory.icon %} <div class="inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4"> {{ productCategory.icon.thumbnail('default').html|raw }} </div> {% endif %} <span class="text-center"> {{ productCategory.name ?: productCategory.key }} </span> </div> <span class="text-gray-800 md:hidden"> <svg class="w-4 h-8 " xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z"/> </svg> </span> </a> {% endif %} {% endfor %} {% if document.getProperty('productCategoryArchivePage') is defined and document.getProperty('productCategoryArchivePage') is not null %} <a href="{{ document.getProperty('productCategoryArchivePage').url | trimUrl }}" class="flex items-center w-full p-4 transition-transform bg-white rounded-b-md md:border-r md:border-b-0 md:w-1/4 hover:border-none hover:rounded-md hover:scale-105 hover:drop-shadow-xl hover:text-blue md:rounded-none md:rounded-r-md"> <div class="flex items-center w-full md:justify-center md:flex-col"> {% if pimcore_website_config('allSolutionsIcon') %} <div class="inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14"> {{ pimcore_website_config('allSolutionsIcon').thumbnail('default').html|raw }} </div> {% endif %} <span class="text-center"> {{ "Alle oplossingen"|trans }} </span> </div> <span class="text-gray-800 md:hidden"> <svg class="w-4 h-8 " xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z"/> </svg> </span> </a> {% endif %} </div> {% endif %} </section> {% endblock %}{% endembed %}