Skip to content

Commit f13cc57

Browse files
committed
swap to youtube for video
1 parent 4c77c72 commit f13cc57

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

docs/img/intro-video-poster.jpg

-65.9 KB
Binary file not shown.

frontend/src/routes/(site)/+page.svelte

+17-6
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,20 @@
1313
</svelte:head>
1414

1515
<div class="intro">
16-
<!-- svelte-ignore a11y_media_has_caption -->
17-
<video src="{base}/img/docs/WasmBots_Proof-of-Concept.mp4" controls poster="{base}/img/docs/intro-video-poster.jpg"></video>
16+
17+
<iframe
18+
src="https://www.youtube-nocookie.com/embed/PSCVmCtFQOo?si=LEgW9Bj-d62u1g4e&modestbranding=1"
19+
title="YouTube video player"
20+
frameborder="0"
21+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
22+
referrerpolicy="strict-origin-when-cross-origin"
23+
allowfullscreen>
24+
</iframe>
1825

1926
<p>
2027
Hello! <a href="https://shaneliesegang.com" target="_blank">I’m Shane</a>, and
21-
this is WasmBots, a project for hosting WebAssembly modules that play a
22-
light dungeon exploration game.
28+
this is WasmBots, an in-progress project for hosting WebAssembly modules that
29+
play a light dungeon exploration game.
2330
</p>
2431

2532
<p>
@@ -70,8 +77,12 @@
7077
margin-top: 50px;
7178
}
7279
73-
.intro video {
74-
max-width: 100%;
80+
.intro iframe {
81+
width: 100%;
82+
aspect-ratio: 16 / 9;
83+
margin-left: auto;
84+
margin-right: auto;
85+
display: block;
7586
}
7687
7788
.standaloneWithControls {

0 commit comments

Comments
 (0)