From 3ee87a6f04f5dd9e76ebb3bcaf94faa704dce6ab Mon Sep 17 00:00:00 2001 From: isUnknown Date: Wed, 4 Sep 2024 16:09:25 +0200 Subject: [PATCH] improve event-card link --- assets/css/src/events-grid.css | 11 +++++++++++ site/snippets/event-card.php | 36 +++++++++++++++------------------- 2 files changed, 27 insertions(+), 20 deletions(-) diff --git a/assets/css/src/events-grid.css b/assets/css/src/events-grid.css index 3641fd1..cbd70a5 100644 --- a/assets/css/src/events-grid.css +++ b/assets/css/src/events-grid.css @@ -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; +} diff --git a/site/snippets/event-card.php b/site/snippets/event-card.php index 1833cd0..799474a 100644 --- a/site/snippets/event-card.php +++ b/site/snippets/event-card.php @@ -1,23 +1,19 @@
- - $event->gallery()->toFiles()->first()]) ?> - -
-
- -
title() ?>
-
- isMapadoEvent() == 'true'): ?> - option('ticketingUrl') . 'event/' . $event->mapadoSlug()]) ?> - -
-
- -

schedule() ?>

-
+ $event->gallery()->toFiles()->first()]) ?> +
+
+ +
title() ?>
+
+ isMapadoEvent() == 'true'): ?> + option('ticketingUrl') . 'event/' . $event->mapadoSlug()]) ?> +
+
+
+ authors() ?> +
+

schedule() ?>

+
+
\ No newline at end of file