style hero
This commit is contained in:
parent
a5ec57959d
commit
6df3927970
8 changed files with 21 additions and 6 deletions
|
|
@ -45,7 +45,7 @@
|
|||
max-height: 0;
|
||||
padding: 0 var(--margin-body);
|
||||
background-color: #fff;
|
||||
z-index: -1;
|
||||
z-index: 0;
|
||||
transition: max-height 0.3s ease-in-out;
|
||||
border-bottom: var(--border);
|
||||
}
|
||||
|
|
|
|||
3
assets/css/src/events-grid.css
Normal file
3
assets/css/src/events-grid.css
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
.events-grid {
|
||||
min-height: 30rem;
|
||||
}
|
||||
|
|
@ -1,9 +1,6 @@
|
|||
.hero {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 3fr;
|
||||
}
|
||||
|
||||
.hero__text {
|
||||
padding: 2.5rem;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
--curve-quick-slow: cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||||
|
||||
--margin-body: 3.86rem;
|
||||
--space-m: 2rem;
|
||||
|
||||
--color-pink: #ed268f;
|
||||
--color-pink-light: #ffa199;
|
||||
|
|
|
|||
|
|
@ -5,3 +5,4 @@
|
|||
@import url("src/nav.css");
|
||||
@import url("src/hero.css");
|
||||
@import url("src/calendar-strip.css");
|
||||
@import url("src/events-grid.css");
|
||||
|
|
|
|||
|
|
@ -73,10 +73,14 @@ return [
|
|||
$mapadoEvent = fetchMapadoEvent($request);
|
||||
|
||||
$duration = null;
|
||||
|
||||
$sessionsToSave = [];
|
||||
|
||||
foreach ($mapadoEvent->eventDateList as $session) {
|
||||
|
||||
$sessionMonth = substr($session->startDate, 0, 7);
|
||||
|
||||
if ($sessionMonth === $requestMonth) {
|
||||
|
||||
$day = intval(substr($session->startDate, 8, 2));
|
||||
$startTime = substr($session->startDate, 11, 5);
|
||||
$eventDateId = explode('/', $session->{'@id'});
|
||||
|
|
@ -93,9 +97,16 @@ return [
|
|||
"duration" => $duration,
|
||||
"ticketingUrl" => 'https://cdn-besancon.mapado.com/event/' . $mapadoEvent->slug . '?eventDate=' . $eventDateId
|
||||
]);
|
||||
}
|
||||
|
||||
$sessionsToSave[] = [
|
||||
"date" => substr($session->startDate, 0, 10),
|
||||
"time" => str_replace(':', 'h', $startTime)
|
||||
];
|
||||
}
|
||||
}
|
||||
$event->update([
|
||||
"sessions" => $sessionsToSave
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
1
site/snippets/events-grid.php
Normal file
1
site/snippets/events-grid.php
Normal file
|
|
@ -0,0 +1 @@
|
|||
<div class="events-grid"></div>
|
||||
|
|
@ -8,4 +8,5 @@
|
|||
</div>
|
||||
</div>
|
||||
<?php snippet('calendar-strip') ?>
|
||||
<?php snippet('events-grid') ?>
|
||||
<?php snippet('footer') ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue