templates/includes/blocks/before-after.html.twig line 1
<div class="beforeafter {% if content.inverted %} beforeafter--inverted {% endif %}
{{ content.top }} {{ content.bottom }}" x-data="beforeafter">
<div class="beforeafter__header">
<div class="beforeafter__top">
<div class="beforeafter__title mobile-only {% if content.beforeAfterHeadlineFullWidth %}beforeafter__title--full {% endif %}"
x-ref="mobiletitle">
{% if content.beforeAfterSeoHeadlinePagina %}<{{ content.beforeAfterSeoHeadlinePagina }}>{% endif %}
<div class="pagina">
{% if content.beforeAfterPagina %}
{{ content.beforeAfterPagina }}
{% endif %}
</div>
{% if content.beforeAfterSeoHeadlinePagina %}</{{ content.beforeAfterSeoHeadlinePagina }}>{% endif %}
{% if content.beforeAfterTitleMobile %}
{{ content.beforeAfterTitleMobile|raw }}
{% else %}
{{ content.beforeAfterTitleDesktop|raw }}
{% endif %}
</div> {# b eforeafter__title--full #}
<div class="beforeafter__title desktop-only {% if content.beforeAfterHeadlineFullWidth %}beforeafter__title--full {% endif %}"
x-ref="title">
{% if content.beforeAfterSeoHeadlinePagina %}<{{ content.beforeAfterSeoHeadlinePagina }}>{% endif %}
<div class="pagina">
{% if content.beforeAfterPagina %}
{{ content.beforeAfterPagina }}
{% endif %}
</div>
{% if content.beforeAfterSeoHeadlinePagina %}</{{ content.beforeAfterSeoHeadlinePagina }}>{% endif %}
{{ content.beforeAfterTitleDesktop|raw }}
</div>
{% if content.beforeAfterLead %}
<div class="beforeafter__lead" x-ref="lead">
{{ content.beforeAfterLead|raw }}
</div>
{% endif %}
{% if content.beforeAfterText %}
<div class="beforeafter__text" x-ref="text">
{{ content.beforeAfterText | raw}}
</div>
{% endif %}
</div>
{% if content.beforeAfterActionLink != null %}
<div class="beforeafter__actions" x-ref="actions">
{% if content.beforeAfterButtonType == 'box' %}
<a href="{{ content.beforeAfterActionLink }}"
class="button button--{{ content.beforeAfterButtonColor }} button--size-{{ content.beforeAfterButtonSize }}">
<span class="button__inner">
{{ content.beforeAfterButtonLabel }}
</span>
</a>
{% elseif content.beforeAfterButtonType == 'text' %}
<a href="{{ content.beforeAfterActionLink }}"
class="text-button text-button--{{ content.beforeAfterTextButtonColor }}
{% if content.uppercase %} uppercase {% endif %}">
{{ content.beforeAfterButtonLabel }}
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 16 16">
<path d="M.5 8.5h15M10.5 3.5l5 5-5 5" stroke="currentColor" stroke-miterlimit="10"
stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</a>
{% endif %}
</div>
{% endif %}
</div>
<div class="beforeafter__content">
<div class="beforeafter__container">
<div class="beforeafter__bar" x-ref="bar">
<div class="beforeafter__bar-before">
{{ content.beforeAfterTitleBefore }}
</div>
<div class="beforeafter__bar-after">
{{ content.beforeAfterTitleAfter }}
</div>
</div>
<div class="beforeafter__items" x-ref="items">
{% for item in content.subblocks %}
<div class="beforeafter__before">
<div class="beforeafter__before-title">
{{content.beforeAfterTitleBefore }}
</div>
<div class="beforeafter__before-headline {% if item.beforeAfterBlockMobileTitleBefore %}desktop-only {% endif %}">
{{ item.beforeAfterBlockDesktopTitleBefore|raw }}
</div>
{% if item.beforeAfterBlockMobileTitleBefore %}
<div class="beforeafter__before-headline mobile-only">
{{ item.beforeAfterBlockMobileTitleBefore|raw }}
</div>
{% endif %}
<div class="beforeafter__before-text">
{{ item.beforeAfterBlockTextBefore|raw }}
</div>
</div>
<div class="beforeafter__after">
<div class="beforeafter__after-title">
{{ content.beforeAfterTitleAfter }}
</div>
<div class="beforeafter__after-headline {% if item.beforeAfterBlockMobileTitleAfter %}desktop-only {% endif %}">
{{ item.beforeAfterBlockDesktopTitleAfter|raw }}
</div>
{% if item.beforeAfterBlockMobileTitleAfter %}
<div class="beforeafter__after-headline mobile-only">
{{ item.beforeAfterBlockMobileTitleAfter|raw }}
</div>
{% endif %}
<div class="beforeafter__after-text">
{{ item.beforeAfterBlockTextAfter|raw }}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>