{#
component: large image heading
heading: [{
title {string}: Titre
titleAnnex {string}: Titre annexe
}]
subtitle {string}: Sous-titre après le heading
content {string}: Text après l'image
image {image}: Image du contenu
size: {
width: "1200",
height: "480"
}
link: [{
text {string}: Texte du lien
to {string}: Lien
}]
#}
{% set props = {
heading: null,
image:null,
subtitle:null,
content:null,
link:null
}|merge(props|default({})) %}
<section data-component="large-image-heading" class="LargeImageHeading-component">
<div class="l-container">
<div
class="l-row">
{# Main #}
<div
class="l-column LargeImageHeading-main">
{# Background image #}
<div class="LargeImageHeading-backgroundImage {% if props.subtitle %}has-Subtitle {% endif %} ">
{% 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>
{# Subtitle #}
{% if props.subtitle is defined %}
<div class="LargeImageHeading-subtitle-container">
<p class="LargeImageHeading-subtitle">{{ props.subtitle }}</p>
</div>
{% endif %}
</div>
</div>
<div
class="l-row LargeImageHeading-contentRow">
{# Content #}
<div
class="l-column LargeImageHeading-content">
{# Heading #}
{% include "component/heading.html.twig" with {
props: props.heading
} %}
</div>
</div>
{% if props.content %}
<div class="l-row LargeImageHeading-textAttachedRow">
{% include "component/wysiwyg.html.twig" with {
props: {
content: props.content
}
} %}
</div>
{% if props.link %}
<div class="l-row LargeImageHeading-button">
{% include "component/button.html.twig" with {
props: props.link
} %}
</div>
{% endif %}
{% endif %}
</div>
</section>