Skip to content

Commit 5932ec6

Browse files
committed
Add videos to user guides page.
1 parent 4df47f5 commit 5932ec6

4 files changed

Lines changed: 105 additions & 3 deletions

File tree

src/assets/css/styles.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,24 @@ figure figcaption
541541
font-size: 0.9rem;
542542
}
543543

544+
.videos
545+
{
546+
display: grid;
547+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
548+
gap: 40px;
549+
padding: 10px;
550+
}
551+
552+
.video-player
553+
{
554+
width: 100%;
555+
height: 100%;
556+
object-fit: cover;
557+
display: flex;
558+
flex-direction: column;
559+
aspect-ratio: 16 / 9;
560+
}
561+
544562
@media (max-width: 768px), (max-height: 500px)
545563
{
546564
header button.menu-toggle.image-button

src/ca/user_guides.njk

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,32 @@ icon: support
55
language: ca
66
---
77

8-
<p>Properament...</p>
8+
{% macro video_player(video_id, title) %}
9+
<div class="video-player">
10+
<div>{{ title }}</div>
11+
<iframe
12+
src="https://www.youtube.com/embed/{{ video_id }}?modestbranding=1"
13+
title="{{ title }}"
14+
frameborder="0"
15+
style="width:100%;height:100%"
16+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
17+
allowfullscreen>
18+
</iframe>
19+
</div>
20+
{% endmacro %}
21+
22+
<div class="videos">
23+
{{ video_player("WTdsrDGMsKo", "Explorador de fitxers") }}
24+
25+
{{ video_player("PXCVljhXQQc", "Accés al disc local") }}
26+
27+
{{ video_player("rTY5F6jv7tg", "Nova escena i opcions") }}
28+
29+
{{ video_player("u3Dhd9JeuXs", "Seleccionar, orbitar, volar") }}
30+
31+
{{ video_player("xWkukAaIjq0", "Enquadrar, centrar, focalitzar") }}
32+
33+
{{ video_player("KQGJ9l5C5lw", "Mostrar i ocultar") }}
34+
35+
{{ video_player("69MN-5MMMJs", "Transformar objectes") }}
36+
</div>

src/en/user_guides.njk

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,32 @@ icon: support
55
language: en
66
---
77

8-
<p>Coming soon...</p>
8+
{% macro video_player(video_id, title) %}
9+
<div class="video-player">
10+
<div>{{ title }}</div>
11+
<iframe
12+
src="https://www.youtube.com/embed/{{ video_id }}?modestbranding=1"
13+
title="{{ title }}"
14+
frameborder="0"
15+
style="width:100%;height:100%"
16+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
17+
allowfullscreen>
18+
</iframe>
19+
</div>
20+
{% endmacro %}
21+
22+
<div class="videos">
23+
{{ video_player("WTdsrDGMsKo", "File explorer") }}
24+
25+
{{ video_player("PXCVljhXQQc", "Access to local disk") }}
26+
27+
{{ video_player("rTY5F6jv7tg", "New scene and options") }}
28+
29+
{{ video_player("u3Dhd9JeuXs", "Select, orbit, fly") }}
30+
31+
{{ video_player("xWkukAaIjq0", "Zoom all, center, focus") }}
32+
33+
{{ video_player("KQGJ9l5C5lw", "Show and hide") }}
34+
35+
{{ video_player("69MN-5MMMJs", "Transform objects") }}
36+
</div>

src/es/user_guides.njk

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,32 @@ icon: support
55
language: es
66
---
77

8-
<p>Próximamente...</p>
8+
{% macro video_player(video_id, title) %}
9+
<div class="video-player">
10+
<div>{{ title }}</div>
11+
<iframe
12+
src="https://www.youtube.com/embed/{{ video_id }}?modestbranding=1"
13+
title="{{ title }}"
14+
frameborder="0"
15+
style="width:100%;height:100%"
16+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
17+
allowfullscreen>
18+
</iframe>
19+
</div>
20+
{% endmacro %}
21+
22+
<div class="videos">
23+
{{ video_player("WTdsrDGMsKo", "Explorador de ficheros") }}
24+
25+
{{ video_player("Rz-iAeWdPXk", "Acceso al disco local") }}
26+
27+
{{ video_player("I4vAbrI-FQE", "Nueva escena y opciones") }}
28+
29+
{{ video_player("ZwWEr2bJ-Rw", "Seleccionar, orbitar, volar") }}
30+
31+
{{ video_player("AXu6LaI7bcA", "Encuadrar, centrar, focalizar") }}
32+
33+
{{ video_player("pkKX4lwfqSA", "Mostrar y ocultar") }}
34+
35+
{{ video_player("n9MfX4njUMU", "Transformar objetos") }}
36+
</div>

0 commit comments

Comments
 (0)