Skip to content

Commit accd012

Browse files
committed
Add link to youtube video on frontpage
1 parent d6b9f59 commit accd012

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

readme.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ og_type: website
1717
<div class="d-flex justify-content-center gap-3 mt-4">
1818
<a href="/docs" class="btn btn-primary btn-lg">Get Started ></a>
1919
<a href="https://github.com/RetroC64/RetroC64-Examples" class="btn btn-light btn-lg">Examples ></a>
20+
<button type="button" class="btn btn-danger btn-lg" data-bs-toggle="modal" data-bs-target="#youtubeModal">
21+
▶ Watch .NET Conf 2025 Demo
22+
</button>
2023
</div>
2124
</div>
2225
</section>
@@ -99,4 +102,39 @@ og_type: website
99102
</div>
100103
</div>
101104
</div>
102-
</section>
105+
</section>
106+
107+
<!-- YouTube Video Modal -->
108+
<div class="modal fade" id="youtubeModal" tabindex="-1" aria-labelledby="youtubeModalLabel" aria-hidden="true">
109+
<div class="modal-dialog modal-xl modal-dialog-centered">
110+
<div class="modal-content">
111+
<div class="modal-header">
112+
<h5 class="modal-title" id="youtubeModalLabel">🍿 RetroC64 .NET Conf 2025 Demo</h5>
113+
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
114+
</div>
115+
<div class="modal-body">
116+
<div class="ratio ratio-16x9">
117+
<iframe id="youtubeVideo"
118+
data-base="https://www.youtube.com/embed/IjJDY7YwrSo"
119+
src="https://www.youtube.com/embed/IjJDY7YwrSo"
120+
title="YouTube video player" frameborder="0"
121+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
122+
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
123+
</div>
124+
</div>
125+
</div>
126+
</div>
127+
</div>
128+
129+
<script>
130+
var modal = document.getElementById('youtubeModal');
131+
modal.addEventListener('show.bs.modal', function () {
132+
var iframe = document.getElementById('youtubeVideo');
133+
var base = iframe.getAttribute('data-base');
134+
iframe.src = base + '?autoplay=1&rel=0';
135+
});
136+
modal.addEventListener('hidden.bs.modal', function () {
137+
var iframe = document.getElementById('youtubeVideo');
138+
iframe.src = iframe.getAttribute('data-base');
139+
});
140+
</script>

0 commit comments

Comments
 (0)