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>
58 lines
4.2 KiB
PHP
58 lines
4.2 KiB
PHP
{{--
|
||
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
|