improve event-card link
This commit is contained in:
parent
ff7557361b
commit
3ee87a6f04
2 changed files with 27 additions and 20 deletions
|
|
@ -10,6 +10,10 @@
|
|||
margin-bottom: calc(var(--space-m) / 2);
|
||||
}
|
||||
|
||||
.event-card {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.event-card picture {
|
||||
margin-bottom: calc(var(--space-m) / 2);
|
||||
}
|
||||
|
|
@ -19,6 +23,7 @@
|
|||
}
|
||||
|
||||
.event-card__infos .ticket {
|
||||
z-index: 0;
|
||||
margin-top: 0.3rem;
|
||||
}
|
||||
|
||||
|
|
@ -29,3 +34,9 @@
|
|||
.event-card__infos > div:first-child {
|
||||
margin-bottom: calc(var(--space-m) / 2);
|
||||
}
|
||||
|
||||
.event-card__link::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,23 +1,19 @@
|
|||
<div class="event-card grid__item" style="--span: <?= $span ?>">
|
||||
<a href="<?= $event->url() ?>" title="Voir l'événément">
|
||||
<?php snippet('picture', ["file" => $event->gallery()->toFiles()->first()]) ?>
|
||||
</a>
|
||||
<div class="event-card__infos">
|
||||
<div>
|
||||
<a href="<?= $event->url() ?>" title="Voir l'événément">
|
||||
<h5><?= $event->title() ?></h5>
|
||||
</a>
|
||||
<?php if ($event->isMapadoEvent() == 'true'): ?>
|
||||
<?php snippet('ticket', ['link' => option('ticketingUrl') . 'event/' . $event->mapadoSlug()]) ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<div>
|
||||
<div class="event-card__authors">
|
||||
<a href="<?= $event->url() ?>" title="Voir l'événément">
|
||||
<?= $event->authors() ?>
|
||||
</a>
|
||||
</div>
|
||||
<a href="<?= $event->url() ?>" title="Voir l'événément"><p><?= $event->schedule() ?></p></a>
|
||||
</div>
|
||||
<?php snippet('picture', ["file" => $event->gallery()->toFiles()->first()]) ?>
|
||||
<div class="event-card__infos">
|
||||
<div>
|
||||
<a class="event-card__link" href="<?= $event->url() ?>" title="Voir l'événément">
|
||||
<h5><?= $event->title() ?></h5>
|
||||
</a>
|
||||
<?php if ($event->isMapadoEvent() == 'true'): ?>
|
||||
<?php snippet('ticket', ['link' => option('ticketingUrl') . 'event/' . $event->mapadoSlug()]) ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<div>
|
||||
<div class="event-card__authors">
|
||||
<?= $event->authors() ?>
|
||||
</div>
|
||||
<p><?= $event->schedule() ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue