{% import 'utility/_macros.twig' as macros %}
{% extends 'layout/_base.twig' %}
{% block head %}
{% include 'layout/_head.twig' %}
<script src="{{ asset('bundles/bazingajstranslation/js/translator.min.js') }}"></script>
<script src="{{ url('bazinga_jstranslation_js') }}"></script>
{{ macros.styleNscript('index') }}
{% endblock %}
{% block navbar include('layout/_navbar.twig') %}
{% block main %}
{{ include('headers/_index.twig') }}
<style>
.wrapper--small {
max-width:94% !important;
}
</style>
{# SECTION #}
<section class="section section--issuesthemes" id="issuesandthemes">
<div class="wrapper--small text-center">
<h2 class="heading--display semibold issuesthemes--title mb-3">{{ 'issues_and_themes'|trans }}</h2>
</div>
<div class="wrapper--small ">
<div>
<div class="issues__theme">
{% for bucket in data.buckets %}
{% set bg = asset("uploads/#{bucket.cover}") %}
<div class="card">
<div class="card-body">
<div style="background-image: url({{ bg }});height: 250px; width: 100%; background-position: center;background-size: cover;">
</div>
<div class="card-heading">{{ bucket.title|striptags|raw }}</div>
<p style="font-size: 14px;height: 70px;">{{ bucket.description|u.truncate(120, '...') }}</p>
<a class="btn btn-warning rounded-5" style="font-size: 14px;"
href="{{ path('web_bucket', { id: bucket.id }) }}">{{ 'know_more'|trans }}
<i class="fa-solid fa-arrow-right-long"></i>
</a>
</div>
</div>
{% else %}
<div class="alert alert--warning alert--100">{{ 'no_issues_and_themes_found'|trans }}</div>
{% endfor %}
</div>
</div>
</div>
</section>
<section class="section section--issuesthemes" style="background-color: #fff !important;">
<div class="wrapper--small text-center">
<h1 class="heading--display semibold header__news--head">{{ 'home.updates'|trans }}</h1>
</div>
<div class="wrapper--small ">
<div class="updates__theme">
{% for update in data.updates %}
<div>
<div class="card">
<div class="card-body">
<div style="background-image: url('./assets/images/update-img.png');height: 250px; width: 100%; background-position: center;background-size: cover;">
</div>
<p class="article--title" style="font-size: 14px;height: 100px;padding: 12px 0px;">{{ update.title|raw }}</p>
<a class="btn btn-warning rounded-5" style="font-size: 14px;" href="{{ update.link }}" target="_blank">{{ 'home.read'|trans }}
<i class="fa-solid fa-arrow-right-long"></i></a>
</div>
</div>
</div>
{% endfor %}
</div>
</section>
{{ include('/join_our_mailing.twig') }}
{% endblock %}
{% block footer include('layout/_footer.twig') %}