Skip to content

Commit 6c8ec5b

Browse files
Update to final video on the homepage (#208)
* Update to final video on the homepage * Remove video placeholder image and import
1 parent 19b46de commit 6c8ec5b

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

src/imgs/video-placeholder.png

-391 KB
Binary file not shown.

src/pages/Homepage.svelte

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import StandardDialog from '../components/dialogs/StandardDialog.svelte';
3535
import { clearGestures } from '../script/stores/mlStore';
3636
import { get } from 'svelte/store';
37-
import introVideoPlaceholderImage from '../imgs/video-placeholder.png';
3837
3938
const playgroundSurveyUrl =
4039
'https://microbit.org/teach/playground-survey/exploring-machine-learning/';
@@ -79,28 +78,19 @@
7978
<h1 class="sr-only">{$t('content.index.title')}</h1>
8079
<div class="mb-8">
8180
<div class="flex flex-col items-center justify-center m-10 gap-5">
82-
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
83-
<img
84-
src={introVideoPlaceholderImage}
85-
alt="Placeholder image for introduction video"
86-
on:click={() => alert('This is just a placeholder for the final video')}
87-
class="w-38rem h-auto aspect-video"
88-
style="aspect-ratio: 16/9" />
89-
<!-- Once we have the final video URL
90-
Avoid youtube cookie. rel=0 should limit related videos to youtube channel.
81+
<!-- Avoid youtube cookie. rel=0 should limit related videos to youtube channel.
9182
Once we have translated videos we can try e.g. cc_lang_pref=fr
9283
but we'll need to check our codes match theirs.
93-
84+
-->
9485
<iframe
9586
class="w-38rem h-auto aspect-video"
9687
style="aspect-ratio: 16/9"
9788
title={$t('homepage.introVideo')}
98-
src="https://www.youtube-nocookie.com/embed/u2u7UJSRuko?rel=0&cc_load_policy=1"
89+
src="https://www.youtube-nocookie.com/embed/ZhUtuuQemFc?rel=0&cc_load_policy=1"
9990
allow="encrypted-media"
10091
frameBorder="0"
10192
allowFullScreen>
10293
</iframe>
103-
-->
10494
<p>
10595
<HtmlFormattedMessage
10696
id="content.index.toolInfo"

0 commit comments

Comments
 (0)