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

Open in your IDE?
  1. {% import "./macros_typography.html.twig" as macrosTypography %}
  2. {% import "./macros_button.html.twig" as macrosButton %}
  3. <section class="home-hero-section relative lg:h-screen min-h-[600px] bg-white pt-[88px] lg:pt-28"
  4.   section-shade="light">
  5.   <div class="fixed-lines">
  6.     <div></div>
  7.     <div></div>
  8.     <div></div>
  9.   </div>
  10.   <div class="relative h-full grid grid-cols-1 z-10 lg:z-0">
  11.     <div class="relative overflow-hidden mt-12 translate-x-0">
  12.       <div class="lg:absolute px-8 xl:pl-12 pb-16 w-full sm:w-2/3 lg:w-1/3 z-10 lg:bg-white text-blue">
  13.         <h1
  14.           class="home-hero-title text-3xl xs:text-[2.4rem] lg:text-[2.25rem] xl:text-[2.75rem] 2xl:text-6xl font-extrabold leading-tight"
  15.           split-direction="top"
  16.           split-trigger="none">
  17.           {{ content.AlpineSubTitle }}
  18.           {{ content.AlpineTitle|raw }}
  19.         </h1>
  20.         {% set btnText = content.AlpineButtonText  %}
  21.         {% set btnUrl = sulu_content_path(content.AlpineButtonLink)  %}
  22.         {{macrosButton.arrowLink({
  23.         'wrappClass': 'mt-12',
  24.         'href': btnUrl,
  25.         'text': btnText,
  26.         'trigger': 'scroll'
  27.         })}}
  28.       </div>
  29.      <!-- Image -->
  30.     {% if content.AlpineMedia|length > 0 %}
  31.     {% set image = content.AlpineMedia.thumbnails['1920x1080'] %}
  32.       <img class="w-full lg:hidden"
  33.           src="{{ image }}"
  34.           alt="Oaks Lane"
  35.           loading="lazy">
  36.     {% endif %}
  37.       <div class="hidden lg:block relative h-full lg:px-8 xl:px-12 pointer-events-none">
  38.         <div class="home-hero-clip-img relative flex h-full overflow-hidden">
  39.           <div class="flex-grow h-full flex justify-end">
  40.             {% if content.AlpineMedia|length > 0 %}
  41.             {% set image = content.AlpineMedia.thumbnails['1920x1080'] %}
  42.             <img class="absolute top-0 left-0 w-full h-[120%] object-cover"
  43.               src="{{ image }}"
  44.               alt="Oaks Lane"
  45.               data-speed="0.3"
  46.               loading="lazy">
  47.             {% endif %}
  48.           </div>
  49.           <div class="flex justify-end lg:mx-8 lg:w-[calc(100%_/_3_-_42px)] xl:mx-12 xl:w-[calc(100%_/_3_-_4rem)]">
  50.             {% if content.AlpineMedia|length > 0 %}
  51.             {% set image = content.AlpineMedia.thumbnails['1920x1080'] %}
  52.             <img class="absolute top-0 left-0 w-full h-[120%] object-cover"
  53.               src="{{ image }}"
  54.               alt="Oaks Lane"
  55.               data-speed="0.3"
  56.               loading="lazy">
  57.             {% endif %}
  58.           </div>
  59.           <div class="flex-grow h-full flex justify-end">
  60.             {% if content.AlpineMedia|length > 0 %}
  61.             {% set image = content.AlpineMedia.thumbnails['1920x1080'] %}
  62.             <img class="absolute top-0 left-0 w-full h-[120%] object-cover"
  63.               src="{{ image }}"
  64.               alt="Oaks Lane"
  65.               data-speed="0.3"
  66.               loading="lazy">
  67.             {% endif %}
  68.           </div>
  69.         </div>
  70.       </div>
  71.     </div>
  72.   </div>
  73. </section>