Header: implement new snazzy Header

The new Header component uses framer-motion to animate transitions
between illustrations and x-ray views showing the icons used in their
construction.
This commit is contained in:
rektdeckard
2020-08-08 23:50:44 -04:00
parent d50c2c4133
commit 6e9b7e6fd8
2 changed files with 275 additions and 17 deletions

View File

@@ -10,6 +10,50 @@ header {
justify-content: center; */
}
.intro {
width: 660px;
position: absolute;
transform: translate(143px, 392px);
}
.intro h2 {
font-size: 40px;
line-height: 50px;
margin-bottom: 32px;
}
div.links {
display: flex;
align-items: center;
justify-content: flex-start;
margin: 56px 0 0;
}
.links a:not(:first-child) {
margin-left: 48px;
}
a.nav-link {
text-decoration: none;
position: relative;
color: black;
}
a.nav-link:after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0%;
border-bottom: 1px solid black;
transition: 0.2s;
}
a.nav-link:hover:after {
width: 100%;
}
.image-container {
position: relative;
width: 1366px;
@@ -17,6 +61,10 @@ header {
margin: auto;
}
.inspectable {
cursor: cell;
}
#marker-purple {
position: absolute;
transform: translate(143px, -158px);