{#
component: service contact
heading: [{
title {string}: Titre
titleAnnex {string}: Titre annexe
}]
text {string}: (WYSIWYG) Texte
link: {
text {string}: Texte du lien
to {string}: Lien
}
#}
{% set props = {
heading: null,
text: null,
link: null
}|merge(props|default({})) %}
<section
data-component="service-contact" class="ServiceContact-component">
{# Background image #}
<div class="ServiceContact-backgroundImage backgroundPatternWaves">
{% include "component/waves.html.twig" with {
props: {
speed:0.1,
shape:{
src:asset('build/images/pattern.jpg'),
backgroundcolor:false
}
}
} %}
</div>
<div class="l-container">
<div
class="l-row u-center">
{# Main #}
<div
class="l-column ServiceContact-main">
{# Heading #}
{% include "component/heading.html.twig" with {
props: props.heading
} %}
{# Text #}
<div class="ServiceContact-wysiwyg">
{% include "component/wysiwyg.html.twig" with {
props: {
content: props.text
}
} %}
</div>
{# Link #}
{% if props.link %}
<div class="ServiceContact-link">
{% include "component/button.html.twig" with {
props: props.link
} %}
</div>
{% endif %}
</div>
</div>
</div>
</section>