{#
component: introduction
text: {
first {string}: Premier texte d'intro
second {string}: Deuxième texte d'intro
}
#}
<style>
{% if props.text.second is defined %}
{% if props.text.second is empty %}
.Introduction-first:after,
.Introduction-component:after {
display: none;
}
.SeaCourse-page .Introduction-first:after,
.SeaCourse-page .Introduction-component:after {
display: none;
}
{% endif %}
{% endif %}
</style>
{% set props = {
text: []
}|merge(props|default({})) %}
<section data-component="introduction" class="Introduction-component">
<div class="l-container">
<div
class="l-row u-center">
{# Main #}
<div
class="l-column Introduction-main">
{# First #}
{% if props.text.first is defined %}
<div class="Introduction-first">
{% include "component/wysiwyg.html.twig" with {
props: {
content: props.text.first
}
} %}
</div>
{% endif %}
{# Second #}
{% if props.text.second is defined and props.text.second is not empty %}
<div class="Introduction-second">
{% include "component/wysiwyg.html.twig" with {
props: {
content: props.text.second
}
} %}
</div>
{% endif %}
</div>
</div>
</div>
</section>