templates/includes/blocks/getInTouchSection.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. {% set sectionClass =  'pt-8 lg:pt-[120px] pb-10 lg:pb-32' %}
  4. <section section-shade="light" class="get-in-touch-section pt-8 lg:pt-[120px] pb-10 lg:pb-32 bg-white text-blue">
  5.   <div class="big-container flex flex-col xl:flex-row justify-between">
  6.     <div class="sm:w-1/2 xl:w-3/12 xl:max-w-[305px]">
  7.       <h2 class="h2"
  8.         split-direction="top"
  9.         split-trigger="scroll">{{content.getInTouchSectionTitle|raw}}</h2>
  10.       <div class="text-sm sm:text-lg xl:text-sm mt-4 xl:mt-8"
  11.         fade
  12.         fade-trigger="scroll">{{content.getInTouchSectionDescription|raw}}</div>
  13.     </div>
  14.     <div fade="" fade-trigger="scroll" class="mt-8 xl:w-8/12 xl:max-w-[864px]" style="translate: none; rotate: none; scale: none; transform: translate(0px, 0px); opacity: 1;">
  15.       <div id="form-wrapp">
  16.       {% set action_url = '/mail/send' %}
  17.  
  18.         <form action="{{ action_url }}" method="post" class="grid sm:grid-cols-2 gap-8">
  19.                         {% for message in app.flashes('error') %}
  20.                             <div style="color:red;text-align:center;">
  21.                                 {{ message }}
  22.                             </div>
  23.                         {% endfor %}
  24.                         {% if app.flashes('sucess')|length == 0 %}
  25.                             {{ include('pages/blocks/sub-blocks/project-form.html.twig', {
  26.  
  27.                                 path : path('mail_send'),
  28.                                 snippets : content.snippets,
  29.                                 method : 'POST',
  30.                             }) }}
  31.                         {% else %}
  32.                             <div class='text-center'  style="margin-top: 60px;">
  33.                                 {% if content.snippets %}
  34.                                     {{content.snippets[0].submition_message|raw}}
  35.                                 {% endif %}
  36.                             </div>
  37.                         {% endif %}
  38.         </form>
  39.         
  40.       </div>
  41.     </div>
  42.   </div>
  43. </section>