mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-30 07:38:01 +01:00
181 lines
3.2 KiB
SCSS
181 lines
3.2 KiB
SCSS
//
|
|
// Hero
|
|
// ---
|
|
// bigchain.io
|
|
//
|
|
|
|
$menu-height-md: 66px;
|
|
|
|
.hero {
|
|
@extend .background--photo;
|
|
background-image: url('../img/hero-berlin.jpg');
|
|
text-align: center;
|
|
overflow: hidden;
|
|
position: relative;
|
|
|
|
// vertically center everything
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: 480px;
|
|
flex-wrap: wrap;
|
|
|
|
@media ($screen-md) {
|
|
height: 100vh;
|
|
}
|
|
|
|
.section-title {
|
|
color: #fff;
|
|
font-size: $font-size-h3;
|
|
|
|
@media ($screen-sm) {
|
|
font-size: $font-size-h2;
|
|
}
|
|
|
|
@media ($screen-md) {
|
|
font-size: $font-size-h1;
|
|
}
|
|
|
|
&::after { display: none; }
|
|
}
|
|
}
|
|
|
|
// intro animation
|
|
.section-title,
|
|
.section-description,
|
|
.hero__action {
|
|
.wf-active &,
|
|
.wf-inactive & {
|
|
@extend .animation-slide-in-from-bottom;
|
|
animation-fill-mode: backwards;
|
|
}
|
|
}
|
|
|
|
//
|
|
// intro animation
|
|
//
|
|
.hero .section-title,
|
|
.hero__action {
|
|
.wf-active &,
|
|
.wf-inactive & {
|
|
@include animation-slide-in-from-bottom;
|
|
animation-fill-mode: backwards;
|
|
}
|
|
}
|
|
|
|
.hero__action {
|
|
.wf-active &,
|
|
.wf-inactive & {
|
|
animation-delay: .5s;
|
|
}
|
|
}
|
|
|
|
.page-front .menu--main,
|
|
.hero__community,
|
|
.hero__more {
|
|
@include transition;
|
|
opacity: 0;
|
|
transition-delay: .8s;
|
|
|
|
.wf-active &,
|
|
.wf-inactive & {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
|
|
.hero__content {
|
|
margin-top: $spacer * 2;
|
|
margin-bottom: $spacer * 4;
|
|
|
|
@media ($screen-md) {
|
|
align-self: flex-start;
|
|
margin-top: $spacer * 4;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
|
|
.hero__community {
|
|
align-self: flex-end;
|
|
width: 100%;
|
|
|
|
// resemble menu background, but a bit darker background
|
|
background: rgba($brand-main-blue-dark, .6);
|
|
backdrop-filter: saturate(150%) blur(10px);
|
|
border-top: 1px solid rgba($brand-main-gray, .5);
|
|
border-bottom: 1px solid rgba($brand-main-gray, .5);
|
|
|
|
.btn {
|
|
font-weight: $font-weight-normal;
|
|
box-shadow: none;
|
|
background: none;
|
|
opacity: .95;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
opacity: 1;
|
|
}
|
|
|
|
&:first-child {
|
|
display: block;
|
|
|
|
@media ($screen-sm) {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
.icon {
|
|
transform: translateY(1px);
|
|
}
|
|
}
|
|
|
|
.stars,
|
|
.release {
|
|
display: inline-block;
|
|
opacity: 0;
|
|
transition: opacity .2s ease-out;
|
|
}
|
|
|
|
.stars {
|
|
font-size: .6rem;
|
|
background: rgba($brand-main-gray-lighter, .15);
|
|
padding: .1rem .3rem;
|
|
border-radius: 1rem;
|
|
display: inline-block;
|
|
transform: translateY(-1px);
|
|
min-width: 34px; // approx. width with 4 numbers
|
|
}
|
|
|
|
.release {
|
|
@include text-bold;
|
|
min-width: 44px;
|
|
}
|
|
}
|
|
|
|
|
|
.hero__more {
|
|
position: relative;
|
|
z-index: 2;
|
|
color: rgba(#fff, .6);
|
|
align-self: flex-end;
|
|
margin-bottom: $spacer;
|
|
width: 100%;
|
|
display: none;
|
|
|
|
@media ($screen-md) {
|
|
display: block;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus { color: #fff; }
|
|
|
|
// the caret
|
|
.icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
stroke: #fff;
|
|
display: block;
|
|
margin: auto;
|
|
}
|
|
}
|