Design Stufe 2: Tipp-Karten zum Umdrehen, Sommer/Winter-Vergleich, Galerie mit weichem Vergroessern
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m45s
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>
This commit is contained in:
1 parent
c8bb0f6e97
commit
4c9e6992f4
20 files changed
+785
-43
No files matched your search
@@ -0,0 +1,27 @@
|
||||
{{--
|
||||
Contract: $eyebrow, $heading, $text, $first, $second (Photo|null – renders nothing without both), $firstLabel, $secondLabel.
|
||||
theme.js: [data-compare] box with the second photo underneath, [data-compare-first] (first photo, clipped at --split),
|
||||
[data-compare-handle] (the line) and [data-compare-range] (range input 0–100, hidden without JavaScript).
|
||||
--}}
|
||||
@if ($first && $second)
|
||||
<section class="mx-auto max-w-6xl px-4 py-16 sm:px-8" @if ($heading) aria-labelledby="{{ $sectionId }}-title" @else aria-label="{{ $firstLabel }} und {{ $secondLabel }}" @endif>
|
||||
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
|
||||
@if ($heading)<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>@endif
|
||||
@if ($text)<p class="mt-4 max-w-[60ch] text-muted">{{ $text }}</p>@endif
|
||||
|
||||
<div data-compare class="mt-8 aspect-[3/2] cursor-ew-resize overflow-hidden rounded bg-surface">
|
||||
@include('theme::partials.image', ['photo' => $second, 'sizes' => '(min-width: 1152px) 72rem, 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) 72rem, 100vw', 'class' => 'h-full w-full object-cover'])
|
||||
</div>
|
||||
<span class="absolute top-4 left-4 rounded-full bg-ink/75 px-4 py-1.5 font-semibold text-ground">{{ $firstLabel }}</span>
|
||||
<span class="absolute top-4 right-4 rounded-full bg-ink/75 px-4 py-1.5 font-semibold text-ground">{{ $secondLabel }}</span>
|
||||
<div data-compare-handle class="w-1 bg-ground" aria-hidden="true">
|
||||
<span class="absolute top-1/2 left-1/2 flex size-12 -translate-1/2 items-center justify-center rounded-full bg-ground text-ink shadow-lg">
|
||||
<x-heroicon-o-arrows-right-left class="size-6" />
|
||||
</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>
|
||||
</section>
|
||||
@endif
|
||||
Reference in new issue
Block a user