- Weitere Adressen einer Website (z. B. www.stommer.info) leiten per 301 auf die Hauptadresse um; vorher blockierte der Browser Skripte, Schriften und Videos, die von der Hauptadresse kamen (kein Titelvideo, Ersatzschrift) - Site::origin() nimmt verbindlich das Feld domain - Videos: Abspielgeschwindigkeit 0,5x bis 1x, gilt im Titelbereich und Rundgang Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
1.3 KiB
PHP
16 lines
1.3 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() }}" data-playback-rate="{{ $video->playbackRate() }}"
|
||
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>
|