templates/areas/hero-large-brick/view.html.twig line 19

Open in your IDE?
  1. {% include 'includes/partials/hero_usp_bar.html.twig' %}
  2. {% embed 'app/area-brick-layout.html.twig' %}
  3.     {% block content %}
  4.         {% set customButtonLabel = pimcore_input('customButtonLabel').getData() %}
  5.         <section class="relative pb-8 md:pb-10">
  6.             {% set selectedImage = pimcore_image('background-image') %}
  7.             {% set HeroLargeBackgroundImage = selectedImage.getThumbnail("header-large-gradient") %}
  8.             {% set backgroundPositionStyle = "background-position:" ~ (selectedImage.getImage().getCustomSetting('focalPointX') ?? "50") ~ "% " ~  (selectedImage.getImage().getCustomSetting('focalPointY') ?? "50") ~ "%; " %}
  9.             <section>
  10.                 <div class="bg-blue-200 pb-8 pt-[150px] sm:py-20">
  11.                     <div class="sm:container flex flex-row h-full items-center sm:min-h-[650px]">
  12.                         <div class="sm:absolute sm:left-0 hero-large-background" style="{{ backgroundPositionStyle ?? "" }} background-image:url('{{ HeroLargeBackgroundImage }}');"></div>
  13.                         <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">
  14.                             {% include 'includes/partials/hero_content.html.twig' %}
  15.                         </div>
  16.                     </div>
  17.                 </div>
  18.             </section>
  19.             {# Defined as editableDialogBox field #}
  20.             {% if pimcore_relations("product-categories") is not empty %}
  21.                 <div
  22.                     class="container flex flex-wrap justify-center -mt-3 text-base font-bold md:-mt-[68px] drop-shadow-xl">
  23.                     {% for productCategory in pimcore_relations("product-categories") %}
  24.                         {% include 'areas/hero-large-brick/partials/editmode/_no-page-found-for-object.html.twig' %}
  25.                         {% if productCategory.page is empty or productCategory.page == false %}
  26.                             <div
  27.                                 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" : "" }}">
  28.                                 <div class="flex items-center w-full md:justify-center md:flex-col">
  29.                                     {% if productCategory.icon %}
  30.                                         <div class="inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4">
  31.                                             {{ productCategory.icon.thumbnail('default').html|raw }}
  32.                                         </div>
  33.                                     {% endif %}
  34.                                     <span class="text-center">
  35.                                         {{ productCategory.name ?: productCategory.key }}
  36.                                     </span>
  37.                                 </div>
  38.                                 <span class="text-gray-800 md:hidden">
  39.                                     <svg class="w-4 h-8 " xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
  40.                                         <path fill="currentColor" fill-rule="evenodd"
  41.                                               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"/>
  42.                                     </svg>
  43.                                 </span>
  44.                             </div>
  45.                         {% else %}
  46.                             <a href="{{ productCategory.page.url | trimUrl }}"
  47.                                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" : "" }}">
  48.                                 <div class="flex items-center w-full md:justify-center md:flex-col">
  49.                                     {% if productCategory.icon %}
  50.                                         <div class="inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14 sm:mt-4">
  51.                                             {{ productCategory.icon.thumbnail('default').html|raw }}
  52.                                         </div>
  53.                                     {% endif %}
  54.                                     <span class="text-center">
  55.                                         {{ productCategory.name ?: productCategory.key }}
  56.                                     </span>
  57.                                 </div>
  58.                                 <span class="text-gray-800 md:hidden">
  59.                                     <svg class="w-4 h-8 " xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
  60.                                         <path fill="currentColor" fill-rule="evenodd"
  61.                                               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"/>
  62.                                     </svg>
  63.                                 </span>
  64.                             </a>
  65.                         {% endif %}
  66.                     {% endfor %}
  67.                     {% if document.getProperty('productCategoryArchivePage') is defined
  68.                         and document.getProperty('productCategoryArchivePage') is not null %}
  69.                         <a href="{{ document.getProperty('productCategoryArchivePage').url | trimUrl }}"
  70.                            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">
  71.                             <div class="flex items-center w-full md:justify-center md:flex-col">
  72.                                 {% if pimcore_website_config('allSolutionsIcon') %}
  73.                                     <div class="inline w-8 h-8 mr-4 md:mb-6 md:mr-0 md:h-14 md:w-14">
  74.                                         {{ pimcore_website_config('allSolutionsIcon').thumbnail('default').html|raw }}
  75.                                     </div>
  76.                                 {% endif %}
  77.                                 <span class="text-center">
  78.                                     {{ "Alle oplossingen"|trans }}
  79.                                 </span>
  80.                             </div>
  81.                             <span class="text-gray-800 md:hidden">
  82.                                 <svg class="w-4 h-8 " xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
  83.                                     <path fill="currentColor" fill-rule="evenodd"
  84.                                           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"/>
  85.                                 </svg>
  86.                             </span>
  87.                         </a>
  88.                     {% endif %}
  89.                 </div>
  90.             {% endif %}
  91.         </section>
  92.     {% endblock %}
  93. {% endembed %}