diff --git a/resources/triptico/turnosxpress-triptico-interno.afdesign b/resources/triptico/turnosxpress-triptico-interno.afdesign index 8903e5c..1c2df5f 100644 Binary files a/resources/triptico/turnosxpress-triptico-interno.afdesign and b/resources/triptico/turnosxpress-triptico-interno.afdesign differ diff --git a/resources/triptico/turnosxpress-triptico-interno.afdesign~lock~ b/resources/triptico/turnosxpress-triptico-interno.afdesign~lock~ deleted file mode 100644 index ddab720..0000000 Binary files a/resources/triptico/turnosxpress-triptico-interno.afdesign~lock~ and /dev/null differ diff --git a/resources/triptico/turnosxpress-triptico.afdesign b/resources/triptico/turnosxpress-triptico.afdesign index 22c8194..feea326 100644 Binary files a/resources/triptico/turnosxpress-triptico.afdesign and b/resources/triptico/turnosxpress-triptico.afdesign differ diff --git a/txclient/src/app/components/Home/Footer/Footer.tsx b/txclient/src/app/components/Home/Footer/Footer.tsx index dbe50d6..119f1f4 100644 --- a/txclient/src/app/components/Home/Footer/Footer.tsx +++ b/txclient/src/app/components/Home/Footer/Footer.tsx @@ -74,6 +74,9 @@ export default function Footer() { Mis organizaciones + + Obtener ayuda +

Contacto

info@turnosxpress.com.ar diff --git a/txclient/src/app/landing/help/components/VideoModal.tsx b/txclient/src/app/landing/help/components/VideoModal.tsx new file mode 100644 index 0000000..139cf97 --- /dev/null +++ b/txclient/src/app/landing/help/components/VideoModal.tsx @@ -0,0 +1,169 @@ +"use client"; + +import { useEffect, useCallback } from "react"; +import style from "../help.module.css"; +import { Video, videoCategories } from "../videoData"; + +interface VideoModalProps { + video: Video | null; + isOpen: boolean; + onClose: () => void; + onSelectVideo: (video: Video) => void; +} + +export default function VideoModal({ + video, + isOpen, + onClose, + onSelectVideo, +}: VideoModalProps) { + const handleKeyDown = useCallback( + (e: KeyboardEvent) => { + if (e.key === "Escape") { + onClose(); + } + }, + [onClose] + ); + + useEffect(() => { + if (isOpen) { + document.addEventListener("keydown", handleKeyDown); + document.body.style.overflow = "hidden"; + } + return () => { + document.removeEventListener("keydown", handleKeyDown); + document.body.style.overflow = ""; + }; + }, [isOpen, handleKeyDown]); + + if (!isOpen || !video) return null; + + const getCategoryName = (categoryId: string) => { + const cat = videoCategories.find((c) => c.id === categoryId); + return cat ? cat.name : ""; + }; + + const allVideos = videoCategories.flatMap((cat) => cat.videos); + const currentVideoIndex = allVideos.findIndex((v) => v.id === video.id); + + const handleNext = () => { + if (currentVideoIndex < allVideos.length - 1) { + onSelectVideo(allVideos[currentVideoIndex + 1]); + } + }; + + const handlePrev = () => { + if (currentVideoIndex > 0) { + onSelectVideo(allVideos[currentVideoIndex - 1]); + } + }; + + return ( +
+
e.stopPropagation()}> +
+

{video.title}

+ +
+
+
+
+