mirror of
https://github.com/UofCBaja/BajaUofCWebsite.git
synced 2025-06-15 21:34:17 -06:00
OurSponsor page done need more css
This commit is contained in:
parent
8fc923ffd4
commit
fd5fec73a9
26
package-lock.json
generated
26
package-lock.json
generated
@ -15,7 +15,7 @@
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-native": "^0.72.6",
|
||||
"react-router-dom": "^6.17.0",
|
||||
"react-router-dom": "^6.20.0",
|
||||
"react-scripts": "5.0.1",
|
||||
"web-vitals": "^2.1.4"
|
||||
}
|
||||
@ -4540,9 +4540,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@remix-run/router": {
|
||||
"version": "1.10.0",
|
||||
"resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.10.0.tgz",
|
||||
"integrity": "sha512-Lm+fYpMfZoEucJ7cMxgt4dYt8jLfbpwRCzAjm9UgSLOkmlqo9gupxt6YX3DY0Fk155NT9l17d/ydi+964uS9Lw==",
|
||||
"version": "1.13.0",
|
||||
"resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.13.0.tgz",
|
||||
"integrity": "sha512-5dMOnVnefRsl4uRnAdoWjtVTdh8e6aZqgM4puy9nmEADH72ck+uXwzpJLEKE9Q6F8ZljNewLgmTfkxUrBdv4WA==",
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
}
|
||||
@ -18253,11 +18253,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/react-router": {
|
||||
"version": "6.17.0",
|
||||
"resolved": "https://registry.npmjs.org/react-router/-/react-router-6.17.0.tgz",
|
||||
"integrity": "sha512-YJR3OTJzi3zhqeJYADHANCGPUu9J+6fT5GLv82UWRGSxu6oJYCKVmxUcaBQuGm9udpWmPsvpme/CdHumqgsoaA==",
|
||||
"version": "6.20.0",
|
||||
"resolved": "https://registry.npmjs.org/react-router/-/react-router-6.20.0.tgz",
|
||||
"integrity": "sha512-pVvzsSsgUxxtuNfTHC4IxjATs10UaAtvLGVSA1tbUE4GDaOSU1Esu2xF5nWLz7KPiMuW8BJWuPFdlGYJ7/rW0w==",
|
||||
"dependencies": {
|
||||
"@remix-run/router": "1.10.0"
|
||||
"@remix-run/router": "1.13.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
@ -18267,12 +18267,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/react-router-dom": {
|
||||
"version": "6.17.0",
|
||||
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.17.0.tgz",
|
||||
"integrity": "sha512-qWHkkbXQX+6li0COUUPKAUkxjNNqPJuiBd27dVwQGDNsuFBdMbrS6UZ0CLYc4CsbdLYTckn4oB4tGDuPZpPhaQ==",
|
||||
"version": "6.20.0",
|
||||
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.20.0.tgz",
|
||||
"integrity": "sha512-CbcKjEyiSVpA6UtCHOIYLUYn/UJfwzp55va4yEfpk7JBN3GPqWfHrdLkAvNCcpXr8QoihcDMuk0dzWZxtlB/mQ==",
|
||||
"dependencies": {
|
||||
"@remix-run/router": "1.10.0",
|
||||
"react-router": "6.17.0"
|
||||
"@remix-run/router": "1.13.0",
|
||||
"react-router": "6.20.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
|
@ -10,7 +10,7 @@
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-native": "^0.72.6",
|
||||
"react-router-dom": "^6.17.0",
|
||||
"react-router-dom": "^6.20.0",
|
||||
"react-scripts": "5.0.1",
|
||||
"web-vitals": "^2.1.4"
|
||||
},
|
||||
|
48
src/OurSponsors/OurSponsors.css
Normal file
48
src/OurSponsors/OurSponsors.css
Normal file
@ -0,0 +1,48 @@
|
||||
#OurSponsors {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#OurSponsors div div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
width: 80%;
|
||||
padding-left: 10%;
|
||||
}
|
||||
|
||||
#OurSponsors div div div div img {
|
||||
display: flex;
|
||||
justify-content: left;
|
||||
}
|
||||
|
||||
#OurSponsors div div p {
|
||||
display: flex;
|
||||
justify-content: left;
|
||||
}
|
||||
|
||||
#OurSponsors div div div div {
|
||||
padding: 0%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: left;
|
||||
}
|
||||
|
||||
#OurSponsors div div div {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: end;
|
||||
padding: 0%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#OurSponsors h2 {
|
||||
background-color: aquamarine;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#OurSponsors h3 {
|
||||
text-align: left;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
|
||||
import './OurSponsors.css'
|
||||
const OurSponsors = () => {
|
||||
/*
|
||||
OurSponsors Page
|
||||
@ -21,18 +21,20 @@ const OurSponsors = () => {
|
||||
*/
|
||||
const tempListOfSponsors = {
|
||||
"Main Tier": {
|
||||
"Name":"",
|
||||
"LogoUrl":"",
|
||||
"Url":"",
|
||||
"DescriptionAboutSponsor":"this has text i dont care",
|
||||
"DecriptionOnHelp":"this has text i dont care"
|
||||
1:{
|
||||
"Name":"Hello",
|
||||
"LogoUrl":"",
|
||||
"Url":"",
|
||||
"DescriptionAboutSponsor":"this has text i dont care",
|
||||
"DecriptionOnHelp":"this has text i dont care"
|
||||
}
|
||||
},
|
||||
"Platnum Tier": {
|
||||
1:{
|
||||
"Name":"Schulich School of Engineering",
|
||||
"LogoUrl":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQj9L3ZGK6WtOmJbzxmCzRxwLXYKGC5SDcAKHb0ScfbUmbtG0IujQt6eQDaI_Pm9g4DZvc&usqp=CAU",
|
||||
"Url":"https://schulich.ucalgary.ca/",
|
||||
"DescriptionAboutSponsor":"this has text i dont care",
|
||||
"DescriptionAboutSponsor":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce eu magna in diam consectetur rhoncus vel nec turpis. Sed finibus mi eu sem varius faucibus. Donec semper erat et bibendum pharetra. Suspendisse cursus lorem sed nisi semper, a rutrum nunc luctus. Nunc ullamcorper enim id orci interdum ultrices. Donec vestibulum nunc vel nisl pretium tempus. Morbi quis ante et ligula eleifend eleifend. Proin bibendum maximus elit vitae congue. Vivamus egestas, ex in tempor posuere, ligula nunc iaculis massa, in imperdiet dui justo eu dolor. Nullam placerat velit quis sem mattis, laoreet pharetra elit tempor. ",
|
||||
"DecriptionOnHelp":"this has text i dont care"
|
||||
},
|
||||
2:{
|
||||
@ -48,79 +50,79 @@ const OurSponsors = () => {
|
||||
"Name":"",
|
||||
"LogoUrl":"",
|
||||
"Url":"",
|
||||
"DescriptionAboutSponsor":"this has text i dont care"
|
||||
"DescriptionAboutSponsor":"this has text i dont care",
|
||||
"DecriptionOnHelp":"this has text i dont care"
|
||||
},
|
||||
2:{
|
||||
"Name":"",
|
||||
"LogoUrl":"",
|
||||
"LogoUrl":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAgVBMVEX///8BAAIAAABgYGG6urv8/Pzx8fHr6+v5+fnn5+ewsLDR0dFMTEzk5OTa2tqoqKjJycmSkpKenp7X19eJiYl6enopKSmkpKS/v7+Dg4NfX19ERETLy8twcHC0tLRWVlYaGhqWlpYkJCQ7OzsSEhMxMTFpaWlHR0c2NjcNDQ4YGBk5BvXSAAAItElEQVR4nO2daX/yIAzAJ9a2875Xz25ee7bv/wEfa9WZAJW2MMJ+/F/uoIlQEnLgy4vH4/F4PB6Px+PxeDwej8fj8Xg8Ho/H46FK+NofDpMgGa77vci2MJrpBaPNPwaZn6bBpGVbMh10Rp93rRo37j/pjtZOaxlum1AzTK7lILQtaEWCbrF6D0qmgW1hy/M6VdDuUctFz7bIpegs1dW7K5l2bIutTKdbVr+rjt2JbdGVeE0r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owR1N4myycAnbWYODyy58XDlWDvduTsRYBrrf4Kd1GjeCO2kTc7A2aChtS5d2BuzIIlCOM8S/dO+pzFzyi8D3W37l6k/AbK4jOEAP8e8dMBl/fzPlm+OvSiPX+PoHv8+Evb+dbTvbunBT57yNkX3z1L18EfXDEfQv5HkuhNYgb/J9Rb+e6IGgSkUjOrdPsognyiZqh6JvaZD0w3DcaZdX6U9Jv41Dw9V5FB8Cl4NNgbETV+odv78KGfHaU9xjMRX/PWDOh15YQBifZpQrzgmUXiv8l+/7Q8TokomYrnrRnR/nFGEUKCu4sfVCSfe3TpmWW6eoovsb4Lun+yUTIVLxpSQKZhJc+n6drIMIerEuo3Yihfo8+NZjydc0bN1U8+yfKdq1duNZpwsr5mJHQVaBMeQdT+KW1ZGHsUD4XEW+c0fFsqau1afWaLuh4lvFQvfYgmhXbV+tk4i3rRejjwZ6qkhfvZvXkG9vVJjL/7no6it6k2W0Cbee61mSQO/NUOJ6miYHoQ9Trr5PAMsmw06N6Ivd4PB6Px+PxeDwej8fj8Xg8Ho/H4/F43Oc/L3NkYgLc5HgAAAAASUVORK5CYII=",
|
||||
"Url":"",
|
||||
"DescriptionAboutSponsorAboutSponsor":"this has text i dont care",
|
||||
"DecriptionOnHelp":"this has text i dont care"
|
||||
"DescriptionAboutSponsor":"1this has text i dont care",
|
||||
"DecriptionOnHelp":"2this has text i dont care"
|
||||
}
|
||||
},
|
||||
"Silver Tier": {
|
||||
1:{
|
||||
"Name":"",
|
||||
"Name":"Father",
|
||||
"LogoUrl":"",
|
||||
"Url":"",
|
||||
"DescriptionAboutSponsorAboutSponsor":"Dont get this",
|
||||
"DecriptionOnHelp":"Dont get this"
|
||||
"Url":""
|
||||
//"DescriptionAboutSponsor":"", //Dont get this
|
||||
//"DecriptionOnHelp":"" //Dont get this
|
||||
},
|
||||
2:{
|
||||
"Name":"",
|
||||
"Name":"Help",
|
||||
"LogoUrl":"",
|
||||
"Url":"",
|
||||
"DescriptionAboutSponsorAboutSponsor":"Dont get this",
|
||||
"DecriptionOnHelp":"Dont get this"
|
||||
"Url":""
|
||||
//"DescriptionAboutSponsor":"", //Dont get this
|
||||
//"DecriptionOnHelp":"" //Dont get this
|
||||
}
|
||||
},
|
||||
"Bronze Tier":{
|
||||
1:{
|
||||
"Name":"",
|
||||
"LogoUrl":"Dont get this",
|
||||
"Url":"",
|
||||
"DescriptionAboutSponsorAboutSponsor":"Dont get this",
|
||||
"DecriptionOnHelp":"Dont get this"
|
||||
"Name":"I'm",
|
||||
//"LogoUrl":"", //Dont get this
|
||||
"Url":""
|
||||
//"DescriptionAboutSponsor":"", //Dont get this
|
||||
//"DecriptionOnHelp":"" //Dont get this
|
||||
},
|
||||
2:{
|
||||
"Name":"",
|
||||
"LogoUrl":"Dont get this",
|
||||
"Url":"",
|
||||
"DescriptionAboutSponsorAboutSponsor":"Dont get this",
|
||||
"DecriptionOnHelp":"Dont get this"
|
||||
"Name":"Stuck to a cactus",
|
||||
//"LogoUrl":"", //Dont get this
|
||||
"Url":""
|
||||
//"DescriptionAboutSponsor":"", //Dont get this
|
||||
//"DecriptionOnHelp":"" //Dont get this
|
||||
}
|
||||
}
|
||||
};
|
||||
console.log("It ran");
|
||||
return tempListOfSponsors;
|
||||
}
|
||||
const dictOfSponsors = getSponsors();
|
||||
|
||||
//to fix make each of these a function and return the proper
|
||||
return <>
|
||||
{if (dictOfSponsors["Main Tier"] != null) {
|
||||
<>
|
||||
<h2>Main Tier</h2>
|
||||
<a href={dictOfSponsors["Main Tier"]["Url"]}><img src={dictOfSponsors["Main Tier"]["LogoUrl"]}></img></a>
|
||||
<h3>{dictOfSponsors["Main Tier"]["Name"]}</h3>
|
||||
<p>{dictOfSponsors["Main Tier"]["DescriptionAboutSponsor"]}</p>
|
||||
<p>{dictOfSponsors["Main Tier"]["DecriptionOnHelp"]}</p>
|
||||
</>
|
||||
}
|
||||
}
|
||||
{for(let i = 0; i < Object.keys(dictOfSponsors).length; i++) {
|
||||
<>
|
||||
<h2>{Object.keys(dictOfSponsors)[i]}</h2>
|
||||
</>
|
||||
{for(let j = 0; j < Object.keys(dictOfSponsors[i]).length): j++){
|
||||
<>
|
||||
<a href={dictOfSponsors[i][j]["Url"]}><img src={dictOfSponsors[i][j]["LogoUrl"]}></img></a>
|
||||
<h3>{dictOfSponsors[i][j]["Name"]}</h3>
|
||||
<p>{dictOfSponsors[i][j]["DescriptionAboutSponsor"]}</p>
|
||||
<p>{dictOfSponsors[i][j]["DecriptionOnHelp"]}</p>
|
||||
</>
|
||||
}}
|
||||
}}
|
||||
</>;
|
||||
return (<div id='OurSponsors'>
|
||||
{Object.keys(dictOfSponsors).map((sponsorTier) => (
|
||||
<div key={sponsorTier} className={sponsorTier}>
|
||||
<h2>{sponsorTier}</h2>
|
||||
{Object.keys(dictOfSponsors[sponsorTier]).map((sponsorKey) => {
|
||||
const sponsor = dictOfSponsors[sponsorTier][sponsorKey];
|
||||
return (
|
||||
<div key={sponsorKey}>
|
||||
<div>
|
||||
<div>
|
||||
{sponsor.Name && <h3>{sponsor.Name}</h3>}
|
||||
{sponsor.LogoUrl && <a href={sponsor.Url}><img src={sponsor.LogoUrl} alt="Sponsor Logo" /></a>}
|
||||
</div>
|
||||
{(sponsor.DescriptionAboutSponsor !== undefined && sponsor.DecriptionOnHelp !== undefined) && <p>Another Element</p>}
|
||||
</div>
|
||||
{sponsor.DescriptionAboutSponsor !== undefined && <p>{sponsor.DescriptionAboutSponsor}</p>}
|
||||
{sponsor.DecriptionOnHelp !== undefined && <p>{sponsor.DecriptionOnHelp}</p>}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
))}
|
||||
</div>);
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user