Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m45s
- 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>
19 lines
1.2 KiB
PHP
19 lines
1.2 KiB
PHP
@if ($photos->isNotEmpty())
|
|
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8" @if ($heading) aria-labelledby="{{ $sectionId }}-title" @else aria-label="Bildergalerie" @endif>
|
|
@if ($heading)<h2 id="{{ $sectionId }}-title" class="heading-display mb-8">{{ $heading }}</h2>@endif
|
|
<ul class="grid grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4">
|
|
@foreach ($photos as $index => $photo)
|
|
<li @class(['reveal', 'col-span-2 row-span-2' => $index === 0])>
|
|
<a href="{{ $photo->url('lg') }}" data-lightbox data-alt="{{ $photo->alt_text }}" data-caption="{{ $photo->caption }}" class="group block overflow-hidden rounded-sm">
|
|
@include('theme::partials.image', [
|
|
'photo' => $photo,
|
|
'sizes' => $index === 0 ? '(min-width: 1024px) 50vw, 100vw' : '(min-width: 1024px) 25vw, 50vw',
|
|
'class' => ($index === 0 ? 'h-full min-h-64 ' : 'h-40 sm:h-56 ').'w-full object-cover transition duration-500 group-hover:scale-[1.03]',
|
|
])
|
|
</a>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
</section>
|
|
@endif
|