|
31 | 31 | import LinkOverlay from '../components/LinkOverlay.svelte'; |
32 | 32 | import { Paths, getTitle, navigate } from '../router/paths'; |
33 | 33 | import { gestures } from '../script/stores/Stores'; |
34 | | - import CompatibilityWarningDialog from '../components/CompatibilityWarningDialog.svelte'; |
35 | 34 | import StandardDialog from '../components/dialogs/StandardDialog.svelte'; |
36 | 35 | import { clearGestures } from '../script/stores/mlStore'; |
37 | 36 | import { get } from 'svelte/store'; |
38 | | -
|
39 | | - // Avoid youtube cookie. rel=0 should limit related videos to youtube channel. |
40 | | - // Once we have translated videos we can try e.g. cc_lang_pref=fr |
41 | | - // but we'll need to check our codes match theirs. |
42 | | - const introVideoUrl = |
43 | | - // TODO: Replace placeholder youtube video id |
44 | | - 'https://www.youtube-nocookie.com/embed/u2u7UJSRuko?rel=0&cc_load_policy=1'; |
| 37 | + import introVideoPlaceholderImage from '../imgs/video-placeholder.png'; |
45 | 38 |
|
46 | 39 | const playgroundSurveyUrl = |
47 | 40 | 'https://stage.microbit.org/teach/playground-survey/exploring-machine-learning'; |
|
86 | 79 | <h1 class="sr-only">{$t('content.index.title')}</h1> |
87 | 80 | <div class="mb-8"> |
88 | 81 | <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. |
| 91 | + Once we have translated videos we can try e.g. cc_lang_pref=fr |
| 92 | + but we'll need to check our codes match theirs. |
| 93 | +
|
89 | 94 | <iframe |
90 | 95 | class="w-38rem h-auto aspect-video" |
91 | 96 | style="aspect-ratio: 16/9" |
92 | | - title="introduction video" |
93 | | - src={introVideoUrl} |
| 97 | + title={$t('homepage.introVideo')} |
| 98 | + src="https://www.youtube-nocookie.com/embed/u2u7UJSRuko?rel=0&cc_load_policy=1" |
94 | 99 | allow="encrypted-media" |
95 | 100 | frameBorder="0" |
96 | 101 | allowFullScreen> |
97 | 102 | </iframe> |
| 103 | + --> |
98 | 104 | <p> |
99 | 105 | <HtmlFormattedMessage |
100 | 106 | id="content.index.toolInfo" |
|
0 commit comments