mirror of
https://github.com/UofCBaja/BajaUofCWebsite.git
synced 2025-06-16 05:44:17 -06:00
feat(header): updated so header works with and without banner image, started Vehicles page
This commit is contained in:
parent
207f046242
commit
fb51e2ef11
@ -9,7 +9,7 @@ header {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
background-color: #1f1f1f;
|
background-color: #1f1f1f;
|
||||||
position: absolute;
|
/* position: absolute; */
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -163,7 +163,6 @@ nav a li:hover {
|
|||||||
:root {
|
:root {
|
||||||
--fade-starts-at-bottom: 90%;
|
--fade-starts-at-bottom: 90%;
|
||||||
--fade-starts-at-top: 96%;
|
--fade-starts-at-top: 96%;
|
||||||
--banner-text-pos-left: 15svw;
|
|
||||||
--banner-text-background: white;
|
--banner-text-background: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -181,14 +180,14 @@ nav a li:hover {
|
|||||||
|
|
||||||
/* used to postiion title and sub title */
|
/* used to postiion title and sub title */
|
||||||
#BannerHeader div {
|
#BannerHeader div {
|
||||||
margin-top: 25%;
|
margin-top: 30svh;
|
||||||
|
padding-left: 15svw;
|
||||||
}
|
}
|
||||||
|
|
||||||
#BannerHeader h1 {
|
#BannerHeader h1 {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
margin-left: var(--banner-text-pos-left);
|
|
||||||
|
|
||||||
font-size: 80px; /* todo make larger */
|
font-size: 80px; /* todo make larger */
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
@ -200,8 +199,6 @@ nav a li:hover {
|
|||||||
display: flex;
|
display: flex;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
|
||||||
margin-left: var(--banner-text-pos-left);
|
|
||||||
|
|
||||||
font-size: xx-large;
|
font-size: xx-large;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ export default function Header() {
|
|||||||
titleText: "UCalgary Baja",
|
titleText: "UCalgary Baja",
|
||||||
subtitleText: "Hello",
|
subtitleText: "Hello",
|
||||||
imgUrl: "https://picsum.photos/200",
|
imgUrl: "https://picsum.photos/200",
|
||||||
|
headerPostion: "absolute",
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -50,7 +51,13 @@ export default function Header() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<header>
|
<header
|
||||||
|
style={{
|
||||||
|
position:
|
||||||
|
bannerInfo.titleText === "" && bannerInfo.imgUrl === ""
|
||||||
|
? "relative"
|
||||||
|
: "absolute",
|
||||||
|
}}>
|
||||||
<Link to={"/"}>
|
<Link to={"/"}>
|
||||||
<img
|
<img
|
||||||
id="logo"
|
id="logo"
|
||||||
@ -66,8 +73,8 @@ export default function Header() {
|
|||||||
<Link to={"/About"}>
|
<Link to={"/About"}>
|
||||||
<li>ABOUT</li>
|
<li>ABOUT</li>
|
||||||
</Link>
|
</Link>
|
||||||
<Link to={"/Teams"}>
|
<Link to={"/Vehicles"}>
|
||||||
<li>TEAM</li>
|
<li>OUR VEHICLES</li>
|
||||||
</Link>
|
</Link>
|
||||||
<Link to={"/"}>
|
<Link to={"/"}>
|
||||||
<li>HISTORY</li>
|
<li>HISTORY</li>
|
||||||
|
0
src/Vehicles/Vehicles.css
Normal file
0
src/Vehicles/Vehicles.css
Normal file
15
src/Vehicles/Vehicles.jsx
Normal file
15
src/Vehicles/Vehicles.jsx
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import UpdateBanner from "../Header/UpdateBanner";
|
||||||
|
import "./Vehicles.css";
|
||||||
|
|
||||||
|
export default function Vehicles() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<UpdateBanner
|
||||||
|
updatedTitleText=""
|
||||||
|
updatedSubtitleText=""
|
||||||
|
updatedImgUrl=""
|
||||||
|
updatetdImgAlt=""
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
@ -12,6 +12,7 @@ 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 Vehicles from "./Vehicles/Vehicles";
|
||||||
|
|
||||||
const root = ReactDOM.createRoot(document.getElementById("root"));
|
const root = ReactDOM.createRoot(document.getElementById("root"));
|
||||||
root.render(
|
root.render(
|
||||||
@ -27,8 +28,8 @@ root.render(
|
|||||||
path="/About"
|
path="/About"
|
||||||
element={<AboutUs />}></Route>
|
element={<AboutUs />}></Route>
|
||||||
<Route
|
<Route
|
||||||
path="/Teams"
|
path="/Vehicles"
|
||||||
element={<SubTeams />}></Route>
|
element={<Vehicles />}></Route>
|
||||||
<Route
|
<Route
|
||||||
path="/OurSponsors"
|
path="/OurSponsors"
|
||||||
element={<OurSponsors />}></Route>
|
element={<OurSponsors />}></Route>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user