templates/includes/blocks/simpleSliderProject.html.twig line 1

Open in your IDE?
  1. <section class="relative bg-white text-blue pt-32 lg:pt-52 pb-6 lg:pb-16" section-shade="light">
  2.   <div class="big-container">
  3.     {# Top info #}
  4.     <div class="flex flex-col gap-6 lg:flex-row justify-between">
  5.       {# Content #}
  6.       <div class="flex flex-col lg:w-10/12 xl:w-9/12 max-w-[930px]">
  7.         <h1 class="title text-[2.5rem] lg:text-6xl xl:text-7xl mt-6">{{content.Title}}</h1>
  8.       </div>
  9.     </div>
  10.   </div>
  11. </section>
  12. <section class="gallery-section h-80 md:h-96 lg:min-h-[650px] lg:h-[85vh]" fade fade-trigger="none">
  13.   <div class="big-container-mob-zero h-full">
  14.     <div class="gallery-slider swiper-container relative md:overflow-hidden h-full">
  15.       <div class="gallery-slider-wrapper swiper-wrapper">
  16.         {% for photo in content.Images %}
  17.           {% if photo|length > 0 %}
  18.               {% set image = photo.thumbnails['1920x1080'] %}
  19.           {% else %}
  20.               {% set image = '' %}
  21.           {% endif %}
  22.           <div class="gallery-slide swiper-slide"
  23.              data-src="{{image}}"
  24.                data-external-thumb-image="{{image}}"
  25.              >
  26.             {# Image size 1920*1080 #}
  27.             <img class="swiper-lazy w-full h-full object-cover select-none"
  28.                data-src="{{image}}"
  29.                data-external-thumb-image="{{image}}"
  30.                alt="{{content.heroSectionTitle}}">
  31.             <div class="swiper-lazy-preloader"></div>
  32.           </div>
  33.         {% endfor %}
  34.       </div>
  35.       <button class="swiper-button-prev flex items-center pl-2 lg:pl-4 absolute top-0 left-0 bottom-0 z-10 cursor-pointer" aria-label="Prev Slide">
  36.         <div class="flex items-center justify-center rounded-full bg-white text-[#111] w-[52px] h-[52px] lg:w-14 lg:h-14">
  37.           <svg class="w-6" viewBox="0 0 37 14">
  38.             <use xlink:href="#arrow-prev"></use>
  39.           </svg>
  40.         </div>
  41.       </button>
  42.       <button class="swiper-button-next flex items-center pr-2 lg:pr-4 absolute top-0 right-0 bottom-0 z-10 cursor-pointer" aria-label="Next Slide">
  43.         <div class="flex items-center justify-center rounded-full bg-white text-[#111] w-[52px] h-[52px] lg:w-14 lg:h-14">
  44.           <svg class="w-6" viewBox="0 0 37 14">
  45.             <use xlink:href="#arrow-next"></use>
  46.           </svg>
  47.         </div>
  48.       </button>
  49.       <div class="gallery-count-wrapp absolute bottom-0 md:bottom-6 left-1/2 -translate-x-1/2 translate-y-1/2 md:translate-y-0 bg-[#111] text-sm text-white rounded-full flex items-center px-4 py-2 z-10 opacity-0">
  50.         <span class="gallery-count__current"></span>
  51.         <span class="opacity-30">&#160;/&#160;</span>
  52.         <span class="gallery-count__all opacity-30"></span>
  53.       </div>
  54.     </div>
  55.   </div>
  56. </section>