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();

View file

@ -30,7 +30,7 @@
</section>
<section class="collapsable-sections">
<?php snippet('collapsable-section', ['title' => 'Prenez vos places !', 'padding' => false], slots: true) ?>
<?php snippet('collapsable-section', ['title' => 'Réserver', 'padding' => false], slots: true) ?>
<!--========== KIRBY EVENT ==========-->
<?php if ($page->isMapadoEvent() != 'true'): ?>

View file

@ -26,15 +26,15 @@
'asc'
);
snippet('events-grid', ['title' => 'À venir', 'events' => $orderedEvents->slice(0, 2), 'columns' => 2])
snippet('events-grid', ['title' => 'Prochainement', 'events' => $orderedEvents->slice(0, 2), 'columns' => 2])
?>
<?php snippet('newsletter-section') ?>
<?php snippet('events-grid', ['title' => 'À venir', 'events' => $orderedEvents->slice(2, 3)]) ?>
<?php snippet('events-grid', ['title' => 'Prochainement', 'events' => $orderedEvents->slice(2, 3)]) ?>
<section class="callout">
<h4><?= $site->callout() ?></h4>
<h4><?= $site->callout()->inline() ?></h4>
<a class="ticket-link" href="<?= option('ticketingUrl') ?>" target="_blank" title="Aller à la billetterie"><?php snippet('ticket') ?> Billetterie</a>
</section>

View file

@ -48,7 +48,7 @@
<template x-if="tab === 'Programme'">
<div class="program-content__events">
<section class="yellow">
<h2>À venir <?= $page->children()->first()->title() ?></h2>
<h2>Prochainement <?= $page->children()->first()->title() ?></h2>
</section>
<?php snippet('events-grid', ['events' => $nextEvents, 'columns' => 3]) ?>
<section class="yellow">