Skip to content

Commit fdfaf71

Browse files
author
baptiste.bernard
committed
V1-add the videos to the sia2024 page
1 parent b944f6f commit fdfaf71

File tree

3 files changed

+159
-0
lines changed

3 files changed

+159
-0
lines changed

assets/css/custom.scss

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,3 +342,115 @@ h1 {
342342
border-radius: 10px;
343343
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
344344
}
345+
346+
// sia2024
347+
348+
.bg-gray-light {
349+
background-color: #f7f7f7;
350+
}
351+
352+
.container-lg {
353+
max-width: 1200px;
354+
margin: 0 auto;
355+
}
356+
357+
.p-responsive {
358+
padding: 0 1rem;
359+
}
360+
361+
.py-5 {
362+
padding-top: 3rem;
363+
padding-bottom: 3rem;
364+
}
365+
366+
.py-md-6 {
367+
padding-top: 4.5rem;
368+
padding-bottom: 4.5rem;
369+
}
370+
371+
.text-center {
372+
text-align: center;
373+
}
374+
375+
.alt-h2 {
376+
font-size: 2rem;
377+
margin-bottom: 1rem;
378+
}
379+
380+
.video-grid {
381+
display: grid;
382+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
383+
gap: 20px;
384+
justify-content: center;
385+
}
386+
387+
.video-thumbnail {
388+
position: relative;
389+
width: 100%;
390+
cursor: pointer;
391+
}
392+
393+
.video-thumbnail img {
394+
width: 100%;
395+
height: auto;
396+
border-radius: 10px;
397+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
398+
}
399+
400+
.video-thumbnail .play-button {
401+
position: absolute;
402+
top: 50%;
403+
left: 50%;
404+
transform: translate(-50%, -50%);
405+
background-color: rgba(0, 0, 0, 0.5);
406+
border-radius: 50%;
407+
width: 60px;
408+
height: 60px;
409+
display: flex;
410+
align-items: center;
411+
justify-content: center;
412+
opacity: 0;
413+
transition: opacity 0.3s;
414+
}
415+
416+
.video-thumbnail:hover .play-button {
417+
opacity: 1;
418+
}
419+
420+
.video-thumbnail .play-button::before {
421+
content: '';
422+
border-style: solid;
423+
border-width: 12px 0 12px 20px;
424+
border-color: transparent transparent transparent white;
425+
}
426+
427+
.logo-grid {
428+
display: flex;
429+
flex-wrap: wrap;
430+
justify-content: center;
431+
gap: 1rem;
432+
}
433+
434+
.logo-grid img {
435+
max-width: 100px;
436+
height: auto;
437+
}
438+
439+
.media-grid {
440+
display: flex;
441+
flex-wrap: wrap;
442+
justify-content: center;
443+
gap: 1rem;
444+
}
445+
446+
.media-grid a {
447+
display: block;
448+
text-decoration: none;
449+
}
450+
451+
.media-grid img {
452+
max-width: 100%;
453+
height: auto;
454+
border-radius: 10px;
455+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
456+
}

assets/js/sia2024-video.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
document.addEventListener('DOMContentLoaded', function() {
2+
const videoThumbnails = document.querySelectorAll('.video-thumbnail');
3+
4+
videoThumbnails.forEach(thumbnail => {
5+
thumbnail.addEventListener('click', function() {
6+
const videoId = thumbnail.getAttribute('data-video-id');
7+
const videoUrl = `https://www.youtube.com/watch?v=${videoId}`;
8+
window.open(videoUrl, '_blank');
9+
});
10+
});
11+
});
12+

sia2024.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,39 @@ description: Retour sur la première mondiale au SIA 2024
55
permalink: /sia2024/
66
---
77

8+
<section id="topics" class="bg-gray-light">
9+
<div class="container-lg p-responsive py-5 py-md-6 text-center">
10+
<h3 class="alt-h2 mb-4">Les sujets</h3>
11+
<p>Pour plus de vidéos, visitez notre page dédiée : <a href="https://videos.gaia-ia.org/" target="_blank">Vidéos GAIA</a></p>
12+
<div class="video-grid">
13+
<div class="video-thumbnail" data-video-id="yd9agyhuDp4">
14+
<a href="https://www.youtube.com/watch?v=yd9agyhuDp4" target="_blank">
15+
<img src="https://img.youtube.com/vi/yd9agyhuDp4/0.jpg" alt="Miniature de la vidéo 1">
16+
</a>
17+
<div class="play-button"></div>
18+
</div>
19+
<div class="video-thumbnail" data-video-id="LHFijUmdHnQ">
20+
<a href="https://www.youtube.com/watch?v=LHFijUmdHnQ" target="_blank">
21+
<img src="https://img.youtube.com/vi/LHFijUmdHnQ/0.jpg" alt="Miniature de la vidéo 2">
22+
</a>
23+
<div class="play-button"></div>
24+
</div>
25+
<div class="video-thumbnail" data-video-id="43nrjAhT1oo">
26+
<a href="https://www.youtube.com/watch?v=43nrjAhT1oo" target="_blank">
27+
<img src="https://img.youtube.com/vi/43nrjAhT1oo/0.jpg" alt="Miniature de la vidéo 3">
28+
</a>
29+
<div class="play-button"></div>
30+
</div>
31+
</div>
32+
</div>
33+
</section>
34+
35+
<section id="participants" class="bg-gray-light">
36+
<div class="container-lg p-responsive py-5 py-md-6 text-center">
37+
<h3 class="alt-h2 mb-4">Les participants et contributeurs</h3>
38+
</div>
39+
</section>
40+
841
<section id="sia2024" class="bg-gray-light">
942
<div class="container-lg p-responsive py-5 py-md-6 text-center">
1043
<h3 class="alt-h2 mb-4">Retour sur la première mondiale au SIA 2024</h3>
@@ -30,3 +63,5 @@ permalink: /sia2024/
3063
</div>
3164
</div>
3265
</section>
66+
67+
<script src="/assets/js/sia2024-video.js"></script>

0 commit comments

Comments
 (0)