- Webseite > Videos (Datei, Standbild, Kapitel mit Raum im Grundriss); Upload bis 100 MB - Titelbereich: Video statt Foto (stumme Schleife, respektiert Bewegung reduzieren/Save-Data) und naechste freie Termine mit Gesamtpreis (NextFreeStays) - Neuer Baustein Rundgang (Video) mit waehlbarer Anordnung; Grundriss springt ins Video - Buchungsseite: Preis unter dem Kalender, Formular rechts, Ablauf als Grafik - Seebad: Fahrkarten, Fahrplan-Kapitel, Sonnenaufgang als einmaliges Ereignis Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
3.2 KiB
PHP
48 lines
3.2 KiB
PHP
{{--
|
||
Contract: $heading, $text, $photo (App\Models\Photo, the plan picture), $rooms (Collection of arrays: key, name,
|
||
description, hint, points = "x,y x,y …" in percent of the picture, photos = Collection<Photo>, amenities = Collection<string>,
|
||
videoChapter = chapter of a tour video showing the room: seconds, time, label – or null). The link [data-tour-link] stays
|
||
hidden unless a tour section (data-tour) is on the same page.
|
||
Base version without JavaScript: the areas on the plan jump to the room descriptions below.
|
||
--}}
|
||
@if ($photo && $rooms->isNotEmpty())
|
||
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8" aria-labelledby="{{ $sectionId }}-title">
|
||
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
|
||
@if ($text)<p class="mt-3 max-w-2xl text-muted">{{ $text }}</p>@endif
|
||
|
||
<div class="relative mt-8">
|
||
@include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 1280px) 80rem, 100vw', 'class' => 'h-auto w-full'])
|
||
<svg viewBox="0 0 100 100" preserveAspectRatio="none" class="absolute inset-0 size-full" aria-label="Räume im Grundriss">
|
||
@foreach ($rooms as $room)
|
||
<a href="#{{ $room['key'] }}" aria-label="{{ $room['name'] }}">
|
||
<polygon points="{{ $room['points'] }}" class="fill-accent/0 stroke-accent transition hover:fill-accent/20" stroke-width="0.25" vector-effect="non-scaling-stroke"><title>{{ $room['name'] }}</title></polygon>
|
||
</a>
|
||
@endforeach
|
||
</svg>
|
||
</div>
|
||
|
||
<ul class="mt-10 grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
||
@foreach ($rooms as $room)
|
||
<li id="{{ $room['key'] }}" class="scroll-mt-24 rounded bg-surface p-6">
|
||
@if ($room['photos']->isNotEmpty())
|
||
@include('theme::partials.image', ['photo' => $room['photos']->first(), 'sizes' => '(min-width: 1024px) 25vw, 100vw', 'class' => 'mb-4 h-44 w-full rounded-sm object-cover'])
|
||
@endif
|
||
<h3 class="font-display text-2xl">{{ $room['name'] }}</h3>
|
||
@if ($room['description'])<p class="mt-2 text-muted">{{ $room['description'] }}</p>@endif
|
||
@if ($room['amenities']->isNotEmpty())
|
||
<ul class="mt-3 space-y-1 text-muted">
|
||
@foreach ($room['amenities'] as $amenity)
|
||
<li class="flex gap-2"><span aria-hidden="true" class="text-accent">·</span>{{ $amenity }}</li>
|
||
@endforeach
|
||
</ul>
|
||
@endif
|
||
@if ($room['hint'])<p class="mt-3 border-l-2 border-accent pl-3 text-sm">{{ $room['hint'] }}</p>@endif
|
||
@if ($room['videoChapter'] ?? null)
|
||
<a href="#" hidden data-tour-link="{{ $room['videoChapter']['seconds'] }}" class="mt-3 inline-flex min-h-12 items-center gap-2 font-semibold underline underline-offset-4"><x-heroicon-s-play class="size-5" aria-hidden="true" />Im Rundgang ansehen ({{ $room['videoChapter']['time'] }})</a>
|
||
@endif
|
||
</li>
|
||
@endforeach
|
||
</ul>
|
||
</section>
|
||
@endif
|