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
@@ -48,13 +48,7 @@
|
||||
@include('theme::partials.footer')
|
||||
@include('theme::partials.mobile-booking-bar')
|
||||
|
||||
<dialog id="lightbox" class="m-auto max-h-[92vh] max-w-[92vw] bg-transparent p-0 backdrop:bg-black/80" aria-label="Bild vergrößert">
|
||||
<figure class="relative">
|
||||
<img src="" alt="" class="max-h-[85vh] max-w-[92vw] object-contain">
|
||||
<figcaption data-caption class="mt-2 text-center text-base text-white"></figcaption>
|
||||
<button type="button" data-close class="absolute top-2 right-2 min-h-11 min-w-11 rounded-full bg-black/60 px-3 text-white" aria-label="Schließen">✕</button>
|
||||
</figure>
|
||||
</dialog>
|
||||
@include('theme::partials.lightbox')
|
||||
|
||||
@livewireScripts
|
||||
</body>
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
{{--
|
||||
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 class="flex items-center gap-2"><x-heroicon-o-arrow-long-left class="size-6 text-accent" aria-hidden="true" />{{ $firstLabel }}</span>
|
||||
<span class="hidden text-base text-muted sm:inline" aria-hidden="true">Linie ziehen zum Vergleichen</span>
|
||||
<span class="flex items-center gap-2">{{ $secondLabel }}<x-heroicon-o-arrow-long-right class="size-6 text-accent" aria-hidden="true" /></span>
|
||||
</figcaption>
|
||||
</figure>
|
||||
</section>
|
||||
@endif
|
||||
@@ -7,7 +7,7 @@
|
||||
<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 }}" class="group relative block h-full overflow-hidden rounded">
|
||||
<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',
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
{{--
|
||||
Contract: see ostsee-licht/views/sections/tips.blade.php. Seebad: every tip is a picture postcard of the seaside
|
||||
resort – in front the photo with its white margin and the name, on the back the host's handwritten-looking
|
||||
tip on the left, stamp and "address lines" (way there, best time) on the right of the dividing line.
|
||||
--}}
|
||||
@if ($tips !== [])
|
||||
<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="Ausflugstipps" @endif>
|
||||
<div class="flex flex-wrap items-end gap-x-14 gap-y-4">
|
||||
<div class="min-w-0 flex-[1_1_26rem]">
|
||||
@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>
|
||||
|
||||
<ul class="mt-10 grid gap-x-8 gap-y-10 sm:grid-cols-2 lg:grid-cols-3">
|
||||
@foreach ($tips as $tip)
|
||||
@php($backId = $sectionId.'-tip-'.$loop->index)
|
||||
<li data-flip class="postcard-tilt">
|
||||
<div data-flip-inner>
|
||||
<div data-flip-face="front" class="postcard flex flex-col p-3">
|
||||
@include('theme::partials.image', ['photo' => $tip['photo'], 'sizes' => '(min-width: 1024px) 30vw, (min-width: 640px) 45vw, 100vw', 'class' => 'aspect-[3/2] w-full object-cover'])
|
||||
<div class="flex flex-1 flex-wrap items-center justify-between gap-x-4 gap-y-3 px-1 pt-4 pb-1">
|
||||
<h3 class="font-display text-[1.75rem] leading-tight">{{ $tip['title'] }}</h3>
|
||||
<button type="button" hidden data-flip-toggle aria-expanded="false" aria-controls="{{ $backId }}" class="btn-outline min-h-11 shrink-0 px-4 py-2">
|
||||
<x-heroicon-o-arrow-path-rounded-square class="mr-2 size-5" aria-hidden="true" />Tipp lesen
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div data-flip-face="back" id="{{ $backId }}" class="postcard grid grid-cols-[minmax(0,3fr)_minmax(0,2fr)] gap-x-5 p-5 sm:p-6">
|
||||
<div class="flex min-w-0 flex-col gap-3 border-r border-line pr-5">
|
||||
<p class="font-display text-[1.375rem] leading-snug italic">{{ $tip['tip'] }}</p>
|
||||
@if ($signature)<p class="mt-auto font-display text-[1.375rem] text-accent italic">{{ $signature }}</p>@endif
|
||||
</div>
|
||||
<div class="flex min-w-0 flex-col">
|
||||
<span class="stamp ml-auto" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'crest', 'class' => 'size-full'])</span>
|
||||
<p class="mt-4 font-display text-xl leading-tight break-words hyphens-auto">{{ $tip['title'] }}</p>
|
||||
<dl class="mt-2 text-base">
|
||||
@if ($tip['way'])
|
||||
<div class="border-b border-line py-1.5"><dt class="text-sm text-muted">Weg</dt><dd>{{ $tip['way'] }}</dd></div>
|
||||
@endif
|
||||
@if ($tip['bestTime'])
|
||||
<div class="border-b border-line py-1.5"><dt class="text-sm text-muted">Beste Zeit</dt><dd>{{ $tip['bestTime'] }}</dd></div>
|
||||
@endif
|
||||
</dl>
|
||||
<button type="button" hidden data-flip-toggle aria-expanded="false" aria-controls="{{ $backId }}" class="mt-auto inline-flex min-h-11 items-center gap-2 self-start pt-4 font-semibold text-accent hover:underline">
|
||||
<x-heroicon-o-arrow-uturn-left class="size-5" aria-hidden="true" />Zum Foto
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</section>
|
||||
@endif
|
||||
Reference in new issue
Block a user