{#
component: large image text
heading: [{
title {string}: Titre
titleAnnex {string}: Titre annexe (au dessus du titre)
}]
text {string}: Texte
image {image}: Image
size: {
width: "1320",
height: "650"
}
links: [{
text {string}: Texte du lien
to {string}: Lien
}]
#}
{% set props = {
heading: null,
text: null,
image: null,
links: null
}|merge(props|default({})) %}
<section
data-component="large-image-text" class="LargeImageText-component">
{# Image #}
<div class="LargeImageText-image-container">
<div class="LargeImageText-image" ref="images">
{% include "component/image.html.twig" with {
props: props.image
} %}
{# {% include "component/picture.html.twig" with {
props: props.image|merge({
srcWebp: (props.image.src) ? asset(props.image.src | imagine_filter('convert_img_to_webp')) : ''
})
} %} #}
</div>
</div>
<div class="l-container">
<div class="l-row LargeImageText-row u-v-center u-end">
<div
class="l-column LargeImageText-main">
{# Heading #}
{% include "component/heading.html.twig" with {
props: props.heading
} %}
{# Text #}
<div class="LargeImageText-text">
{% include "component/wysiwyg.html.twig" with {
props: {
content: props.text
}
} %}
</div>
{% if props.links %}
{# Links #}
<div class="LargeImageText-links">
{% for link in props.links %}
{% include "component/button.html.twig" with {
props: link
} %}
{% endfor %}
</div>
{% endif %}
</div>
</div>
</div>
</section>