{% extends 'base.html.twig' %}
{% block body %}
{% include 'include/_title.html.twig' with {title: instrument.name} %}
<section class="container my-5">
<div class="row">
<div class="col-3">
<div class="position-sticky-top d-flex justify-content-center">
<img src="{{ instrument_dir }}/{{ instrument.picture }}"
class="img-fluid" alt="">
</div>
</div>
<div class="col-9 col-lg-6">
<h1>{{ instrument.name }}</h1>
{{ instrument.description|purify}}
</div>
<div class="col-lg-3">
<div class="position-sticky-top">
<h2 class="fs-4">Écoutez les titres enregistrés avec {{ instrument.name }}</h2>
{% include 'sound/_list-group-sounds.html.twig' %}
</div>
</div>
</div>
</section>
<section class="text-bg-light-200 py-5 mb-n5">
<div class="container">
<div class="text-center mb-5 position-relative">
<h2 class="text-center visually-hidden">{{ ('Les autres instruments de la marque ' ~ instrument.company.name )|trans }}</h2>
<img class="img-fluid d-block mx-auto mb-2" src="{{ company_dir }}/{{ instrument.company.logo }}"
alt="{{ ('logo de la marque ' ~ instrument.company.name)|trans }}" style="max-width: 200px">
<a href="{{ path('app_company_show', {'slug': instrument.company.slug}) }}"
class="stretched-link">Voir la page de la marque </a>
</div>
<div class="row g-4 justify-content-center">
{% for instrumentCompany in instrument.company.instruments|filter(instrumentcompany => instrumentcompany != instrument)|slice(0, 6) %}
<div class="col-6 col-lg-3 col-xxl-2">
<figure class="d-flex align-items-end shadow p-2 position-relative h-100 rounded-3 bg-white">
<img class="img-fluid w-25" src="{{ instrument_dir }}/{{ instrumentCompany.picture }}"
alt="">
<figcaption class="d-flex flex-column ms-2 h-100 flex-grow-1">
<h3 class="fs-5">{{ instrumentCompany.name }}</h3>
<p class="small">
{{ instrumentCompany.summary }}
</p>
<a class="btn btn-sm btn-outline-primary mt-auto stretched-link"
href="{{ path('app_instrument_show', {slug: instrumentCompany.slug}) }}">{{ 'Afficher'|trans }}</a>
</figcaption>
</figure>
</div>
{% endfor %}
</div>
</div>
</section>
{% endblock %}