Files
LarsandClaude Opus 5.5 a1fc4f7fef
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m38s
Galerie: kein Springen beim Blaettern, Vergleich ohne Pfeile an den Beschriftungen
- Lightbox: feste Bildgroesse aus dem Seitenverhaeltnis, beim Blaettern wird das grosse Foto erst geladen und dann eingeblendet
- Seebad-Vergleich: Pfeile neben Sommer/Winter entfernt (passten nicht zur Ziehrichtung)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 07:07:26 +01:00

38 lines
2.8 KiB
PHP

{{--
Contract: see ostsee-licht/views/sections/compare.blade.php. Seebad: heading and text above, the photos in the
double frame of the house (as the tour), the labels below the frame at both ends, so they never cover the view.
--}}
@if ($first && $second)
<section class="mx-auto max-w-6xl px-4 py-14 sm:px-8 sm:py-20" @if ($heading) aria-labelledby="{{ $sectionId }}-title" @else aria-label="{{ $firstLabel }} und {{ $secondLabel }}" @endif>
<div class="flex flex-wrap items-end gap-x-14 gap-y-4">
<div class="min-w-0 flex-[1_1_24rem]">
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
@if ($heading)<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>@endif
</div>
@if ($text)<p class="min-w-0 max-w-[52ch] flex-[1_1_22rem] text-muted">{{ $text }}</p>@endif
</div>
<figure class="mt-10">
<div class="relative border-2 border-ink bg-surface p-2.5 sm:p-3.5">
<span class="absolute -top-0.5 -left-0.5 z-10" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
<span class="absolute -top-0.5 -right-0.5 z-10 -scale-x-100" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
<div data-compare class="aspect-[4/3] cursor-ew-resize overflow-hidden bg-ink sm:aspect-[3/2]">
@include('theme::partials.image', ['photo' => $second, 'sizes' => '(min-width: 1152px) 70rem, 100vw', 'class' => 'absolute inset-0 h-full w-full object-cover'])
<div data-compare-first>
@include('theme::partials.image', ['photo' => $first, 'sizes' => '(min-width: 1152px) 70rem, 100vw', 'class' => 'h-full w-full object-cover'])
</div>
<div data-compare-handle class="w-[3px] bg-surface shadow-[0_0_0_1px_rgb(19_41_75/0.35)]" aria-hidden="true">
<span class="compare-knob"><x-heroicon-o-chevron-left class="size-5" /><x-heroicon-o-chevron-right class="-ml-1 size-5" /></span>
</div>
<input type="range" min="0" max="100" value="50" hidden data-compare-range class="sr-only" aria-label="Trennlinie zwischen {{ $firstLabel }} und {{ $secondLabel }} verschieben">
</div>
</div>
<figcaption class="mt-3 flex items-baseline justify-between gap-6 font-display text-[1.5rem] leading-tight">
<span>{{ $firstLabel }}</span>
<span class="hidden text-base text-muted sm:inline" aria-hidden="true">Linie ziehen zum Vergleichen</span>
<span>{{ $secondLabel }}</span>
</figcaption>
</figure>
</section>
@endif