mirror of
https://github.com/UofCBaja/BajaUofCWebsite.git
synced 2025-07-28 22:10:54 -06:00
feat(sponsors): sponsors page redone with new colors
This commit is contained in:
@ -31,16 +31,16 @@
|
|||||||
#History div button {
|
#History div button {
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
border: 1px solid white;
|
border: none;
|
||||||
padding: 1svh 6svw;
|
padding: 2svh 5svw;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
background-color: var(--BajaRed);
|
background-color: var(--BajaRed);
|
||||||
font-size: larger;
|
font-size: larger;
|
||||||
}
|
}
|
||||||
|
|
||||||
#History div button:hover {
|
#History div button:hover {
|
||||||
background-color: lightblue;
|
background-color: rgba(128, 128, 128, 0.4);
|
||||||
color: #a80029;
|
/* color: #a80029; */
|
||||||
}
|
}
|
||||||
|
|
||||||
#History table {
|
#History table {
|
||||||
|
@ -57,16 +57,25 @@
|
|||||||
|
|
||||||
#SponsorsAbout a:hover {
|
#SponsorsAbout a:hover {
|
||||||
background-color: rgba(128, 128, 128, 0.4);
|
background-color: rgba(128, 128, 128, 0.4);
|
||||||
color: var(--BajaBlack);
|
}
|
||||||
|
|
||||||
|
#Sponsor {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
padding-bottom: 3svh;
|
||||||
|
background-color: var(--BajaBlack);
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
#Sponsor .Sponsors h3 {
|
#Sponsor .Sponsors h3 {
|
||||||
font-size: xx-large;
|
font-size: xx-large;
|
||||||
margin: 2svh 1svw;
|
margin: 4svh 1svw;
|
||||||
}
|
}
|
||||||
|
|
||||||
#Sponsor {
|
#Sponsor .Sponsors h4 {
|
||||||
padding-bottom: 3svh;
|
font-size: xx-large;
|
||||||
|
margin: 1svh 1svw;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#SponsorEnd {
|
#SponsorEnd {
|
||||||
@ -96,20 +105,30 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
align-items: center;
|
/* align-items: center; */
|
||||||
width: 70svw;
|
/* width: 70svw; */
|
||||||
|
}
|
||||||
|
|
||||||
|
.Sponsors div {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
padding: 2svh 2svw;
|
||||||
|
column-gap: 2svw;
|
||||||
|
row-gap: 2svh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Sponsors a {
|
.Sponsors a {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: whitesmoke;
|
background-color: rgba(38, 38, 38, 0.5);
|
||||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||||
transition: scale 0.3s;
|
transition: scale 0.3s;
|
||||||
width: inherit;
|
padding: 1svh 1svw;
|
||||||
|
border-radius: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Sponsors a:hover {
|
.Sponsors a:hover {
|
||||||
@ -119,59 +138,52 @@
|
|||||||
|
|
||||||
.Sponsors a div {
|
.Sponsors a div {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-flow: row nowrap;
|
||||||
height: inherit;
|
height: inherit;
|
||||||
width: fit-content;
|
padding: 0px;
|
||||||
|
column-gap: 1svw;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Sponsors a div div {
|
.Sponsors a div div {
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding-left: 5svw;
|
row-gap: 0.5svh;
|
||||||
|
min-width: 30ch;
|
||||||
max-width: 60ch;
|
max-width: 60ch;
|
||||||
|
margin: 2svh 0svw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Sponsors a div div p {
|
||||||
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Sponsors a h3 {
|
.Sponsors a h3 {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: fit-content;
|
/* width: fit-content; */
|
||||||
border-bottom: var(--sponsorBorder);
|
border-bottom: var(--sponsorBorder);
|
||||||
}
|
}
|
||||||
|
|
||||||
.Sponsors a img {
|
.Sponsors a img {
|
||||||
|
min-height: 10svh;
|
||||||
max-height: 24svh;
|
max-height: 24svh;
|
||||||
width: 24svw;
|
min-width: 100px;
|
||||||
padding-top: 1svh;
|
max-width: 240px;
|
||||||
padding-bottom: 1svh;
|
padding: 1svh 0.5svw;
|
||||||
|
background-color: grey;
|
||||||
|
border-radius: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sponsorCenter {
|
.sponsorCenter {
|
||||||
display: flex;
|
width: 72%;
|
||||||
justify-content: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sponsorGridContainer {
|
@media only screen and (max-width: 1025px) {
|
||||||
display: grid;
|
.Sponsors a {
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
flex-grow: 1;
|
||||||
grid-gap: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sponsorGridItem {
|
.Sponsors a div div {
|
||||||
background-color: aqua;
|
max-width: none;
|
||||||
width: calc(100%- 20px);
|
min-width: 1px;
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sponsorGridContainer .sponsorGridItem div div {
|
|
||||||
flex: 1;
|
|
||||||
padding-left: 1svw;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sponsorGridItem h3 {
|
|
||||||
text-align: center;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sponsorGridItem {
|
|
||||||
grid-column: span 1;
|
|
||||||
}
|
}
|
||||||
|
@ -73,29 +73,18 @@ const OurSponsors = () => {
|
|||||||
<>
|
<>
|
||||||
{/* gets the outmost name of the Object Name of tier*/}
|
{/* gets the outmost name of the Object Name of tier*/}
|
||||||
{Object.keys(currentSponsorsDict).map((sponsorsTier) => {
|
{Object.keys(currentSponsorsDict).map((sponsorsTier) => {
|
||||||
let changetoGridStyle =
|
|
||||||
sponsorsTier === "Diamond Tier" ||
|
|
||||||
sponsorsTier === "Platinum Tier";
|
|
||||||
let girdContainer = changetoGridStyle
|
|
||||||
? ""
|
|
||||||
: "sponsorGridContainer";
|
|
||||||
let gridItem = changetoGridStyle ? "" : "sponsorGridItem";
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={sponsorsTier}
|
key={sponsorsTier}
|
||||||
className="Sponsors">
|
className="Sponsors">
|
||||||
<h3>{sponsorsTier}</h3>
|
<h3>{sponsorsTier}</h3>
|
||||||
<div className={girdContainer}>
|
<div>
|
||||||
{/* gets key form list of tier */}
|
{/* gets key form list of tier */}
|
||||||
{Object.keys(currentSponsorsDict[sponsorsTier]).map(
|
{Object.keys(currentSponsorsDict[sponsorsTier]).map(
|
||||||
(sponsorsKey) => {
|
(sponsorsKey) => {
|
||||||
return (
|
const sponsorsGroup =
|
||||||
<div key={sponsorsKey}>
|
currentSponsorsDict[sponsorsTier][sponsorsKey];
|
||||||
{/* gets name out of object and gets data of that sponsor preped */}
|
return Object.keys(sponsorsGroup).map((sponsorName) => {
|
||||||
{Object.keys(
|
|
||||||
currentSponsorsDict[sponsorsTier][sponsorsKey]
|
|
||||||
).map((sponsorName) => {
|
|
||||||
let sponsorData =
|
let sponsorData =
|
||||||
currentSponsorsDict[sponsorsTier][sponsorsKey][
|
currentSponsorsDict[sponsorsTier][sponsorsKey][
|
||||||
sponsorName
|
sponsorName
|
||||||
@ -108,7 +97,6 @@ const OurSponsors = () => {
|
|||||||
key={sponsorData}
|
key={sponsorData}
|
||||||
href={sponsorData.Url}
|
href={sponsorData.Url}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
className={gridItem}
|
|
||||||
rel="noreferrer">
|
rel="noreferrer">
|
||||||
<div>
|
<div>
|
||||||
<img
|
<img
|
||||||
@ -117,22 +105,18 @@ const OurSponsors = () => {
|
|||||||
/>
|
/>
|
||||||
{sponsorBronzeSilver === true ? (
|
{sponsorBronzeSilver === true ? (
|
||||||
<div>
|
<div>
|
||||||
<h3>{sponsorName}</h3>
|
<h4>{sponsorName}</h4>
|
||||||
<p>
|
<p>{sponsorData.DescriptionAboutSponsor}</p>
|
||||||
{sponsorData.DescriptionAboutSponsor}
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="sponsorCenter">
|
<div className="sponsorCenter">
|
||||||
<h3>{sponsorName}</h3>
|
<h4>{sponsorName}</h4>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
})}
|
});
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user