import "./OurSponsors.css"; import { useEffect, useState } from "react"; import currentSponsorData from "../MockDB/sponsorship.yml"; import pastSponsorData from "../MockDB/pastSponsors.yml"; import yaml from "js-yaml"; /** * @param {null} null - requires onthing * @returns {JSX.Element} JSX - HTML tags and JS functionality * @description Our Sponsors Page * @author Brock * @todo finsih layout and add content */ const OurSponsors = () => { const [currentSponsorsDict, setCurrentSponsorsDict] = useState(); //variable states for the dictionary of sponsors const [pastSponsorsDict, setPastSponsorsDict] = useState(); useEffect(() => { getCurrentSponsors(); getPastSponsors(); }, []); /** * @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:"); } }; /** * @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 getPastSponsors = async () => { try { const res = await fetch(pastSponsorData); const rawText = await res.text(); const yamlDict = await yaml.load(rawText); setPastSponsorsDict(yamlDict); } catch (error) { // error checking console.error("Error recieving data from server:"); } }; return (

Sponsor

(How our team uses what's given by and benefits from sponsors)

QR code to contanct us form

Click on this to open the contact form

Talk about how you can reach out to sponsor us. (Maybe also include a link to the form as well)

(Talk about what we can offer our sponsors for helping us briefly or in a listing format. We can also mention how they can find more on the sponsorship package - plus provide some way they can access the package from here)

A photo of our sponsorship package
); }; export default OurSponsors;