{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
{% set textColor = brickBackgroundColor is not defined or brickBackgroundColor == 'bg-white' or brickBackgroundColor == 'bg-blue-200' ? 'text-black' : 'text-white' %}
<section class="container unique-selling-point-brick {{ textColor }} {{ sectionPadding is defined ? sectionPadding : 'py-10 md:py-20' }}">
<div class="grid grid-cols-12 md:gap-6 ">
<div class="col-span-12 md:col-span-6">
<h2 class="mb-4 text-2xl md:text-3xl lg:text-4xl">
{% include 'areas/unique-selling-point-brick/partials/_title.html.twig' %}
</h2>
</div>
{% if hideWysiwyg is not defined or hideWysiwyg is false %}
<div class="col-span-12 mb-4 md:col-span-6 md:mb-6">
{% include 'includes/partials/_wysiwyg.html.twig' with {
'fieldName': textFieldName ?? "text-bold-align-left-text",
'defaultWysiwyg': textDefaultInput ?? null,
'defaultWysiwygInfo' : textDefaultInput ?? "Vul Tekst in" } %}
</div>
{% endif %}
</div>
{% include 'areas/unique-selling-point-brick/partials/edit/_usps-iterator-notice.html.twig' %}
{% set uspsBlock = pimcore_block('usps', {manual: true}) %}
{% do uspsBlock.start() %}
<div class="grid grid-cols-12 gap-6 pt-5 md:pt-10">
{% for i in uspsBlock.iterator %}
{% do uspsBlock.blockConstruct() %}
<div class="flex col-span-12 gap-4 text-left md:col-span-6 border-blue
{{ align is defined and align is same as('left') ? '' : 'md:block' }}
{{ columns is defined and columns is same as(3) ? 'lg:col-span-4' : 'lg:col-span-3' }}
">
{% do uspsBlock.blockStart() %}
<div>
<div class="inline-block mb-4 md:mb-5">
{{ pimcore_image("image", {
"title": "Sleep een afbeelding hierheen.",
'thumbnail': 'default',
'pictureAttributes': {class: 'w-8 h-8 md:h-14 md:w-14 mx-auto block'}
}
) }}
</div>
</div>
<div>
{% if editmode %}
<h3>{{ pimcore_input('title', {'placeholder': "Unique Selling Point titel"}) }}</h3>
{% endif %}
{% if not editmode and pimcore_input('title') is not empty %}
<h3 class="mb-0 text-lg font-bold lg:mb-1 md:text-xl">{{ renderOrDefault(pimcore_input('title'),defaultTitle ?? "") }}</h3>
{% endif %}
<span class="{{ textColor === 'text-black' ? 'text-gray-800' : textColor }}">
{{ pimcore_wysiwyg('content', {'placeholder': "Unique Selling Point content"}) }}
</span>
</div>
{% do uspsBlock.blockEnd() %}
</div>
{% do uspsBlock.blockDestruct() %}
{% endfor %}
</div>
{% do uspsBlock.end() %}
</section>
{% include 'areas/unique-selling-point-brick/partials/edit/_edit-styling.html.twig' %}
{% endblock %}
{% endembed %}