Files
fewo-stommer/resources/themes/seebad/views/sections/gallery.blade.php
T
LarsandClaude Opus 5.5 4c9e6992f4
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m45s
Design Stufe 2: Tipp-Karten zum Umdrehen, Sommer/Winter-Vergleich, Galerie mit weichem Vergroessern
- Baustein "Ausflugstipps" (tips): Karten mit Foto vorne, Tipp/Weg/beste Zeit hinten; Seebad als Ansichtskarten
- Baustein "Sommer/Winter-Vergleich" (compare): Trennlinie ziehen, Tastatur ueber Range-Input, einmaliger Hinweis-Schwenk
- Lightbox: Foto waechst aus der Vorschau, Blaettern (Pfeile, Tasten, Wischen), Zaehler, Bildunterschrift; partials/lightbox
- Bewegung reduzieren: Ueberblenden statt Drehen, kein Schwenk, keine Zoom-Animation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 21:05:16 +01:00

23 lines
1.7 KiB
PHP

@if ($photos->isNotEmpty())
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-20" @if ($heading) aria-labelledby="{{ $sectionId }}-title" @else aria-label="Bildergalerie" @endif>
<div class="mb-8 flex flex-wrap items-end justify-between gap-x-8 gap-y-2">
@if ($heading)<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>@endif
<p class="text-muted">{{ $photos->count() }} {{ $photos->count() === 1 ? 'Foto' : 'Fotos' }}, zum Vergrößern antippen</p>
</div>
<ul class="grid auto-rows-[9.5rem] grid-cols-2 gap-3 sm:auto-rows-[12rem] sm:gap-4 lg:grid-cols-4">
@foreach ($photos as $index => $photo)
<li @class(['reveal', 'col-span-2 row-span-2' => $index === 0, 'lg:row-span-2' => $index === 5])>
<a href="{{ $photo->url('lg') }}" data-lightbox data-alt="{{ $photo->alt_text }}" data-caption="{{ $photo->caption }}" class="group relative block h-full overflow-hidden rounded">
@include('theme::partials.image', [
'photo' => $photo,
'sizes' => $index === 0 ? '(min-width: 1024px) 50vw, 100vw' : '(min-width: 1024px) 25vw, 50vw',
'class' => 'h-full w-full object-cover transition duration-500 group-hover:scale-[1.03]',
])
<span class="pointer-events-none absolute inset-x-0 bottom-0 bg-black/55 px-3 py-2 text-[0.9375rem] leading-snug text-white opacity-0 transition group-hover:opacity-100 group-focus-visible:opacity-100">{{ $photo->alt_text }}</span>
</a>
</li>
@endforeach
</ul>
</section>
@endif