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

Open in your IDE?
  1. {% set contactInformations = sulu_snippet_load_by_area('ContactInformations_area',null, app.ContactInformations) %}
  2. <section class="cover_contact relative h-screen min-h-[600px] bg-blue text-white"
  3.   section-shade="transparent">
  4.   <div class="relative flex h-full pl-8 lg:pl-12">
  5.     <svg
  6.       class="absolute aspect-square bottom-4 right-20 lg:top-0 lg:left-0 h-[80%] lg:h-full xl:h-auto xl:w-7/12 text-white/5 pointer-events-none yellow_bg">
  7.       <use xlink:href="#circle"></use>
  8.     </svg>
  9.     {# Text side #}
  10.     <div class="relative flex flex-col justify-end h-full lg:w-7/12 pb-24 lg:pb-12 pt-[88px] lg:pt-28">
  11.       <div>
  12.         <p class="uppertitle">
  13.           <i></i>
  14.           {{ content.heroSectionSubTitle }}
  15.         </p>
  16.         <h1 class=" h1 mt-6">
  17.           {{ content.heroSectionTitle }}
  18.         </h1>
  19.       </div>
  20.  
  21.       <div class="flex flex-col gap-8 mt-6 lg:mt-16">
  22.         <div>
  23.           <p class="uppercase text-[10px] font-extrabold">{{contactInformations.content.contactsAdressTitle}}</p>
  24.           <address class="text-sm not-italic">
  25.             <p class="font-extrabold">{{contactInformations.content.contactsCompanyName}}</p>
  26.             <p class="mt-1">
  27.               <span>{{contactInformations.content.contactsCompanyAdress}}</span>
  28.             </p>
  29.           </address>
  30.         </div>
  31.         <div>
  32.           <p class="uppercase text-[10px] font-extrabold">{{contactInformations.content.contactsPhoneText}}</p>
  33.           <p class="mt-1">
  34.             <a class=""
  35.               href="tel:{{contactInformations.content.contactsPhone}}">{{contactInformations.content.contactsPhone}}</a>
  36.           </p>
  37.         </div>
  38.         <div>
  39.           <p class="uppercase text-[10px] font-extrabold">{{contactInformations.content.contactsEmailText}}</p>
  40.           <p class="mt-1">
  41.             {% include 'partials/layout/contact_email.html.twig' with { email: contactInformations.content.contactsEmail } %}
  42.           </p>
  43.         </div>
  44.       </div>
  45.     </div>
  46.     {# Image #}
  47.     <div class="hidden lg:block relative h-full lg:w-5/12">
  48.       {# image size 900*1360 #}
  49.       {% if content.heroSectionImage|length > 0 %}
  50.       {% set image = content.heroSectionImage.thumbnails['900x1360'] %}
  51.       <img class="object-cover w-full h-full"
  52.         src="{{ image }}"
  53.         alt="Contact">
  54.       {% endif %}
  55.       <div class="hidden lg:block absolute inset-0 bg-blue/30 z-10"></div>
  56.     </div>
  57.   </div>
  58. </section>