<div {{ attributes }} data-live-component-id="{{ sound.id }}">
{% if isCard %}
<div class="card {{ this.playing ? 'active' }} h-100">
<div class="card-img-wrapper">
<img src="{{ (sound_dir ~ '/' ~ sound.picture)|imagine_filter('sound_cover') }}"
class="card-img-top shadow"
alt="Couverture de l'album de {{ sound.artist.name }} - titre {{ sound.title }}">
<div class="card-img-hover">
<button class="player-btn">
{% if this.playing %}
<i class="fas fa-waveform-lines"></i>
{% else %}
<i class="fas fa-play-circle"></i>
{% endif %}
</button>
{% if app.user %}
{{ component('bookmark', {
sound: sound
}) }}
{% endif %}
</div>
</div>
<div class="card-body">
<div class="d-flex flex-column-reverse flex-sm-row justify-content-between ">
<div>
<h2 class="card-title fs-5 mb-0">{{ sound.artist.name }}</h2>
<p class="mb-0">
{{ sound.title }}
</p>
</div>
</div>
<a class="stretched-link"
data-action="live#action"
data-action-name="playSound"
data-sound-file="{{ sound.file }}"
aria-label="Écouter {{ sound.title }} de {{ sound.artist.name }}"
href="#"></a>
</div>
</div>
{% else %}
<button
class="list-group-item list-group-item-action {{ this.isPlaying ? 'active' }} list-group-player"
data-action="live#action"
data-action-name="playSound"
data-sound-file="{{ sound.file }}">
<span class="list-group-player__index">
{{ index }}
</span>
<img class="img-fluid shadow-sm"
src="{{ vich_uploader_asset(sound, 'imageFile')|imagine_filter('sound_cover_mini') }}" alt="">
{% if this.isPlaying %}
<i class="fa-regular fa-circle-play"></i>
{% endif %}
<div class="list-group-player__details">
<h3 class="list-group-player__artist">{{ sound.artist.name }}</h3>
<p class="list-group-player__title">{{ sound.title }}</p>
</div>
</button>
{% endif %}
</div>