- 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>
16 lines
1.2 KiB
PHP
16 lines
1.2 KiB
PHP
{{--
|
||
Silent video loop in place of a photo (hero). Variables: $video (App\Models\Video), $class (sizes the <video>),
|
||
$wrapperClass and $buttonClass (optional: sizes the wrapper, positions the pause button). theme.js loads and
|
||
plays it; with "reduce motion", Save-Data or without JavaScript only the poster is shown – nothing is downloaded.
|
||
--}}
|
||
<div class="relative {{ $wrapperClass ?? '' }}" data-video-loop>
|
||
<video class="{{ $class ?? '' }}" muted loop playsinline disablepictureinpicture preload="none"
|
||
poster="{{ $video->posterUrl() }}" data-src="{{ $video->url() }}" data-type="{{ $video->mimeType() }}"
|
||
aria-label="Video: {{ $video->title }}"></video>
|
||
<button type="button" data-video-toggle hidden aria-pressed="false" aria-label="Video anhalten" title="Video anhalten"
|
||
class="{{ $buttonClass ?? 'absolute right-4 bottom-4' }} inline-flex size-12 items-center justify-center rounded-full bg-ink/70 text-ground backdrop-blur-sm hover:bg-ink focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ground">
|
||
<x-heroicon-s-pause class="size-5" data-icon-pause aria-hidden="true" />
|
||
<x-heroicon-s-play class="hidden size-5" data-icon-play aria-hidden="true" />
|
||
</button>
|
||
</div>
|