Skip to content

Commit 278592b

Browse files
committed
update
1 parent 01865ef commit 278592b

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

css/modern.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,3 +260,31 @@ body.site-body{margin:0;background:var(--bg);color:var(--fg);font-family:Inter,s
260260
margin:0 0 20px 0 !important;
261261
letter-spacing:0.3px !important;
262262
}
263+
264+
.vimeo-embed-wrapper {
265+
position: relative;
266+
width: 100%;
267+
padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
268+
height: 0;
269+
overflow: hidden;
270+
border-radius: 8px;
271+
background: #111;
272+
margin: 24px 0;
273+
}
274+
275+
.vimeo-embed-wrapper iframe {
276+
position: absolute;
277+
top: 0;
278+
left: 0;
279+
width: 100%;
280+
height: 100%;
281+
border: 0;
282+
}
283+
284+
.hs-bg {
285+
object-fit: cover;
286+
width: 100%;
287+
height: 100%;
288+
display: block;
289+
}
290+

projects/short-film-projects.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ title: Short Film Projects
1717
{% if p.data.vimeoId %}
1818
<div class="video-wrapper" style="margin:12px 0;">
1919
<iframe
20-
src="https://player.vimeo.com/video/{{ p.data.vimeoId }}"
20+
src="https://player.vimeo.com/video/{{ p.data.vimeoId }}?background=1&autoplay=1&loop=1&muted=1"
2121
width="100%" height="420" frameborder="0"
22+
loading="lazy"
2223
allow="autoplay; fullscreen; picture-in-picture"
2324
allowfullscreen>
2425
</iframe>
@@ -37,4 +38,3 @@ title: Short Film Projects
3738
{% endif %}
3839
{% endfor %}
3940
</div>
40-

0 commit comments

Comments
 (0)