import React, { useState } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; interface SponsorCardProps { name: string; logoPath: string; description: string; onClick: () => void; websiteUrl?: string; facebookUrl?: string; instagramUrl?: string; } const SponsorCard: React.FC = ({ name, logoPath, onClick, websiteUrl, facebookUrl, instagramUrl }) => (

{name}

{`${name}
{websiteUrl && ( e.stopPropagation()}> Website )} {facebookUrl && ( e.stopPropagation()}> Facebook )} {instagramUrl && ( e.stopPropagation()}> Instagram )}
); interface PopupProps { isOpen: boolean; onClose: () => void; children: React.ReactNode; websiteUrl?: string; facebookUrl?: string; instagramUrl?: string; } const Popup: React.FC = ({ isOpen, onClose, children, websiteUrl, facebookUrl, instagramUrl }) => ( {isOpen && ( e.stopPropagation()} > {children}
{websiteUrl && ( Website )} {facebookUrl && ( Facebook )} {instagramUrl && ( Instagram )}
)}
); interface SponsorInfo { description: string; logoPath: string; websiteUrl?: string; facebookUrl?: string; instagramUrl?: string; } const Sponsors: React.FC = () => { const [selectedSponsor, setSelectedSponsor] = useState(null); const sponsorInfo: Record = { "Drum Coffee": { description: "Drum Coffee partnered with MCDi to provide ASL lessons on coffee-related signology, enhancing their ability to serve Deaf community members. This initiative promotes inclusivity and improves communication in their bustling cafe environment.", logoPath: "/sponsors/drum-coffee-missoula.png", websiteUrl: "https://drumcoffeeroasting.com/", facebookUrl: "https://m.facebook.com/drumcoffeemt", instagramUrl: "https://www.instagram.com/drumcoffee/" }, "Imagine Nation Brewing": { description: "Imagine Nation Brewing hosted a vibrant fundraising event, donating proceeds to MCDi. Their generous support not only raised funds but also raised awareness about the Deaf community, making a significant impact on our mission.", logoPath: "/sponsors/imagine-nation-brewing.png", websiteUrl: "https://imaginenationbrewing.com/", facebookUrl: "https://m.facebook.com/ImagineNationBrewing", instagramUrl: "https://www.instagram.com/imaginenationbrewingco" }, "GILD Brewing": { description: "GILD Brewing organized a community-focused fundraiser for MCDi, combining craft beer tasting with Deaf culture education. Their event not only raised funds but also fostered a deeper understanding of Deaf culture, making a significant impact on our mission.", logoPath: "/sponsors/gild-brewing.png", websiteUrl: "https://www.gildbrewing.com/", facebookUrl: "https://m.facebook.com/gildbrewing/", instagramUrl: "https://www.instagram.com/gildbrewing/" }, "SBS Solar": { description: "SBS Solar supports MCDi's mission to serve the Deaf community in Missoula. Their commitment to renewable energy and community engagement aligns with our values of accessibility and sustainability.", logoPath: "/sponsors/sbs-solar.png", websiteUrl: "https://www.sbssolar.com/", facebookUrl: "https://www.facebook.com/sbssolar", instagramUrl: "https://www.instagram.com/sbssolar/" }, }; return (

Our Sponsors

{Object.entries(sponsorInfo).map(([name, info]) => ( setSelectedSponsor(name)} websiteUrl={info.websiteUrl} facebookUrl={info.facebookUrl} instagramUrl={info.instagramUrl} /> ))}
setSelectedSponsor(null)} websiteUrl={selectedSponsor ? sponsorInfo[selectedSponsor].websiteUrl : undefined} facebookUrl={selectedSponsor ? sponsorInfo[selectedSponsor].facebookUrl : undefined} instagramUrl={selectedSponsor ? sponsorInfo[selectedSponsor].instagramUrl : undefined} > {selectedSponsor && ( <>

{selectedSponsor}

{sponsorInfo[selectedSponsor].description}

)}
); }; export default Sponsors;