Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/components/About/About.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
import { useTranslations } from "@/i18n";
import styles from "./About.module.css";
import { recapEmbedUrl, recapThumbnailUrl } from "./recapVideo";

import "@/global.css";

const videoLink = "https://www.youtube.com/embed/yDNJC2-lUWE?si=VAD1Na8xGVwE9i5W";
const thumbnailLink = "https://i.ytimg.com/vi/yDNJC2-lUWE/hqdefault.jpg";

export function AboutVideo() {
const t = useTranslations();
return (
<iframe
className={styles.video}
src={videoLink}
src={recapEmbedUrl}
title={t("about.frame_alt")}
srcDoc={`<style>*{padding:0;margin:0;overflow:hidden}img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}span{position:absolute;inset:0;display:grid;place-items:center;font:3.5rem sans-serif;color:#fff3b6;text-shadow:0 0 0.5em black}</style><a href=${videoLink}><img src=${thumbnailLink} alt="${t(
srcDoc={`<style>*{padding:0;margin:0;overflow:hidden}a{position:absolute;inset:0}a:focus-visible{outline:3px solid #fff3b6;outline-offset:-3px}img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}span{position:absolute;inset:0;display:grid;place-items:center;font:3.5rem sans-serif;color:#fff3b6;text-shadow:0 0 0.5em black}</style><a href="${recapEmbedUrl}"><img src="${recapThumbnailUrl}" alt="${t(
"about.frame_alt",
)}"><span>▶</span></a>`}
)}"><span aria-hidden="true">▶</span></a>`}
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowFullScreen
loading="lazy"
Expand Down
6 changes: 6 additions & 0 deletions src/components/About/recapVideo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const videoId = "HXSSbRbvEOY";
const recapStart = 243;

export const recapWatchUrl = `https://www.youtube.com/watch?v=${videoId}&t=${recapStart}s`;
export const recapEmbedUrl = `https://www.youtube.com/embed/${videoId}?start=${recapStart}`;
export const recapThumbnailUrl = `https://i.ytimg.com/vi/${videoId}/hqdefault.jpg`;
3 changes: 2 additions & 1 deletion src/components/FAQ/FAQ.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { useTranslations } from "@/i18n";
import { recapWatchUrl } from "../About/recapVideo";
import styles from "./FAQ.module.css";

export default function FAQ() {
const t = useTranslations();
const quesAns = [
{
q: t("faq.q1"),
a: t("faq.a1"),
a: <a href={recapWatchUrl}>{t("faq.a1")}</a>,
key: "0",
},
{
Expand Down
9 changes: 9 additions & 0 deletions src/components/Scene/styles/sections.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,20 @@
transform: none;
}

/* The About slot spans the video. Only its text should receive clicks. */
.content > .about-slot {
pointer-events: none;
}

.about-slot :global(section#about) {
display: flex;
align-items: stretch;
height: 100%;
}

.about-slot :global(section#about) > * {
pointer-events: auto;
}
}

@media (max-width: 1200px) {
Expand Down
6 changes: 3 additions & 3 deletions src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export default {
title: "Hack&nbsp;the&nbsp;Hill&nbsp;III in Review",
p1: "From September 25 to 27, 2026, Hack the Hill III brought more than 350 participants together at the University of Ottawa for a weekend of building, learning, and community.",
p2: "Three hundred hackers submitted 100 projects and took part in nine workshops, turning ideas into practical solutions across civic technology and beyond.",
p3: "The event was made possible by 30 organisers and more than 20 volunteers. Our Hack the Hill III recap is on the way.",
frame_alt: "Hack the Hill II recap video from the previous edition",
p3: "The event was made possible by 30 organisers and more than 20 volunteers.",
frame_alt: "Hack the Hill III recap video",
},
stats: {
title: "Hack the Hill III brought together...",
Expand Down Expand Up @@ -152,7 +152,7 @@ export default {
title: "Frequently Asked Questions",

q1: "Where is the Hack the Hill III recap video?",
a1: "The recap is still being prepared. We will update this page when it is ready.",
a1: "Watch the Hack the Hill III recap on YouTube",

q2: "Where can I find event photos?",
a2: "Browse a selection of edited photos from Hack the Hill III in the Photos section above.",
Expand Down
6 changes: 3 additions & 3 deletions src/locales/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export default {
title: "Retour sur Hack&nbsp;the&nbsp;Hill&nbsp;III",
p1: "Du 25 au 27 septembre 2026, Hack the Hill III a réuni plus de 350 personnes à l’Université d’Ottawa pour une fin de semaine de création, d’apprentissage et de communauté.",
p2: "Trois cents hackers ont soumis 100 projets et participé à neuf ateliers, transformant leurs idées en solutions concrètes dans les technologies civiques et au-delà.",
p3: "L’événement a été rendu possible grâce à 30 organisateurs et plus de 20 bénévoles. Notre vidéo récapitulative de Hack the Hill III est en préparation.",
frame_alt: "Vidéo récapitulative de l’édition précédente, Hack the Hill II",
p3: "L’événement a été rendu possible grâce à 30 organisateurs et plus de 20 bénévoles.",
frame_alt: "Vidéo récapitulative de Hack the Hill III",
},
stats: {
title: "Hack the Hill III a réuni...",
Expand Down Expand Up @@ -154,7 +154,7 @@ export default {
title: "Foire aux questions",

q1: "Où est la vidéo récapitulative de Hack the Hill III?",
a1: "La vidéo est encore en préparation. Nous mettrons cette page à jour lorsqu’elle sera prête.",
a1: "Regarder la vidéo récapitulative de Hack the Hill III sur YouTube",

q2: "Où trouver les photos de l’événement?",
a2: "Découvrez une sélection de photos retouchées de Hack the Hill III dans la section Photos ci-dessus.",
Expand Down
Loading