custom/static-plugins/NdFashion/src/Resources/views/storefront/element/cms-element-manufacturer-overview.html.twig line 1

Open in your IDE?
  1. {% block element_manufacturer_overview %}
  2.     {% set manufacturers = element.data.get('manufacturersSorted') %}
  3.     {% block element_manufacturer_overview_upper_nav %}
  4.         <section class="brand-listing-navigation lg:hidden">
  5.             <ul class="brand-listing-nav-list flex overflow-x-auto divide-x divide-grey-400">
  6.                 {% for key, value in manufacturers %}
  7.                     <li class="brand-listing-nav-item nav-item_{{ key }} flex border-y border-y-grey-400 first:border-l first:border-l-grey-400 last:!border-r last:border-r-grey-400 first:ml-box last:mr-box">
  8.                         <a href="#brand_{{ key }}"
  9.                            class="brand-listing-nav-trigger flex items-center justify-center uppercase font-medium text-black w-12 h-12 transition hover:bg-blue-500 hover:text-white"
  10.                            id="trigger_{{ key }}">{{ key }}</a>
  11.                     </li>
  12.                 {% endfor %}
  13.             </ul>
  14.         </section>
  15.     {% endblock %}
  16.     {% block element_manufacturer_overview_main_container %}
  17.         <section data-element="{{ element.type }}" class="boxed-layout section-p-y">
  18.             <ul class="max-w-[1710px] w-full lg:px-10 mx-auto columns-1 sm:columns-2 md:columns-3 lg:columns-4 grid-gap-10 pb-5 lg:py-5">
  19.                 {% for index, merken in manufacturers %}
  20.                     {# {% for index, merken in alphabet %} #}
  21.                     {% if merken %}
  22.                         <li class="grid grid-cols-[max-content_1fr] items-start grid-gap-6 mb-6 break-inside-avoid lg:grid-gap-4">
  23.                             <div class="w-8 relative h-full">
  24.                                 <div class="flex justify-center items-center w-8 h-8 bg-grey-200 font-medium scroll-mt-4 text-black"
  25.                                      id="brand_{{ index }}">
  26.                                     {{ index }}
  27.                                 </div>
  28.                                 <span class="w-[2px] h-[calc(100%_-_32px)] bg-grey-200 inline-block absolute top-8 left-1/2 transform -translate-x-1/2"></span>
  29.                             </div>
  30.                             <ul class="brand-list grid grid-gap-y-6">
  31.                                 {% if merken %}
  32.                                     {% for index, brand in merken %}
  33.                                         <li class="brand-listing-item first:pt-2" data-id="{{ brand.id }}">
  34.                                             <a {% if brand.url %} href="{{ brand.url }}" {% endif %}
  35.                                                     class="inline-block text-base font-light leading-none text-black{% if brand.url %} btn-underline{% endif %}"
  36.                                                     title="{{ brand.name }}">
  37.                                                 {{ brand.name }}
  38.                                             </a>
  39.                                         </li>
  40.                                     {% endfor %}
  41.                                 {% else %}
  42.                                     <li class="no-brands-found text-sm py-2">
  43.                                         {{ "pages.brands.notFound"|trans|sw_sanitize }}
  44.                                     </li>
  45.                                 {% endif %}
  46.                             </ul>
  47.                         </li>
  48.                     {% endif %}
  49.                 {% endfor %}
  50.             </ul>
  51.         </section>
  52.     {% endblock %}
  53. {% endblock %}