{% extends 'frontend/base.html.twig' %}
{% block metaTitle %}{% trans %}Tutto quello che c'è da sapere sulle Piscine - Blog Astralpool{% endtrans %}{% endblock %}
{% block metaDescription %}{% trans %}Scopri tutti gli articoli sul mondo delle piscine: dalla costruzione della piscina alla sostenibilità e domotica. Guide pratiche da scaricare{% endtrans %}.{% endblock %}
{% block body %}
{% include 'frontend/partials/_breadcrumb.html.twig' %}
<section class="space-1">
<div class="container">
<h1>
{{ pageIntroduction(constant('App\\Entity\\PageIntroduction::PAGE_BLOG')).title }}
</h1>
<div class="page-content">
{{ pageIntroduction(constant('App\\Entity\\PageIntroduction::PAGE_BLOG')).description|raw }}
</div>
<div class="row space-top-1 gx-1">
<div class="col-lg-3 col-6 mb-1">
<a href="{{ path('frontend_blog') }}" class="extra-small-section"
aria-label="{% trans %}Tutte le categorie{% endtrans %}">
<figure class="media equal-2-1">
<span style="background-image: url('{{ asset('images/blog/all-categories.jpg') }}')"></span>
</figure>
<div class="abs-text">
<span class="h3 text-center text-transform-none">{% trans %}Tutte le categorie{% endtrans %}</span>
</div>
</a>
</div>
{% for category in categories() %}
<div class="col-lg-3 col-6 mb-1">
<a href="{{ path('frontend_blog', {slug: category.slug}) }}" class="extra-small-section"
aria-label="{{ category.name }}">
<figure class="media equal-2-1">
<span style="background-image: url('{{ category.cover.publicUrl }}')"></span>
</figure>
<div class="abs-text">
<span class="h3 text-center text-transform-none">{{ category.name }}</span>
</div>
</a>
</div>
{% endfor %}
</div>
</div>
</section>
<div class="container">
<div class="border-top border-2 border-primary"></div>
</div>
<section class="space-1">
<div class="container">
<div class="row gx-1">
{% for article in pagination %}
<div class="col-lg-4 mb-1">
<div class="h-100 d-flex flex-column">
<a href="{{ path('frontend_blog_article_read', {slug: article.slug}) }}"
class="small-section" aria-label="{{ article.title }}">
<figure class="media equal-4-3">
<span style="background-image: url('{{ article.cover.publicUrl }}')"></span>
</figure>
<div class="abs-text">
<span class="h3">{{ article.title }}</span>
</div>
</a>
<div class="bg-primary pt-4 px-4 position-relative flex-grow-1">
<div class="abs-primary-overlay"></div>
<p class="text-white mb-0">
{{ article.content|block_editor_render|striptags|html_entity_decode|slice(0, 200) }}
</p>
</div>
<a href="{{ path('frontend_blog_article_read', {slug: article.slug}) }}"
aria-label="Leggi tutto"
class="btn btn-secondary w-100 text-start fw-bold text-uppercase">
Leggi tutto <i data-feather="chevron-right" style="width: 20px"></i>
</a>
</div>
</div>
{% endfor %}
</div>
<div class="mt-3 d-flex w-100 justify-content-center">
{{ knp_pagination_render(pagination) }}
</div>
</div>
</section>
{% endblock %}