{% extends "base.html.twig" %}
{% block body %}
<section class="position-relative">
<div class="container container-publications position-relative zi-9 pab-100 pat-65">
{% include "front/menu.html.twig" with {'menu':{("menu.search"|trans):"#"}} %}
<h2 class="text-center titleh1 mab-80">{{ "searchResult.title"|trans }}</h2>
{# {{ category.title }} #}
<div class=" c-8E9094 fs-15 fw-500 mab-20">
{{ products|length }} {{ "navbar_search.products.title"|trans }}{{ products|length > 1 ? "s" }}
</div>
{% for key, product in products %}
<div class="mab-15 d-flex cg-30 align-items-center" data-link>
<div class="wuyowy pa-20">
<img src="{{ asset(vich_uploader_asset(product, 'product1File'))|imagine_filter('medium') }}"
alt="{{ product.title }}" class="wi-100"/>
</div>
<a class="c-204A9A c-9DC771-h fw-600" href="{{ getProductUrl(product) }}">
{{ product.title }}
</a>
</div>
{% endfor %}
<div class=" c-8E9094 fs-15 fw-500 mab-20 mat-40">
{{ posts|length }} {{ "navbar_search.posts.title"|trans }}{{ posts|length > 1 ? "s" }}
</div>
{% for key, post in posts %}
<div class="mab-15">
<a class="c-204A9A c-9DC771-h fw-600" href="{{ path('front_post', {'slug':post.slug}) }}">
{{ post.title }}
</a>
</div>
{% endfor %}
</div>
<img src="{{ asset('assets/img/Motif.png') }}" alt="background motif"
class="uexpmv w-100 b-0 l-0 img-fit position-absolute"/>
</section>
{% endblock %}