34 lines
No EOL
1.1 KiB
PHP
34 lines
No EOL
1.1 KiB
PHP
<?php snippet('head') ?>
|
|
<?php snippet('header') ?>
|
|
|
|
<div class="events-grid-container">
|
|
<ul class="view-buttons">
|
|
<li><button class="filter active" data-target="all">Tous les spectacles</button></li>
|
|
<li><button class="filter" data-target="live">En tournée</button></li>
|
|
</ul>
|
|
<ul class="events-grid">
|
|
<?php foreach ($page->children() as $event): ?>
|
|
<li
|
|
class="event-card"
|
|
data-live="<?= $event->isLive()->toBool() ? 'true' : 'false' ?>"
|
|
<?= e($event->indexOf($page->children()) > 6, ' loading="lazy"') ?>
|
|
>
|
|
<a href="<?= $event->url() ?>">
|
|
<h2><?= $event->title() ?></h2>
|
|
<div class="cover-wrapper">
|
|
<div class="hover-glow"></div>
|
|
<?php snippet('picture', [
|
|
'file' => $event->cover()->toFile(),
|
|
'srcsetName' => 'event-card',
|
|
'sizes' => '(min-width: 800px) 30vw, 100vw',
|
|
'alt' => $event->title()->value(),
|
|
]) ?>
|
|
</div>
|
|
</a>
|
|
</li>
|
|
<?php endforeach ?>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
<?php snippet('footer') ?>
|