Pfeile in der Index-Bildgalerie hinzufügen + Textanpassung bei Eventerstellung

This commit is contained in:
Ysabelle Moser 2026-04-30 09:01:02 +02:00
parent 5a8d958fa8
commit cb53b91afa
3 changed files with 45 additions and 28 deletions

View File

@ -209,14 +209,21 @@
}
.gallery__carousel {
position: relative;
display: grid;
grid-template-columns: 42px minmax(0, 1fr) 42px;
align-items: center;
column-gap: 10px;
margin-bottom: 30px;
}
.gallery__viewport {
overflow: hidden;
}
.gallery__track {
display: flex;
gap: 20px;
margin-bottom: 30px;
margin-bottom: 0;
}
.gallery__item {
@ -284,39 +291,37 @@
}
.gallery__arrow {
position: absolute;
display: grid;
top: 45%;
width: 44px;
height: 44px;
border: 1.5px solid var(--butter-light);
background: var(--butter-light);
border-radius: var(--radius-lg);
width: 34px;
height: 34px;
border: 0;
background: #c8cb63;
border-radius: 999px;
font-family: var(--font-main);
display: none;
font-weight: 400;
font-size: 1.25rem;
font-size: 1.45rem;
place-items: center;
z-index: 2;
color: var(--olive);
color: var(--olive-dark);
cursor: pointer;
text-decoration: none;
transition: background-color 0.2s ease, border-color 0.2s ease;
transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.gallery__arrow:hover,
.gallery__arrow:focus-visible {
border: 1.5px solid var(--butter);
background: var(--butter);
color: var(--olive-dark);
background: #d9dc78;
transform: scale(1.04);
}
.gallery__arrow--prev {
left: var(--space-24);
justify-self: start;
}
.gallery__arrow--next {
right: var(--space-24);
justify-self: end;
}
@ -342,7 +347,7 @@
.gallery_dot:hover,
.gallery_dot--active {
background: var(--olive);;
background: var(--olive);
transform: scale(1.2);
}
@ -352,6 +357,17 @@
}
@media (max-width: 900px) {
.gallery__carousel {
grid-template-columns: 34px minmax(0, 1fr) 34px;
column-gap: 8px;
}
.gallery__arrow {
width: 30px;
height: 30px;
font-size: 1.2rem;
}
.gallery__track {
gap: 16px;
}

View File

@ -342,8 +342,8 @@
<dd data-review="eventType"></dd>
</div>
<div class="review-item" data-edit-step="1" data-edit-field="maxGuests" role="button" tabindex="0" aria-label="Maximale Personenanzahl bearbeiten">
<dt>Maximale Personenanzahl</dt>
<div class="review-item" data-edit-step="1" data-edit-field="maxGuests" role="button" tabindex="0" aria-label="Maximale Gästeanzahl bearbeiten">
<dt>Maximale Gästeanzahl</dt>
<dd data-review="maxGuests"></dd>
</div>

View File

@ -82,15 +82,15 @@
<!-- Main Content: uses .gallery, .gallery__carousel, .gallery__track, .gallery__item, and .gallery__info to present event carousel content -->
<section class="gallery" aria-label="Bildergalerie" aria-roledescription="Karussell">
</div><h2>Einblick in Cooking-Erlebnisse</h2>
<p class="margin-bottom-16">#gemeinsam_invité auf Instagram</p>
</div>
<h2>Einblick in Cooking-Erlebnisse</h2>
<p class="margin-bottom-16">#gemeinsam_invité auf Instagram</p>
<div class="gallery__carousel">
<button type="button" class="gallery__arrow gallery__arrow--prev" aria-label="Vorheriges Bild">
<i class="fas fa-chevron-left"></i>
<i class="fa-solid fa-arrow-left"></i>
</button>
<div class="gallery__track" aria-live="polite">
<div class="gallery__viewport">
<div class="gallery__track" aria-live="polite">
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 1 von 12">
<div class="ig-post-wrapper">
@ -212,10 +212,11 @@
</div>
</article>
</div>
</div>
<button type="button" class="gallery__arrow gallery__arrow--next" aria-label="Nächstes Bild">
<i class="fas fa-chevron-right"></i>
<i class="fa-solid fa-arrow-right"></i>
</button>
</div>