diff --git a/assets/css/src/events-grid.css b/assets/css/src/events-grid.css index ab39424..b211c59 100644 --- a/assets/css/src/events-grid.css +++ b/assets/css/src/events-grid.css @@ -10,14 +10,22 @@ margin-bottom: calc(var(--space-m) / 2); } +.event-card__infos h5 { + max-width: 95%; +} + +.event-card__infos .ticket { + margin-top: 0.3rem; +} + .event-card__infos > div { - display: grid; - grid-template-columns: repeat(2, 1fr); + display: flex; + justify-content: space-between; } .event-card__infos > div:first-child { margin-bottom: calc(var(--space-m) / 2); } .event-card__infos > div > *:not(h5):last-child { - place-self: end; + /* place-self: end; */ } diff --git a/assets/css/src/generic.css b/assets/css/src/generic.css index 5d8667b..0932752 100644 --- a/assets/css/src/generic.css +++ b/assets/css/src/generic.css @@ -5,6 +5,7 @@ body.progress * { .grid { --column-gap: calc(var(--space-m) * 1.5); --row-gap: calc(var(--space-m) / 2); + --row-length: calc(12 / var(--span)); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--column-gap); @@ -16,8 +17,11 @@ body.progress * { } .grid__item picture { - --white-space: calc(var(--column-gap) + var(--space-m) * 2); - --width: calc((100vw - var(--white-space)) / 2); + --column-gap-nbr: var(--row-length) - 1; + --white-space: calc( + (var(--column-gap) * var(--column-gap-nbr)) + var(--space-m) * 2 + ); + --width: calc((100vw - var(--white-space)) / var(--row-length)); height: calc(var(--width) / 1.4); } @@ -59,6 +63,10 @@ body.progress * { } } +.ticket { + display: inline-flex; +} + .ticket:hover svg { animation: vibrate 0.5s forwards; } diff --git a/site/blueprints/pages/event.yml b/site/blueprints/pages/event.yml index 7706995..0f43859 100644 --- a/site/blueprints/pages/event.yml +++ b/site/blueprints/pages/event.yml @@ -35,6 +35,7 @@ tabs: width: 1/2 placeholder: 1h20 disabled: true + help: Nécessite **qu'une séance au moins ait une heure de fin** sur Mapado. when: isMapadoEvent: true - width: 1/2 diff --git a/site/snippets/event-card.php b/site/snippets/event-card.php index 6caebd9..54c1726 100644 --- a/site/snippets/event-card.php +++ b/site/snippets/event-card.php @@ -1,17 +1,23 @@
- + $event->gallery()->toFiles()->first()]) ?> +
-
title() ?>
+ +
title() ?>
+
isMapadoEvent() == 'true'): ?> 'https://cdn-besancon.mapado.com/event/' . $event->mapadoSlug()]) ?>
-
authors() ?>
-

schedule() ?>

+ +

schedule() ?>

-
\ No newline at end of file diff --git a/site/templates/home.php b/site/templates/home.php index 1741878..1fccca1 100644 --- a/site/templates/home.php +++ b/site/templates/home.php @@ -23,9 +23,11 @@ 'asc' ); - snippet('events-grid', ['events' => $orderedEvents->limit(2)]) + snippet('events-grid', ['events' => $orderedEvents->slice(0, 2)]) ?> + $orderedEvents->slice(2, 5)]) ?> + \ No newline at end of file