import "./OurSponsors.css"; import { useEffect, useState } from "react"; import currentSponsorData from "../MockDB/sponsorship.yml"; import yaml from "js-yaml"; import UpdateBanner from "../Header/UpdateBanner"; /** * @param {null} null - requires onthing * @returns {JSX.Element} JSX - HTML tags and JS functionality * @description Our Sponsors Page * @author Brock * @todo finish layout and add content */ const OurSponsors = () => { const [currentSponsorsDict, setCurrentSponsorsDict] = useState(); //variable states for the dictionary of sponsors // eslint-disable-next-line // const LinktoSponsorOutreachForm = // "https://docs.google.com/forms/d/e/1FAIpQLSd8eR1es9QJWjlQfGtpJaf8Jwv63d6Ei2e4FSpoBdkB6OiT4g/viewform?usp=sf_link"; useEffect(() => { getCurrentSponsors(); }, []); /** * @param {null} null - requires nothing (link) * @returns {Object} sponsorsDict - gets a Dictionary of our sponsors from synology drive * @description Gets the list of sponsors from the synology drive (not implemented), converts the json file into a dictionary * @author Brock * @todo add gPRC to backend and front end add connect to synology drive */ const getCurrentSponsors = async () => { try { const res = await fetch(currentSponsorData); const rawText = await res.text(); const yamlDict = await yaml.load(rawText); setCurrentSponsorsDict(yamlDict); } catch (error) { //error checking console.log(error); console.error("Error recieving data from server:"); } }; return (

Our partners are the foundation of our success.

By supporting us, you're helping shape the next generation of engineers. Our club members develop real-world skills, problem-solving abilities, and teamwork. And of course, with your help, we’re one step closer to victory.

); }; export default OurSponsors;