/* videos.jsx — YouTube video carousel with lightbox modal */ const VIDEOS = [ { id: "XuiSB-NvadU", title: "Lahmee — modern matrimony, your way.", label: "01 · Brand film", duration: "1:24", }, { id: "qOYG6tumbEs", title: "Privacy you can actually feel.", label: "02 · How it works", duration: "0:58", }, { id: "1YuZN2Q-ieI", title: "Couples who found each other on Lahmee.", label: "03 · Stories", duration: "1:12", }, ]; const ytThumb = (id) => `https://img.youtube.com/vi/${id}/maxresdefault.jpg`; function VideoCarousel() { const [active, setActive] = React.useState(0); const [open, setOpen] = React.useState(false); const v = VIDEOS[active]; React.useEffect(() => { if (!open) return; const onKey = (e) => { if (e.key === "Escape") setOpen(false); }; document.body.style.overflow = "hidden"; window.addEventListener("keydown", onKey); return () => { document.body.style.overflow = ""; window.removeEventListener("keydown", onKey); }; }, [open]); const prev = () => setActive((i) => (i - 1 + VIDEOS.length) % VIDEOS.length); const next = () => setActive((i) => (i + 1) % VIDEOS.length); return (
Three short films,
and you'll get it.} lead="A brand film, a privacy walkthrough, and a few couples telling their own story. Tap any one to play." /> {/* Featured player */}
{/* Thumbnail strip */}
{VIDEOS.map((vid, i) => ( ))}
{/* Lightbox */} {open && (
setOpen(false)} role="dialog" aria-modal="true">
e.stopPropagation()}>