{% set style = style ?? pimcore_select('style').getData() %}
{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
{% if style == 'normal' %}
<!-- Contact Full Width -->
<section class="{{ defaultBackgroundColor ?? null }} relative">
<div class="{{ containerClasses ?? 'container relative py-10 md:py-20 z-20' }}">
<div class="{{ elementClasses ?? '' }} relative flex flex-col lg:flex-row gap-6 p-6 md:p-10 text-white bg-blue-300 rounded-md">
<div>
{{ pimcore_image('image', {
thumbnail: 'text-and-link-icon',
width: 52,
height: 52,
imgAttributes: {class: 'rounded-full'},
pictureAttributes: {class: 'w-full'},
}) }}
</div>
<div class="grow">
<span class="block mb-2 text-xl font-bold md:leading-5 md:text-lg ">
{{ pimcore_input('title', { placeholder: 'Titel' }) }}
</span>
<span class="text-base">
{{ pimcore_input('subtitle', { placeholder: 'Subtitel' }) }}
</span>
</div>
<div class="flex flex-col items-center lg:flex-row justify-top d">
{{ pimcore_link('main-link', { class: 'button button__primary' }) }}
{{ pimcore_link('secondary-link', {
class: 'button button__secondary button__secondary--white group ',
textSuffix: '<span class="flex items-center justify-center w-6 h-6 ml-3 transition-all bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white"><svg class="h-3.5 w-3.5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="currentColor" d="m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z"/></svg></span>'
}) }}
</div>
</div>
</div>
</section>
{% elseif style == 'small' %}
{{ pimcore_inc(document.getProperty('contactCardSnippet')) }}
{% elseif style == 'full-width-thin' %}
{% set showAsUrgent = pimcore_checkbox('showAsUrgent').data %}
<!-- Quick Contact -->
<section class="text-base leading-tight text-white bg-green">
<div class="container flex items-center mx-auto {{ editmode ? 'flex-row' : 'gap-2 justify-between' }}">
<span class="inline-flex items-center shrink-0">
{{ pimcore_image('image', {
thumbnail: 'text-and-link-icon',
width: 32,
height: 32,
imgAttributes: {class: 'rounded-full w-8 h-8'},
pictureAttributes: {class: 'hidden sm:inline-block mr-3 my-2 flex-auto shrink-0'},
}) }}
<div class="flex flex-row items-center gap-1 my-4">
<strong>{{ pimcore_input('title', { placeholder: 'Titel' }) }}</strong>
<span class="{{ editmode ? '' : 'hidden lg:inline' }}">{{ pimcore_input('subtitle', { placeholder: 'Subtitel' }) }}</span>
</div>
</span>
{% if showAsUrgent is defined and pimcore_checkbox('showAsUrgent').data %}
{% set textSuffix = '<span class="flex items-center justify-center w-6 h-6 ml-3 transition-all bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white"><svg class="h-3.5 w-3.5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill="currentColor" fill-rule="evenodd" d="m13.47 9.12-2.8-.7a.703.703 0 0 0-.752.292L8.126 11.4A11.959 11.959 0 0 1 2.6 5.874l2.688-1.792a.7.7 0 0 0 .291-.752l-.7-2.8A.7.7 0 0 0 4.2 0H.7a.7.7 0 0 0-.7.7C.01 8.042 5.958 13.99 13.3 14a.7.7 0 0 0 .7-.7V9.8a.7.7 0 0 0-.53-.68Z"/></svg></span>' %}
{% else %}
{% set textSuffix = '<span class="flex items-center justify-center w-6 h-6 ml-3 transition-all bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white"><svg class="w-2.5 h-2.5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="currentColor" d="m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z"/></svg></span>' %}
{% endif %}
{{ pimcore_link('secondary-link', {
class: 'button button__secondary button__secondary--white !w-auto !px-0 !justify-end group ',
textSuffix: textSuffix,
}) }}
</div>
</section>
{% if editmode %}
<label>
{{ pimcore_checkbox('showAsUrgent', { reload: true }) }}
<span>Show telephone icon after link.</span>
</label>
{% endif %}
{% elseif style == 'full-width-thick' %}
<!-- Sticky CTA -->
<section class="container flex flex-col items-center justify-between py-4 lg:flex-row">
<h2 class="mb-4 text-3xl leading-8 grow lg:mb-0">
<span class="text-blue">{{ pimcore_input('title', { placeholder: 'Titel' }) }}</span> {{ pimcore_input('subtitle', { placeholder: 'Subtitel' }) }}
</h2>
<div class="flex flex-col lg:flex-row">
{{ pimcore_link('main-link', { class: 'button button__primary' }) }}
{{ pimcore_link('secondary-link', {
class: 'button button__secondary group',
textSuffix: '<span class="flex items-center justify-center w-6 h-6 ml-3 transition-all bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white"><svg class="h-3.5 w-3.5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="currentColor" d="m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z"/></svg></span>'
}) }}
</div>
</section>
{% endif %}
{% endblock %}
{% endembed %}