import React, { useState, useEffect, useRef } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { FaPlay, FaPause, FaStop } from 'react-icons/fa'; interface BoardMember { name: string; position: string; email: string; image: string; bio: string; } const boardMembers: BoardMember[] = [ { name: "Eliza Kragh", position: "President", email: "eliza.kragh@deafmissoula.org", image: "/headshots/eliza.jpg", bio: "Eliza Kragh is a devoted advocate for Deaf rights and a passionate outdoor enthusiast. When she's not paddling through serene lakes or hiking through untamed wilderness with her trusty sidekick Khaja, you can find Eliza pushing the boundaries of inclusivity and accessibility. Her dry wit and introspective nature often catch people off guard, but one thing is clear: Eliza leads by example, inspiring others to stand up for what's right. With a heart full of conviction and a spirit that refuses to be invisible, she's a true champion of Deaf excellence." }, { name: "Rita Brandborg", position: "Vice President", email: "rita.brandborg@deafmissoula.org", image: "/headshots/rita.jpg", bio: "Meet Rita Brandborg, the proud mom of two tiny tornados (Levi and Josie) who keep her on her toes! When she's not wrangling her mini-me's or teaching Sign 102 at the University of Montana, you can find Rita snapping photos with her trusty camera or reeling in the big ones fly fishing. This Deaf momma is all about spreading joy, love, and a little bit of chaos wherever she goes! With a heart full of laughter and a mind full of stories, Rita is living life to the fullest - and loving every minute of it!" }, { name: "Aubz M", position: "Secretary", email: "aubz.m@deafmissoula.org", image: "/headshots/aubz.jpg", bio: "Aubz M is a shining star at the local veterinary hospital, where they're paving their way to become a certified vet tech. This animal whisperer's heart beats for creatures great and small, but it also swells with love for self-care and coziness. When they're not snuggling Kanga (their adorable pup), Aubz can be found soaking up wellness vibes or cracking jokes that'll leave you giggling. With a quick wit and thoughtful spirit, this Deaf rockstar is spreading kindness and compassion wherever they go!" }, { name: "Kevin Cooley", position: "Treasurer", email: "kevin.cooley@deafmissoula.org", image: "/headshots/kevin.jpg", bio: "Kevin Cooley is a force to be reckoned with in the Deaf community. When he's not digging up dirt (literally) as an excavator operator, you can find him reeling in trout or decorating his pad with skulls (because why not?). Halloween? The holiday of all holidays! Kevin loves living life on his own terms and making those around him smile. With a heart of gold and a mind sharp enough to cut through any situation, he's the kind of friend who'll be there for you no matter what." }, { name: "Tessa Williams", position: "Event Coordinator", email: "tessa.williams@deafmissoula.org", image: "/headshots/tessa.jpg", bio: "Meet Tessa Williams, the sparkplug of the University of Montana Social Worker's program. By day, she's a social work student with a heart of gold; by night, she's a sass-spewing machine who can take down anyone with her quick wit and sharp humor. When she's not advocating for Deaf rights or making her friends laugh, Tessa can be found sipping on a matcha latte with honey (her happy place). Don't mess with this tiny firecracker - she's got love for all, except maybe for those who can't keep up with her sass." } ]; const shuffleArray = (array: BoardMember[]) => { const shuffled = [...array]; for (let i = shuffled.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); [shuffled[i], shuffled[j]] = [shuffled[j], shuffled[i]]; } return shuffled; }; const MeetBoard: React.FC = () => { const [selectedMember, setSelectedMember] = useState(null); const [shuffledMembers, setShuffledMembers] = useState([]); const videoRef = useRef(null); const [isPlaying, setIsPlaying] = useState(false); const [showControls, setShowControls] = useState(true); const [progress, setProgress] = useState(0); const controlsTimeoutRef = useRef(null); useEffect(() => { setShuffledMembers(shuffleArray(boardMembers)); }, []); const togglePlay = () => { if (videoRef.current) { if (isPlaying) { videoRef.current.pause(); } else { videoRef.current.play(); } setIsPlaying(!isPlaying); } }; const handleStop = () => { if (videoRef.current) { videoRef.current.pause(); videoRef.current.currentTime = 0; setIsPlaying(false); } }; const handleTimeUpdate = () => { if (videoRef.current) { const progress = (videoRef.current.currentTime / videoRef.current.duration) * 100; setProgress(progress); } }; const handleSeek = (e: React.ChangeEvent) => { if (videoRef.current) { const seekTime = (parseFloat(e.target.value) / 100) * videoRef.current.duration; videoRef.current.currentTime = seekTime; } }; const handleMouseMove = () => { setShowControls(true); if (controlsTimeoutRef.current) { clearTimeout(controlsTimeoutRef.current); } controlsTimeoutRef.current = setTimeout(() => { if (isPlaying) { setShowControls(false); } }, 3000); }; return (

Meet MCDi Board

{shuffledMembers.map((member, index) => ( setSelectedMember(member)} /> ))}
isPlaying && setShowControls(false)} > {showControls && (
)}
{selectedMember && ( setSelectedMember(null)} > e.stopPropagation()} >

{selectedMember.name}

{selectedMember.position}

{selectedMember.bio}

{selectedMember.email}
)}
); }; const BoardMemberCard: React.FC<{ member: BoardMember; onClick: () => void }> = ({ member, onClick }) => (

{member.name}

{member.name}

{member.position}

); export default MeetBoard;