mirror of
https://github.com/PotentiaRobotics/website.git
synced 2025-04-20 12:20:19 -04:00
Add new hero
This commit is contained in:
parent
c4284959df
commit
959c594cb9
|
@ -1,9 +1,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import "./assets/Home.scss";
|
import "./assets/Home.scss";
|
||||||
import bot1 from "./assets/img/bot1.png";
|
import hero from "./assets/img/olympian_hero.png";
|
||||||
import bot2 from "./assets/img/bot2.png";
|
|
||||||
|
|
||||||
const BOT_IMAGES = [bot1, bot2];
|
|
||||||
|
|
||||||
export default function Home(props) {
|
export default function Home(props) {
|
||||||
return (
|
return (
|
||||||
|
@ -14,12 +12,12 @@ export default function Home(props) {
|
||||||
</div>
|
</div>
|
||||||
<div className="landing-subheader">
|
<div className="landing-subheader">
|
||||||
<p>
|
<p>
|
||||||
Moving into the future, one step at a time
|
The first high school team to build a full-size bipedal humanoid robot.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img
|
||||||
className="landing-robot"
|
className="landing-robot"
|
||||||
src={BOT_IMAGES[1]}
|
src={hero}
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
|
@ -82,6 +82,12 @@ export default function Navbar(props) {
|
||||||
Donate
|
Donate
|
||||||
</NavLink>
|
</NavLink>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
{" "}
|
||||||
|
<NavLink to="/events" activeClassName="active-link">
|
||||||
|
Events
|
||||||
|
</NavLink>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div className="burger" onClick={handleBurger}>
|
<div className="burger" onClick={handleBurger}>
|
||||||
<div className="line1"></div>
|
<div className="line1"></div>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
|
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap");
|
||||||
|
|
||||||
$mobile: 768px;
|
$mobile: 768px;
|
||||||
$tablet: 1024px;
|
$tablet: 1024px;
|
||||||
|
@ -29,7 +29,7 @@ $tablet: 1024px;
|
||||||
|
|
||||||
.hero {
|
.hero {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
height: 86vh;
|
// height: 86vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.landing-header {
|
.landing-header {
|
||||||
|
@ -39,24 +39,27 @@ $tablet: 1024px;
|
||||||
margin-left: 0.4em;
|
margin-left: 0.4em;
|
||||||
|
|
||||||
#potentia {
|
#potentia {
|
||||||
margin-top: 0.4em;
|
padding-left: 0.4em;
|
||||||
|
z-index: 999 !important;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
#robotics {
|
#robotics {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-left: 0.4em;
|
top: -0.3em;
|
||||||
|
padding-left: 0.8em;
|
||||||
z-index: 999 !important;
|
z-index: 999 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.landing-robot {
|
.landing-robot {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 1;
|
opacity: 1;
|
||||||
opacity: 0;
|
// left: 40vw;
|
||||||
left: 40vw;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
animation: navLinkFade 0.5s ease forwards 0.5s;
|
// animation: navLinkFade 0.5s ease forwards 0.5s;
|
||||||
max-height: 87vh;
|
// max-height: 87vh;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes robotFlyIn {
|
@keyframes robotFlyIn {
|
||||||
|
@ -73,19 +76,21 @@ $tablet: 1024px;
|
||||||
|
|
||||||
.landing-subheader {
|
.landing-subheader {
|
||||||
font-family: "Poppins", sans-serif;
|
font-family: "Poppins", sans-serif;
|
||||||
font-size: 1.5vw;
|
font-size: 3vw;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-top: 30vh;
|
margin-top: 60vh;
|
||||||
margin-right: 10%;
|
// margin-right: 10%;
|
||||||
right: 0;
|
// right: 0;
|
||||||
width: 20%;
|
margin-left: 3em;
|
||||||
|
z-index: 999 !important;
|
||||||
|
width: 60%;
|
||||||
|
|
||||||
@include tablet {
|
@include tablet {
|
||||||
display: none;
|
margin-top: 40vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include mobile {
|
@include mobile {
|
||||||
display: none;
|
margin-top: 25vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
|
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
|
||||||
|
|
||||||
$white: rgb(236, 236, 236);
|
$white: rgb(247, 247, 247);
|
||||||
$gray: rgb(197, 197, 197);
|
$gray: rgb(172, 172, 172);
|
||||||
$black: #000;
|
$black: #000;
|
||||||
$mobile: 768px;
|
$mobile: 768px;
|
||||||
$tablet: 1024px;
|
$tablet: 1024px;
|
||||||
|
@ -36,21 +36,24 @@ nav {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
min-height: 10vh;
|
min-height: 10vh;
|
||||||
font-family: "Poppins", sans-serif;
|
font-family: "Poppins", sans-serif;
|
||||||
|
padding-bottom: 0.75em;
|
||||||
|
background: rgb(0, 0, 0);
|
||||||
|
//linear-gradient(135deg, rgb(80, 100, 147), 95%, #000c40)
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-logo {
|
.nav-logo {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
margin-left: -40px;
|
|
||||||
float: left;
|
float: left;
|
||||||
width: 276px;
|
width: 167px;
|
||||||
height: 115px;
|
height: 69px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-links {
|
.nav-links {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
width: 750px;
|
width: 900px;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
|
padding-top: 10px;
|
||||||
|
|
||||||
@include tablet {
|
@include tablet {
|
||||||
width: 40%;
|
width: 40%;
|
||||||
|
@ -66,7 +69,7 @@ nav {
|
||||||
}
|
}
|
||||||
|
|
||||||
.active-link {
|
.active-link {
|
||||||
color: $black !important;
|
color: $white !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.burger {
|
.burger {
|
||||||
|
|
BIN
src/components/assets/img/olympian.png
Normal file
BIN
src/components/assets/img/olympian.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 710 KiB |
BIN
src/components/assets/img/olympian_hero.png
Normal file
BIN
src/components/assets/img/olympian_hero.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 500 KiB |
Loading…
Reference in New Issue
Block a user