website/public/assets/css/pages/index.css

127 lines
No EOL
1.8 KiB
CSS

:root {
--wavelength: 20vw;
}
body {
background-color: var(--color-deep);
}
section h2 {
color: white;
background-color: black;
}
header.transparent {
color: white;
background-color: transparent;
border-color: rgba(255, 255, 255, .1);
}
header.transparent .logo {
fill: var(--color-deep);
background-color: white;
}
header.transparent button.solid {
color: var(--color-deep);
background-color: white;
}
/* # Sections */
/* ## Intro */
section#intro {
display: grid;
color: white;
min-height: 300px;
}
section#intro h1 {
font-size: 50px;
}
section#intro div {
display: flex;
flex-direction: column;
justify-content: center;
align-items: baseline;
}
/* ### Waves */
section.waves {
--easing: .2;
position: relative;
height: 300px;
user-select: none;
pointer-events: none;
z-index: -1;
}
section.waves img {
margin: auto;
margin-top: -15%;
height: 190%;
transform-origin: 50% 100%;
animation: ship 6s alternate infinite ease;
}
@keyframes ship {
0% {
transform: translate(0, -7px) rotate(-7deg);
}
100% {
transform: translate(5px, 10px) rotate(4deg);
}
}
section.waves .wave {
position: absolute;
width: 100%;
height: 100%;
transform: scale(1.5);
bottom: 70px;
animation: wave 7s alternate infinite cubic-bezier(var(--easing), 0, calc(1 - var(--easing)), 1);
}
@keyframes wave {
to { transform: scale(1.5) translateX(100px); }
}
section.waves + section {
background-color: #4ca6ff;
}
section.waves .wave:first-child {
background-image: url("/assets/media/waves/0.svg");
}
section.waves .wave:last-child {
animation-duration: 5s;
background-image: url("/assets/media/waves/1.svg");
}
/* ## BYOE */
section.info {
background-color: white;
}
section.info container {
min-height: 500px;
}
section.info svg {
justify-self: center;
width: 400px;
}
/* ## Lead */
section#lead h1 {
color: white;
font-weight: normal;
}