Skriv til mig på michael@bay-laursen.dk.
diff --git a/klip.js b/klip.js new file mode 100644 index 0000000..55a567e --- /dev/null +++ b/klip.js @@ -0,0 +1,10 @@ +// Videoklippet kører kun af sig selv, hvis brugeren ikke har bedt om mindre bevægelse. +(function () { + var video = document.querySelector('.klip-video'); + if (!video) { return; } + if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) { + video.removeAttribute('autoplay'); + video.pause(); + video.controls = true; + } +})(); diff --git a/media/rotte-natkikkert.jpg b/media/rotte-natkikkert.jpg new file mode 100644 index 0000000..6c19486 Binary files /dev/null and b/media/rotte-natkikkert.jpg differ diff --git a/media/rotte-natkikkert.mp4 b/media/rotte-natkikkert.mp4 new file mode 100644 index 0000000..ac83b46 Binary files /dev/null and b/media/rotte-natkikkert.mp4 differ diff --git a/stil.css b/stil.css index c71ba50..b3bd8be 100644 --- a/stil.css +++ b/stil.css @@ -156,6 +156,27 @@ section h2 { background: var(--soe); } +.klip { + margin: 1.75rem 0 0; + max-width: 34rem; +} + +.klip-video { + display: block; + width: 100%; + height: auto; + aspect-ratio: 16 / 9; + border-radius: 14px; + background: #1b2428; + box-shadow: 0 1px 0 var(--bakke-midt), 0 12px 32px -18px rgba(34, 48, 54, 0.55); +} + +.klip figcaption { + margin-top: 0.6rem; + font-size: 0.95rem; + color: var(--graa); +} + .kontakt { margin-top: 3rem; color: var(--graa);