templates/includes/blocks/heroProject.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.         <div class="flex gap-6 text-sm md:text-base whitespace-nowrap">
  8.           {% if globalContent.projectType %}
  9.             <div class="bg-gray rounded-full py-2 px-6 text-blue w-max">
  10.               {{globalContent.projectType}}
  11.             </div>
  12.           {% endif %}
  13.           {% if globalContent.location %}
  14.             <div class="flex items-center gap-2 md:gap-4 group">
  15.               <svg class="w-4 h-4 opacity-50 text-blue group-hover:-translate-y-1 duration-150">
  16.                 <use xlink:href="#location"></use>
  17.               </svg>
  18.               {{globalContent.location}}
  19.             </div>
  20.           {% endif %}
  21.         </div>
  22.         <h1 class="title text-[2.5rem] lg:text-6xl xl:text-7xl mt-6">{{content.heroSectionTitle}}</h1>
  23.         
  24.         {% if globalContent.heroInfo == true %}
  25.           {% if globalContent.price or globalContent.area or globalContent.rooms or globalContent.lots %}
  26.             <div class="grid sm:grid-cols-2 lg:flex flex-wrap lg:flex-nowrap border border-gray divide-y lg:divide-y-0 sm:divide-x divide-gray mt-6 w-full lg:w-max max-w-full" batch-wrapp>
  27.               {% if globalContent.price %}
  28.                 <div class="flex items-center sm:justify-center w-full sm:min-w-[50%] lg:min-w-[auto] px-8 py-6 xl:py-7">
  29.                   <p class="lg:text-lg xl:text-2xl whitespace-nowrap">{{globalContent.price}}</p>
  30.                 </div>
  31.               {% endif %}
  32.               {% if globalContent.area %}
  33.                 <div class="flex items-center sm:justify-center w-full sm:min-w-[50%] lg:min-w-[auto] px-8 py-6 xl:py-7">
  34.                   <p class="lg:text-lg xl:text-2xl whitespace-nowrap">{{globalContent.area}} m<sup>2</sup>
  35.                   </p>
  36.                 </div>
  37.               {% endif %}
  38.               {% if globalContent.rooms %}
  39.                 <div class="flex items-center sm:justify-center w-full sm:min-w-[50%] lg:min-w-[auto] px-8 py-6 xl:py-7">
  40.                   <p class="lg:text-lg xl:text-2xl whitespace-nowrap">{{globalContent.rooms}}</p>
  41.                 </div>
  42.               {% endif %}
  43.               {% if globalContent.lots %}
  44.                 <div class="flex items-center sm:justify-center w-full sm:min-w-[50%] lg:min-w-[auto] px-8 py-6 xl:py-7">
  45.                   <p class="lg:text-lg xl:text-2xl border-b border-dashed">{{globalContent.lots}}</p>
  46.                 </div>
  47.               {% endif %}
  48.             </div>
  49.           {% endif %}
  50.         {% endif %}
  51.       </div>
  52.       {# Socials #}
  53.       <div class="flex lg:flex-col border border-gray divide-x lg:divide-x-0 lg:divide-y divide-gray w-max h-max">
  54.         {# {% if socials.facebook %} #}
  55.           <a class="flex items-center justify-center w-12 h-12 hover:bg-blue/10 duration-500" href="https://www.facebook.com/sharer.php?u={{globalContent.url|getShare}}" aria-label="Facebook">
  56.             <svg class="block w-4 h-4 duration-500 ease-basic-ease">
  57.               <use xlink:href="#facebook"></use>
  58.             </svg>
  59.           </a>
  60.         {# {% endif %}
  61.         {% if socials.linkedin %} #}
  62.           <a class="flex items-center justify-center w-12 h-12 hover:bg-blue/10 duration-500" href="https://www.linkedin.com/sharing/share-offsite/?url={{globalContent.url|getShare}}"  aria-label="Linked In">
  63.             <svg class="block w-4 h-4 duration-500 ease-basic-ease">
  64.               <use xlink:href="#linkedin"></use>
  65.             </svg>
  66.           </a>
  67.         {# {% endif %}
  68.         {% if socials.whatsapp %} #}
  69.           <a class="flex items-center justify-center w-12 h-12 hover:bg-blue/10 duration-500" href="https://api.whatsapp.com/send?text={{globalContent.url|getShare}}" aria-label="Whats App">
  70.             <svg class="block w-4 h-4 duration-500 ease-basic-ease">
  71.               <use xlink:href="#whatsapp"></use>
  72.             </svg>
  73.           </a>
  74.         {# {% endif %}
  75.         {% if socials.email %} #}
  76.           <a class="flex items-center justify-center w-12 h-12 hover:bg-blue/10 duration-500" href="mailto:?subject={{globalContent.title}}&body={{globalContent.url|getShare}}" aria-label="Email">
  77.             <svg class="block w-4 h-4 duration-500 ease-basic-ease">
  78.               <use xlink:href="#email"></use>
  79.             </svg>
  80.           </a>
  81.         {# {% endif %} #}
  82.       </div>
  83.     </div>
  84.   </div>
  85. </section>
  86. <section class="gallery-section h-80 md:h-96 lg:min-h-[650px] lg:h-[85vh]" fade fade-trigger="none">
  87.   <div class="big-container-mob-zero h-full">
  88.     <div class="gallery-slider swiper-container relative md:overflow-hidden h-full">
  89.       <div class="gallery-slider-wrapper swiper-wrapper">
  90.         {% for photo in content.heroSectionImages %}
  91.           {% if photo|length > 0 %}
  92.               {% set image = photo.thumbnails['1920x1080'] %}
  93.           {% else %}
  94.               {% set image = '' %}
  95.           {% endif %}
  96.           <div class="gallery-slide swiper-slide"
  97.              data-src="{{image}}"
  98.                data-external-thumb-image="{{image}}"
  99.              >
  100.             {# Image size 1920*1080 #}
  101.             <img class="swiper-lazy w-full h-full object-cover select-none"
  102.                data-src="{{image}}"
  103.                data-external-thumb-image="{{image}}"
  104.                alt="{{content.heroSectionTitle}}">
  105.             <div class="swiper-lazy-preloader"></div>
  106.           </div>
  107.         {% endfor %}
  108.       </div>
  109.       <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">
  110.         <div class="flex items-center justify-center rounded-full bg-white text-[#111] w-[52px] h-[52px] lg:w-14 lg:h-14">
  111.           <svg class="w-6" viewBox="0 0 37 14">
  112.             <use xlink:href="#arrow-prev"></use>
  113.           </svg>
  114.         </div>
  115.       </button>
  116.       <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">
  117.         <div class="flex items-center justify-center rounded-full bg-white text-[#111] w-[52px] h-[52px] lg:w-14 lg:h-14">
  118.           <svg class="w-6" viewBox="0 0 37 14">
  119.             <use xlink:href="#arrow-next"></use>
  120.           </svg>
  121.         </div>
  122.       </button>
  123.       <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">
  124.         <span class="gallery-count__current"></span>
  125.         <span class="opacity-30">&#160;/&#160;</span>
  126.         <span class="gallery-count__all opacity-30"></span>
  127.       </div>
  128.     </div>
  129.   </div>
  130. </section>