templates/includes/blocks/about-hero.html.twig line 1
{% if content.aboutHeroImageWidth == "" %}
{% set aboutHeroImageWidth = "50" %}
{% else %}
{% set aboutHeroImageWidth = content.aboutHeroImageWidth %}
{% endif %}
{% if content.aboutHeroTextWidth == "" %}
{% set aboutHeroTextWidth = "50" %}
{% else %}
{% set aboutHeroTextWidth = content.aboutHeroTextWidth %}
{% endif %}
{% if content.aboutHeroVerticalOffset == "" %}
{% set aboutHeroVerticalOffset = "0" %}
{% else %}
{% set aboutHeroVerticalOffset = content.aboutHeroVerticalOffset %}
{% endif %}
{% if content.aboutHeroLinkedItem == 'aboutHeroModal' or content.aboutHeroLinkedItem == 'aboutHeroModalCalendly' %}
<div class="modal" :class="{'modal--show': show}" x-data="modal">
{% endif %}
<div class="about-hero about-hero--{% if content.inverted %}inverted {% else %}default{% endif %}" x-data="abouthero"
style="--hero-text-width: {{ aboutHeroTextWidth }}%; --hero-image-width: {{ aboutHeroImageWidth }}%; --hero-image-offset: -{{ content.aboutHeroImageOffset }}%; --hero-image-vertical-anchor: {{ content.aboutHeroImageVerticalAnchor }}; --hero-image-vertical-offset: {{ aboutHeroVerticalOffset }}%">
<div class="about-hero__container pt-hero">
<svg class="about-hero__background" fill="none" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 930 860"
x-ref="background">
<path d="M2650.26 1587.1L484.51-576.938M484.948 1361.22l-.439-1938.156M484.948 1361.22l484.51-1808.214M-.3 1232.4L1529.44-296.948M2957.6 440.075L0 1231.28M969.457-446.995L0 1231.28M969.458-446.994L484.948 1361.22M484.802-578.029L1044.93 1511.27M393.639-247.165L2559.7 1917.15M87.73 899.852l2956.48-790.917"
stroke="currentColor" stroke-miterlimit="10"/>
</svg>
<div class="about-hero__content">
{% if content.aboutHeroPagina %}
{% if content.aboutHeroSeoHeadlinePagina %}<{{ content.aboutHeroSeoHeadlinePagina }}>{% endif %}
<div class="pagina"{% if content.inverted %} style="color: #fff;" {% endif %}>
{{ content.aboutHeroPagina }}
</div>
{% if content.aboutHeroSeoHeadlinePagina %}</{{ content.aboutHeroSeoHeadlinePagina }}>{% endif %}
{% endif %}
<{{ content.aboutHeroSeoHeadlineTitle ? content.aboutHeroSeoHeadlineTitle : 'h1' }} class="about-hero__title {% if content.aboutHeroTitleMobile %}desktop-only {% endif %}" x-ref="title">
{{ content.title|raw }}
</{{ content.aboutHeroSeoHeadlineTitle ? content.aboutHeroSeoHeadlineTitle : 'h1' }}>
{% if content.aboutHeroTitleMobile %}
<{{ content.aboutHeroSeoHeadlineTitle ? content.aboutHeroSeoHeadlineTitle : 'h1' }} class="about-hero__title mobile-only" x-ref="mobiletitle">
{{ content.aboutHeroTitleMobile|raw }}
</{{ content.aboutHeroSeoHeadlineTitle ? content.aboutHeroSeoHeadlineTitle : 'h1' }}>
{% endif %}
<{{ content.aboutHeroSeoHeadlineText ? content.aboutHeroSeoHeadlineText : 'div' }} class="about-hero__text" x-ref="text">
{{ content.text|raw }}
</{{ content.aboutHeroSeoHeadlineText ? content.aboutHeroSeoHeadlineText : 'div' }}>
{% if content.image %}
<div class="about-hero__media">
<img class="about-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.aboutHeroImageALT|default(content.image.description|striptags) }}"
x-ref="image"
sizes="(min-width: 1440px) 720px, (min-width: 768px) 50vw, 100vw">
</div>
{% endif %}
{% if content.aboutHeroLinkedItem == 'aboutHeroModal' or content.aboutHeroLinkedItem == 'aboutHeroModalCalendly' %}
<div class="about-hero__actions" x-ref="actions">
{% if content.aboutHeroButtonType == 'box' %}
<button @click="open"
class="button button--{{ content.aboutHeroButtonColor }}
button--size-{{ content.aboutHeroButtonSize }}">
<span class="button__inner">
{{ content.aboutHeroButtonLabel }}
</span>
</button>
{% elseif content.aboutHeroButtonType == 'text' %}
<button @click="open"
class="text-button text-button--{{ content.aboutHeroTextButtonColor }}
{% if content.uppercase %} uppercase {% endif %}">
{{ content.aboutHeroButtonLabel }}
<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>
</button>
{% endif %}
</div>
{% elseif content.aboutHeroActionLink != null %}
<div class="about-hero__actions" x-ref="actions">
{% if content.aboutHeroButtonType == 'box' %}
<a href="{{ content.aboutHeroActionLink }}"
class="button button--{{ content.aboutHeroButtonColor }}
button--size-{{ content.aboutHeroButtonSize }}">
<span class="button__inner">
{{ content.aboutHeroButtonLabel }}
</span>
</a>
{% elseif content.aboutHeroButtonType == 'text' %}
<a href="{{ content.aboutHeroActionLink }}"
class="text-button text-button--{{ content.aboutHeroTextButtonColor }}
{% if content.uppercase %} uppercase {% endif %}">
{{ content.aboutHeroButtonLabel }}
<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 class="about-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>
</div>
{% if content.aboutHeroLinkedItem == 'aboutHeroModal' %}
{% if content.aboutHeroDownloadFormBlock %}
{% include('/includes/blocks/' ~ content.aboutHeroDownloadFormBlock.type ~ '.html.twig') with { content: content.aboutHeroDownloadFormBlock, view: view.aboutHeroDownloadFormBlock } %}
{% endif %}
{% endif %}
{% if content.aboutHeroLinkedItem == 'aboutHeroModalCalendly' %}
{% if content.aboutHeroCalendlyFormBlock %}
{% include('/includes/blocks/' ~ content.aboutHeroCalendlyFormBlock.type ~ '.html.twig') with { content: content.aboutHeroCalendlyFormBlock, view: view.aboutHeroCalendlyFormBlock } %}
{% endif %}
{% endif %}
{% if content.aboutHeroLinkedItem == 'aboutHeroModal' or content.aboutHeroLinkedItem == 'aboutHeroModalCalendly' %}
</div>
{% endif %}