feat(homepage): started colouring and layout

This commit is contained in:
darkicewolf50 2025-05-31 15:30:13 -06:00
parent 7397e4edcc
commit 7696efabb8
8 changed files with 44 additions and 63 deletions

View File

@ -4,7 +4,8 @@
padding-top: 10px; padding-top: 10px;
padding-bottom: 10px; padding-bottom: 10px;
justify-content: center; justify-content: center;
background-color: lightgrey; background-color: #a80029;
color: white;
} }
#pointerCursor { #pointerCursor {
@ -15,6 +16,7 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
column-gap: 2svw;
} }
#ender p { #ender p {
padding-left: 2%; padding-left: 2%;
@ -33,5 +35,5 @@
} }
#ender a img { #ender a img {
height: 7svh; height: 3svh;
} }

View File

@ -1,7 +1,6 @@
import "./Ender.css"; import "./Ender.css";
import linkedInLogo from "./InBug-White.png"; import linkedInLogo from "./InBug-White.png";
import instagramLogo from "./instagram-white-icon.png"; import instagramLogo from "./instagram-white-icon.png";
import emailLogo from "./email-white.png";
import authors from "./humans.txt"; import authors from "./humans.txt";
/** /**
* @param {null} null - requires onthing * @param {null} null - requires onthing
@ -36,21 +35,18 @@ export default function Ender() {
alt="Intragram Logo" alt="Intragram Logo"
/> />
</a> </a>
<a href={authors}>
<img
src="https://humanstxt.org/img/oficial-logos/humanstxt-transparent-1ink.png"
alt="humans txt"
/>
</a>
<a href="mailto:uofcbaja@gmail.com?subject=Lets start something great"> <a href="mailto:uofcbaja@gmail.com?subject=Lets start something great">
<img <img
src={emailLogo} style={{ filter: `invert()` }}
src="https://www.svgrepo.com/show/390657/email-envelope-letter-mail-message-communication.svg"
alt="email us logo" alt="email us logo"
/> />
</a> </a>
<a href="https://www.facebook.com/schulich.offroad/"> <a href="https://www.facebook.com/schulich.offroad/">
<img <img
src="https://img.icons8.com/ios-filled/50/FFFFFF/facebook--v1.png" style={{ filter: `invert()`, height: `3.25svh` }}
src="https://www.svgrepo.com/show/521654/facebook.svg"
alt="Facebook Logo" alt="Facebook Logo"
/> />
</a> </a>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

View File

@ -164,7 +164,7 @@ nav ul {
background: linear-gradient( background: linear-gradient(
to bottom, to bottom,
rgba(0, 0, 0, 0) var(--fade-starts-at-bottom, 70%), rgba(0, 0, 0, 0) var(--fade-starts-at-bottom, 70%),
whitesmoke 100% #1f1f1f 100%
); );
pointer-events: none; pointer-events: none;
z-index: 1; z-index: 1;
@ -193,7 +193,10 @@ nav ul {
/* used to postiion title and sub title */ /* used to postiion title and sub title */
#BannerHeader div { #BannerHeader div {
margin-top: 40svh; margin-top: 40svh;
padding-left: 60svw; margin-left: auto;
margin-right: 8svw;
/* padding-left: 60svw; */
/* text-align: end; */
} }
#BannerHeader h1 { #BannerHeader h1 {

View File

@ -139,7 +139,11 @@ export default function Header() {
style={{ backgroundImage: `url(${bannerInfo.imgUrl})` }}> style={{ backgroundImage: `url(${bannerInfo.imgUrl})` }}>
<div> <div>
<h1>{bannerInfo.titleText}</h1> <h1>{bannerInfo.titleText}</h1>
{bannerInfo.subtitleText === "" ? (
<></>
) : (
<h2>{bannerInfo.subtitleText}</h2> <h2>{bannerInfo.subtitleText}</h2>
)}
</div> </div>
</div> </div>
</> </>

View File

@ -1,45 +1,11 @@
#HomeTop {
display: flex;
position: relative;
justify-content: flex-end;
align-items: center;
}
#HomeTop img {
height: 76svh;
width: 100%;
background-image: url(https://picsum.photos/200);
background-size: cover;
background-position: center;
position: relative;
z-index: 0;
}
#HomeTop div {
display: flex;
flex-direction: column;
position: absolute;
z-index: 1;
margin-right: 25svw;
margin-bottom: 25svh;
}
#HomeTop div h1 {
margin: 0px;
}
/* #HomeTop div h2 {
} */
.HomePageLayout { .HomePageLayout {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
width: 70svw; padding: 0svh 15svw;
margin-top: 2svh; /* width: 70svw; */
padding-top: 2svh;
background-color: #1f1f1f;
color: white;
} }
.HomePageLayout div { .HomePageLayout div {
@ -64,7 +30,7 @@
/* text-decoration: none; */ /* text-decoration: none; */
color: inherit; color: inherit;
border: solid 2px black; /* border: solid 2px white; */
border-radius: 1rem; border-radius: 1rem;
padding: 10px; padding: 10px;
margin: 0svh 8svw; margin: 0svh 8svw;
@ -72,14 +38,15 @@
text-decoration: none; text-decoration: none;
text-align: center; text-align: center;
margin-top: 2svh; margin-top: 2svh;
background-color: #a80029;
} }
.HomePageLayout a:hover { .HomePageLayout a:hover {
background-color: grey; background-color: rgba(128, 128, 128, 0.4);
} }
.HomePageLayout h2 { .HomePageLayout h2 {
border-bottom: solid 3px black; border-bottom: solid 3px white;
/* padding-left: 2svw; */ /* padding-left: 2svw; */
padding-bottom: 0.5svh; padding-bottom: 0.5svh;
font-size: 36px; font-size: 36px;
@ -115,7 +82,7 @@
flex-direction: column; flex-direction: column;
border-radius: 15px; border-radius: 15px;
border: solid 2px black; border: solid 2px white;
padding: 30px; padding: 30px;
margin-top: 4svh; margin-top: 4svh;
@ -160,6 +127,10 @@
margin: 1svh 0svw; margin: 1svh 0svw;
} }
.HomePageLayout > div:nth-child(4) > img {
height: 40svh;
}
#HomeSponsorLinks { #HomeSponsorLinks {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -179,3 +150,8 @@
text-wrap: nowrap; text-wrap: nowrap;
text-align: center; text-align: center;
} }
#HomeBottomGallery img {
width: 100%;
height: 100%;
}

View File

@ -108,11 +108,12 @@ export default function Home() {
<div> <div>
<h2>Sponsor Us</h2> <h2>Sponsor Us</h2>
<p> <p>
UCalgary Baja is a student organization responsible for designing, We appreciate all the help we get from sponsors because it helps
building, and racing an off-road vehicle in the Baja SAE fund our Baja team with essential parts, materials, manufacturing
intercollegiate competition organized by the Society of Automotive support, and ability to go to competitions. Their contributions
Engineers (SAE) every year. Schulich Off-Road's cars are tough, make it possible for us to design, build, and compete at a high
dependable, competitive, and extremely fun to drive. level. From donated components to financial backing, our sponsors
are a key part of what drives our team forward.
</p> </p>
<Link to={"/OurSponsors"}>Learn More</Link> <Link to={"/OurSponsors"}>Learn More</Link>
</div> </div>

View File

@ -12,7 +12,6 @@ import Gallery from "./Gallery/Gallery";
import "./index.css"; import "./index.css";
import MockPage from "./MockDB/MockPage"; import MockPage from "./MockDB/MockPage";
import Home from "./Home/Home"; import Home from "./Home/Home";
import Home from "./Home/Home";
const root = ReactDOM.createRoot(document.getElementById("root")); const root = ReactDOM.createRoot(document.getElementById("root"));
root.render( root.render(