1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-12 00:04:48 +01:00
website/_src/_assets/scss/_hero.scss

201 lines
3.6 KiB
SCSS
Raw Normal View History

2017-08-25 00:16:33 +02:00
$edge-height-sm: $spacer * 2;
$edge-height: $spacer * 4;
.hero {
2017-08-25 00:16:33 +02:00
background: $brand-07;
2017-08-24 15:48:46 +02:00
padding-top: $spacer * 2;
2017-08-29 16:58:25 +02:00
padding-bottom: 0;
height: calc(100vh - #{$edge-height-sm});
min-height: 580px;
2017-08-25 00:16:33 +02:00
margin-bottom: $edge-height-sm;
position: relative;
@media ($screen-sm) {
2017-08-29 16:58:25 +02:00
height: calc(100vh - #{$edge-height});
2017-08-25 00:16:33 +02:00
margin-bottom: $edge-height;
}
&:after {
content: '';
width: 100%;
height: $edge-height-sm;
display: block;
position: absolute;
left: 0;
background: #b3d0da;
bottom: -($edge-height-sm);
clip-path: polygon(0 0, 100% 0, 100% 20%, 0% 100%);
@media ($screen-sm) {
height: $edge-height;
bottom: -($edge-height);
}
}
2017-08-24 13:47:28 +02:00
.menu--main {
2017-08-25 00:16:33 +02:00
background: $brand-03;
2017-08-24 13:47:28 +02:00
position: absolute;
left: 0;
top: 0;
width: 100%;
2017-08-29 18:01:36 +02:00
z-index: 0;
2017-08-25 00:16:33 +02:00
&:after {
content: '';
width: 100%;
height: $edge-height-sm;
display: block;
position: absolute;
left: 0;
background: $brand-03;
bottom: -($edge-height-sm);
clip-path: polygon(100% 0, 0 0, 0 100%);
@media ($screen-sm) {
height: $edge-height;
bottom: -($edge-height);
}
}
2017-08-29 18:42:39 +02:00
.button {
background: none;
border: 1.5px solid rgba($brand-05, .2);
color: rgba($brand-05, .8);
&:hover,
&:focus {
color: $brand-05;
}
}
2017-08-24 13:47:28 +02:00
}
.menu__link {
2017-08-29 16:58:25 +02:00
color: rgba($brand-05, .8);
2017-08-24 13:47:28 +02:00
&:after {
2017-08-29 16:58:25 +02:00
background: rgba($brand-05, .8);
2017-08-24 15:48:46 +02:00
}
&:hover,
&:focus,
&.active {
2017-08-29 16:58:25 +02:00
color: $brand-05;
2017-08-24 15:48:46 +02:00
&:after {
2017-08-29 16:58:25 +02:00
background: $brand-05;
2017-08-24 15:48:46 +02:00
}
.logo {
2017-08-29 16:58:25 +02:00
fill: $brand-05;
2017-08-24 15:48:46 +02:00
}
2017-08-24 13:47:28 +02:00
}
}
.logo {
2017-08-29 16:58:25 +02:00
fill: rgba($brand-05, .95);
2017-08-24 13:47:28 +02:00
}
}
2017-08-29 16:58:25 +02:00
2017-08-29 18:01:36 +02:00
.hero__content {
position: relative;
2017-08-30 12:30:33 +02:00
z-index: 2;
2017-08-29 18:01:36 +02:00
}
2017-08-29 16:58:25 +02:00
.hero__title {
color: $brand-05;
2017-08-29 18:01:36 +02:00
font-size: $font-size-h2;
2017-08-29 18:28:23 +02:00
margin-bottom: $spacer / $line-height;
2017-08-29 18:01:36 +02:00
@media ($screen-sm) {
font-size: $font-size-h1 * 1.1;
}
2017-08-29 16:58:25 +02:00
}
.hero__description {
2017-08-29 18:01:36 +02:00
font-size: $font-size-base;
2017-08-29 16:58:25 +02:00
margin-top: 0;
margin-bottom: $spacer * 2;
color: $brand-02;
line-height: $line-height;
2017-08-29 18:01:36 +02:00
@media ($screen-sm) {
font-size: $font-size-large;
}
2017-08-29 16:58:25 +02:00
}
//
// Le star base
//
.starbase {
position: absolute;
bottom: 0;
width: 100%;
border-bottom: 4.5rem solid $brand-02;
align-self: flex-end;
2017-08-29 18:01:36 +02:00
z-index: 1;
2017-08-29 16:58:25 +02:00
.row {
display: flex;
justify-content: space-between;
align-items: flex-end;
}
}
2017-08-29 18:01:36 +02:00
.starbase__item {
position: relative;
}
2017-08-29 16:58:25 +02:00
.starbase__item--stones {
margin-bottom: -1rem;
}
2017-08-29 18:28:23 +02:00
.starbase__item--mooncycle {
margin-bottom: -4rem;
2017-08-29 18:42:39 +02:00
animation: bicycle 8s both 2s;
2017-08-29 18:01:36 +02:00
}
@keyframes bicycle {
0% {
transform: translate3d(60vw, 0, 0);
}
2017-08-29 18:28:23 +02:00
35%,
60% {
transform: translate3d(0, 0, 0);
}
2017-08-29 18:01:36 +02:00
100% {
transform: translate3d(-100vw, 0, 0);
}
2017-08-29 16:58:25 +02:00
}
.starbase__item--towers {
margin-bottom: -4.5rem;
}
2017-08-29 18:01:36 +02:00
.starbase-rocket {
position: absolute;
bottom: -4.5rem;
right: 20%;
z-index: 0;
animation: rocketStart 8s ease-in infinite forwards;
+ .starbase-rocket {
animation-delay: .8s;
right: 35%;
width: 30px;
}
}
@keyframes rocketStart {
0% {
transform: translate3d(0, 0, 0);
}
30%,
100% {
transform: translate3d(0, -110vh, 0);
}
}