templates/includes/blocks/hero.html.twig line 1
{% if content.heroImageWidth == "" %}
{% set heroImageWidth = "50" %}
{% else %}
{% set heroImageWidth = content.heroImageWidth %}
{% endif %}
{% if content.heroTextWidth == "" %}
{% set heroTextWidth = "50" %}
{% else %}
{% set heroTextWidth = content.heroTextWidth %}
{% endif %}
{% if content.heroVerticalOffset == "" %}
{% set heroVerticalOffset = "0" %}
{% else %}
{% set heroVerticalOffset = content.heroVerticalOffset %}
{% endif %}
<div class="hero pt-hero-small {% if content.inverted %} hero--inverted {% endif %}" x-data="hero"
style="--hero-text-width: {{ heroTextWidth }}%; --hero-image-width: {{ heroImageWidth }}%; --hero-image-offset: -{{ content.heroImageOffset }}%; --hero-image-vertical-anchor: {{ content.heroImageVerticalAnchor }}; --hero-image-vertical-offset: {{ heroVerticalOffset }}% ">
<div class="hero__container">
<div class="hero__title" x-ref="title">
{% if content.heroPagina %}
{% if content.heroSeoHeadlinePagina %}<{{ content.heroSeoHeadlinePagina }}>{% endif %}
<div {% if content.inverted %} style="color: #fff;" {% endif %} class="pagina">
{{ content.heroPagina }}
</div>
{% if content.heroSeoHeadlinePagina %}</{{ content.heroSeoHeadlinePagina }}>{% endif %}
{% endif %}
<{{ content.heroSeoHeadlineTitle ? content.heroSeoHeadlineTitle : 'h1' }} {% if content.heroTitleMobile %}class="desktop-only" {% endif %}>
{{ content.title|raw }}
</{{ content.heroSeoHeadlineTitle ? content.heroSeoHeadlineTitle : 'h1' }}>
</div>
{% if content.heroTitleMobile %}
<{{ content.heroSeoHeadlineTitle ? content.heroSeoHeadlineTitle : 'h1' }} class="hero__title mobile-only" x-ref="mobiletitle">
{{ content.heroTitleMobile|raw }}
</{{ content.heroSeoHeadlineTitle ? content.heroSeoHeadlineTitle : 'h1' }}>
{% endif %}
<{{ content.heroSeoHeadlineText ? content.heroSeoHeadlineText : 'div' }} class="hero__text" x-ref="text">
{{ content.text|raw }}
</{{ content.heroSeoHeadlineText ? content.heroSeoHeadlineText : 'div' }}>
{% if content.heroActionLink != null %}
<div class="hero__actions" x-ref="actions">
{% if content.heroButtonType == 'box' %}
<a href="{{ content.heroActionLink }}"
class="button button--{{ content.heroButtonColor }} button--size-{{ content.heroButtonSize }}">
<span class="button__inner">
{{ content.heroButtonLabel }}
</span>
</a>
{% elseif content.heroButtonType == 'text' %}
<a href="{{ content.heroActionLink }}"
class="text-button text-button--{{ content.heroTextButtonColor }} {% if content.uppercase %} uppercase {% endif %}">
{{ content.heroButtonLabel }}
<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 %}
{% if content.image %}
<div class="hero__media">
<img class="hero__image" src ="{{ content.image|thumbnailUrl('2880x') }}"
srcset ="{{ content.image|thumbnailUrl('320x') }} 320w, {{ content.image|thumbnailUrl('640x') }} 640w, {{ content.image|thumbnailUrl('720x') }} 720w, {{ content.image|thumbnailUrl('1280x') }} 1280w, {{ content.image|thumbnailUrl('1440x') }} 1440w, {{ content.image|thumbnailUrl('2048x') }} 2048w"
alt="{{ content.heroImageALT|default(content.image.description|striptags) }}" x-ref="image" sizes="(min-width: 1440px) 720px, (min-width: 768px) 50vw, 100vw">
</div>
{% endif %}
<div class="hero__arrow" x-ref="arrow">
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 50 25">
<path fill-rule="evenodd" clip-rule="evenodd" d="M25 25L50 0H25v25z" fill="#00F"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M25 0H0l25 25V0z" fill="#FF73F5"/>
</svg>
</div>
</div>
</div>