move to top

This commit is contained in:
Nicholas Orlowsky 2023-03-12 18:11:02 -05:00
parent aeef385c85
commit 261a4fcacd
3 changed files with 18 additions and 2 deletions

View file

@ -16,6 +16,11 @@ html {
background-color: black; background-color: black;
} }
.fade-down-d3s {
opacity: 0;
animation: fade-down-anim 2s forwards 3s;
}
/* we do this because scroll snapping is broken on moz://a for some reason */ /* we do this because scroll snapping is broken on moz://a for some reason */
@supports (-moz-appearance:none){ @supports (-moz-appearance:none){
html { html {
@ -49,6 +54,17 @@ h1 {
} }
} }
@keyframes fade-down-anim {
0% {
opacity: 0;
transform: translateY(-40px);
}
100% {
opacity:1;
transform: translateY(0px);
}
}
@media only screen and (max-width: 993px) { @media only screen and (max-width: 993px) {
.fade-up-md { .fade-up-md {

View file

@ -14,10 +14,10 @@ import Projects from "./components/projects/Projects";
const NavBarView = (props: {children: any}) => { const NavBarView = (props: {children: any}) => {
return ( return (
<div> <div>
<Navbar/>
<div style={{height: "95vh"}}> <div style={{height: "95vh"}}>
{props.children} {props.children}
</div> </div>
<Navbar/>
</div> </div>
) )
} }

View file

@ -6,7 +6,7 @@ export default function Navbar() {
const location = useLocation(); const location = useLocation();
return ( return (
<div style={{maxWidth:"100%"}} className={"d-flex justify-content-center align-items-center " + (location.pathname === "/" ? "fade-up-d3s" : "")} > <div style={{maxWidth:"100%", marginTop: 10}} className={"d-flex justify-content-center align-items-center " + (location.pathname === "/" ? "fade-down-d3s" : "")} >
<div className={"d-flex flex-row justify-content-around"} style={{width: 700}}> <div className={"d-flex flex-row justify-content-around"} style={{width: 700}}>
<div className={"d-flex flex-column justify-content-center align-items-center"}> <div className={"d-flex flex-column justify-content-center align-items-center"}>
<Link to={"/home"} className={"mb-0 no-blue-link"}>Home</Link> <Link to={"/home"} className={"mb-0 no-blue-link"}>Home</Link>