templates/component/service_contact.html.twig line 1

Open in your IDE?
  1. {#
  2.     component: service contact
  3.     heading: [{
  4.         title {string}: Titre 
  5.         titleAnnex {string}: Titre annexe
  6.     }]
  7.     text {string}: (WYSIWYG) Texte
  8.     link: {
  9.         text {string}: Texte du lien
  10.         to {string}: Lien
  11.     }
  12. #}
  13. {% set props = {
  14.   heading: null,
  15.   text: null,
  16.   link: null
  17. }|merge(props|default({}))  %}
  18. <section
  19.     data-component="service-contact" class="ServiceContact-component">
  20.     {# Background image #}
  21.     <div class="ServiceContact-backgroundImage backgroundPatternWaves">
  22.         {% include "component/waves.html.twig"  with {
  23.                 props: {
  24.                     speed:0.1,
  25.                     shape:{
  26.                         src:asset('build/images/pattern.jpg'),
  27.                         backgroundcolor:false
  28.                     }
  29.                 }
  30.         } %}
  31.     </div>
  32.     <div class="l-container">
  33.         <div
  34.             class="l-row u-center">
  35.             {# Main #}
  36.             <div
  37.                 class="l-column ServiceContact-main">
  38.                 {# Heading #}
  39.                 {% include "component/heading.html.twig" with {
  40.                     props: props.heading
  41.                 } %}
  42.                 {# Text #}
  43.                 <div class="ServiceContact-wysiwyg">
  44.                     {% include "component/wysiwyg.html.twig" with {
  45.                         props: {
  46.                         content: props.text
  47.                         }
  48.                     } %}
  49.                 </div>
  50.                 {# Link #}
  51.                 {% if props.link %}
  52.                     <div class="ServiceContact-link">
  53.                         {% include "component/button.html.twig" with {
  54.                             props: props.link
  55.                         } %}
  56.                     </div>
  57.                 {% endif %}
  58.             </div>
  59.         </div>
  60.     </div>
  61. </section>