import { useEffect, useRef } from 'react' import { useNavigate } from 'react-router-dom' import '../styles/AboutPage.css' function AboutPage() { const videoRef = useRef(null) const navigate = useNavigate() useEffect(() => { const hash = window.location.hash if (hash === '#founders') { const el = document.getElementById('founders-section') el?.scrollIntoView({ behavior: 'smooth' }) } const handleVisibility = () => { if (videoRef.current) { if (document.visibilityState === 'visible') { videoRef.current.play().catch(() => {}) } else { videoRef.current.pause() } } } document.addEventListener('visibilitychange', handleVisibility) return () => { document.removeEventListener('visibilitychange', handleVisibility) } }, []) return ( <>