show cover image in slider when it's the only image
This commit is contained in:
parent
b6a3900ee2
commit
14930738e4
5 changed files with 11 additions and 17 deletions
|
|
@ -55,10 +55,6 @@
|
|||
margin-right: 2rem;
|
||||
}
|
||||
|
||||
.hero__link:hover {
|
||||
color: var(--color-season);
|
||||
}
|
||||
|
||||
.hero__image {
|
||||
height: calc(100vh - var(--empty-space) - 2 * var(--padding-vertical));
|
||||
}
|
||||
|
|
|
|||
4
assets/dist/style.css
vendored
4
assets/dist/style.css
vendored
|
|
@ -828,10 +828,6 @@ button:focus-visible {
|
|||
margin-right: 2rem;
|
||||
}
|
||||
|
||||
.hero__link:hover {
|
||||
color: var(--color-season);
|
||||
}
|
||||
|
||||
.hero__image {
|
||||
height: calc(100vh - var(--empty-space) - 2 * var(--padding-vertical));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,12 +6,6 @@
|
|||
<span>Théâtre</span>
|
||||
<span>Besançon</span>
|
||||
</h1>
|
||||
<div>
|
||||
<p class="no-margin">
|
||||
Centre dramatique national<br>
|
||||
Direction Tommy Milliot
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
x-data="{
|
||||
|
|
@ -58,6 +52,12 @@
|
|||
</div>
|
||||
|
||||
<div class="main-footer__socials">
|
||||
<div>
|
||||
<p>
|
||||
Centre dramatique national<br>
|
||||
Direction Tommy Milliot
|
||||
</p>
|
||||
</div>
|
||||
<p><strong>Suivez nous</strong></p>
|
||||
<ul class="social-icons">
|
||||
<li>
|
||||
|
|
@ -73,7 +73,7 @@
|
|||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<a href="<?= page('informations')->url() ?>">Contacts et Mentions légales</a>
|
||||
<a href="<?= page('informations')->url() ?>">Contacts mentions légales</a>
|
||||
</div>
|
||||
</footer>
|
||||
<?php snippet('seo/schemas'); ?>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<meta name="robots" content="noindex,nofollow">
|
||||
|
||||
<!-- Alpine -->
|
||||
<script async src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
|
||||
<!-- Calendar -->
|
||||
<?php if ($page->isHomePage() || $page->template() == 'event' || $page->template() == 'program'): ?>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@
|
|||
<section class="presentation">
|
||||
<div id="swiper" style="--span: 8; --color: <?= $page->color()->isNotEmpty() ? $page->color() : 'var(--color-season)' ?>">
|
||||
<div class="swiper-wrapper">
|
||||
<?php foreach($page->gallery()->toFiles()->without($page->gallery()->toFiles()->first()) as $slide): ?>
|
||||
<?php
|
||||
$images = $page->gallery()->toFiles()->count() > 1 ? $page->gallery()->toFiles()->without($page->gallery()->toFiles()->first()) : $page->gallery()->toFiles();
|
||||
foreach($images as $slide): ?>
|
||||
<div class="swiper-slide">
|
||||
<?php snippet('picture', ['file' => $slide]) ?>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue