mobile responsive : home and start event

This commit is contained in:
isUnknown 2024-09-10 15:23:24 +02:00
parent e58e630f9b
commit dd04bac95e
14 changed files with 128 additions and 8 deletions

View file

@ -2,7 +2,7 @@
<a class="event-card__link" href="<?= $event->url() ?>" title="Voir l'événément"></a>
<div class="image-wrapper">
<?php if ($event->gallery()->toFiles()->count() > 1): ?>
<img class="image-cover" src="<?= $event->gallery()->toFiles()->first()->url() ?>" alt="">
<img class="image-cover" src="<?= $event->gallery()->toFiles()->first()->url() ?>" alt="">
<?php endif ?>
<?php
$file = $event->gallery()->toFiles()->count() > 1 ? $event->gallery()->toFiles()->nth(1) : $event->gallery()->toFiles()->first();