{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
{% if editmode and productCategory is not defined %}
<label>Productcategorie</label>
{{ pimcore_relation('product-category', {
classes: ['ProductCategory'],
placeholder: 'Productcategorie'
}) }}
{% else %}
<!-- Icon box -->
<section>
<div class="container grid grid-cols-12 gap-4 pt-5 md:gap-6 pb-14">
{% for property in properties %}
<div class="flex col-span-12 gap-4 md:block md:col-span-6 lg:col-span-3">
<div class="inline-block shrink-0 md:mb-5">
{# Also @see templates/product_category/archive.html.twig #}
{% if property['property_object'].getData().getIcon() is not null %}
{{ property['property_object'].getData().getIcon().getThumbnail('feature-icon').html({
pictureAttributes: {class: 'block overflow-hidden rounded-full h-8 w-8 md:h-14 md:w-14'},
imgAttributes: {class: 'w-full'},
})|raw }}
{% endif %}
</div>
<div>
{% if (brickBackgroundColor ?? pimcore_select('backgroundColor')) == 'bg-white' %}
<h3 class="mb-1 text-base md:text-lg">{{ property['property_object'].getData().getTitle() }}</h3>
<span class="text-base text-gray-800 md:text-lg">{{ property['property_value'].getData() }}</span>
{% else %}
<div class="text-base text-white md:text-lg line-clamp-3">{{ property['property_object'].getData().getDescription() }}</div>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</section>
{% endif %}
{% endblock %}
{% endembed %}