Skip to content

Commit

Permalink
V1-add the videos to the sia2024 page
Browse files Browse the repository at this point in the history
  • Loading branch information
baptiste.bernard committed Jan 22, 2025
1 parent b944f6f commit fdfaf71
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 0 deletions.
112 changes: 112 additions & 0 deletions assets/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -342,3 +342,115 @@ h1 {
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

// sia2024

.bg-gray-light {
background-color: #f7f7f7;
}

.container-lg {
max-width: 1200px;
margin: 0 auto;
}

.p-responsive {
padding: 0 1rem;
}

.py-5 {
padding-top: 3rem;
padding-bottom: 3rem;
}

.py-md-6 {
padding-top: 4.5rem;
padding-bottom: 4.5rem;
}

.text-center {
text-align: center;
}

.alt-h2 {
font-size: 2rem;
margin-bottom: 1rem;
}

.video-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
justify-content: center;
}

.video-thumbnail {
position: relative;
width: 100%;
cursor: pointer;
}

.video-thumbnail img {
width: 100%;
height: auto;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-thumbnail .play-button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(0, 0, 0, 0.5);
border-radius: 50%;
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s;
}

.video-thumbnail:hover .play-button {
opacity: 1;
}

.video-thumbnail .play-button::before {
content: '';
border-style: solid;
border-width: 12px 0 12px 20px;
border-color: transparent transparent transparent white;
}

.logo-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1rem;
}

.logo-grid img {
max-width: 100px;
height: auto;
}

.media-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1rem;
}

.media-grid a {
display: block;
text-decoration: none;
}

.media-grid img {
max-width: 100%;
height: auto;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
12 changes: 12 additions & 0 deletions assets/js/sia2024-video.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
document.addEventListener('DOMContentLoaded', function() {
const videoThumbnails = document.querySelectorAll('.video-thumbnail');

videoThumbnails.forEach(thumbnail => {
thumbnail.addEventListener('click', function() {
const videoId = thumbnail.getAttribute('data-video-id');
const videoUrl = `https://www.youtube.com/watch?v=${videoId}`;
window.open(videoUrl, '_blank');
});
});
});

35 changes: 35 additions & 0 deletions sia2024.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,39 @@ description: Retour sur la première mondiale au SIA 2024
permalink: /sia2024/
---

<section id="topics" class="bg-gray-light">
<div class="container-lg p-responsive py-5 py-md-6 text-center">
<h3 class="alt-h2 mb-4">Les sujets</h3>
<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>
<div class="video-grid">
<div class="video-thumbnail" data-video-id="yd9agyhuDp4">
<a href="https://www.youtube.com/watch?v=yd9agyhuDp4" target="_blank">
<img src="https://img.youtube.com/vi/yd9agyhuDp4/0.jpg" alt="Miniature de la vidéo 1">
</a>
<div class="play-button"></div>
</div>
<div class="video-thumbnail" data-video-id="LHFijUmdHnQ">
<a href="https://www.youtube.com/watch?v=LHFijUmdHnQ" target="_blank">
<img src="https://img.youtube.com/vi/LHFijUmdHnQ/0.jpg" alt="Miniature de la vidéo 2">
</a>
<div class="play-button"></div>
</div>
<div class="video-thumbnail" data-video-id="43nrjAhT1oo">
<a href="https://www.youtube.com/watch?v=43nrjAhT1oo" target="_blank">
<img src="https://img.youtube.com/vi/43nrjAhT1oo/0.jpg" alt="Miniature de la vidéo 3">
</a>
<div class="play-button"></div>
</div>
</div>
</div>
</section>

<section id="participants" class="bg-gray-light">
<div class="container-lg p-responsive py-5 py-md-6 text-center">
<h3 class="alt-h2 mb-4">Les participants et contributeurs</h3>
</div>
</section>

<section id="sia2024" class="bg-gray-light">
<div class="container-lg p-responsive py-5 py-md-6 text-center">
<h3 class="alt-h2 mb-4">Retour sur la première mondiale au SIA 2024</h3>
Expand All @@ -30,3 +63,5 @@ permalink: /sia2024/
</div>
</div>
</section>

<script src="/assets/js/sia2024-video.js"></script>

0 comments on commit fdfaf71

Please sign in to comment.