mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-22 17:50:07 +01:00
247 lines
4.3 KiB
SCSS
247 lines
4.3 KiB
SCSS
//
|
|
// Hero
|
|
// ---
|
|
// bigchaindb.com
|
|
//
|
|
|
|
$menu-height-md: 90px;
|
|
|
|
.hero {
|
|
@include 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;
|
|
}
|
|
|
|
.hero__title {
|
|
color: #fff;
|
|
font-size: $font-size-h3;
|
|
margin-bottom: $spacer;
|
|
|
|
@media ($screen-sm) {
|
|
font-size: $font-size-h2;
|
|
}
|
|
|
|
@media ($screen-md) {
|
|
font-size: $font-size-h1;
|
|
}
|
|
|
|
&:after { display: none; }
|
|
}
|
|
|
|
.hero__subtitle {
|
|
font-size: $font-size-h4;
|
|
margin-top: 0;
|
|
|
|
@media ($screen-sm) {
|
|
font-size: $font-size-h3;
|
|
}
|
|
}
|
|
|
|
.section-subtitle {
|
|
font-size: $font-size-h4;
|
|
|
|
@media ($screen-sm) {
|
|
font-size: $font-size-h3;
|
|
}
|
|
|
|
@media ($screen-md) {
|
|
font-size: $font-size-h2;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
// intro animation
|
|
//
|
|
.hero__title,
|
|
.hero__subtitle,
|
|
.hero__action,
|
|
.logo-services {
|
|
.wf-active &,
|
|
.wf-inactive & {
|
|
@include animation-slide-in-from-bottom;
|
|
animation-fill-mode: backwards;
|
|
}
|
|
}
|
|
|
|
.hero__subtitle {
|
|
.wf-active &,
|
|
.wf-inactive & {
|
|
animation-delay: .3s;
|
|
}
|
|
}
|
|
|
|
.hero__action {
|
|
.wf-active &,
|
|
.wf-inactive & {
|
|
animation-delay: .5s;
|
|
}
|
|
}
|
|
|
|
.page-front .menu--main,
|
|
.hero__community {
|
|
@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,
|
|
.meetup-title {
|
|
display: inline-block;
|
|
opacity: 0;
|
|
transition: opacity .2s ease-out;
|
|
}
|
|
|
|
strong {
|
|
font-weight: $font-weight-normal;
|
|
}
|
|
|
|
.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 {
|
|
min-width: 44px;
|
|
|
|
&:after {
|
|
content: '';
|
|
display: inline-block;
|
|
width: .35rem;
|
|
height: .35rem;
|
|
border-radius: 50%;
|
|
background-color: saturate(adjust-hue($brand-main-green, -170%), 15%);
|
|
vertical-align: top;
|
|
margin-left: $spacer / 8;
|
|
}
|
|
}
|
|
|
|
.icon {
|
|
margin-right: .1rem;
|
|
}
|
|
|
|
.icon--gitter {
|
|
animation: gitterPulse 5s ease-out infinite;
|
|
stroke-linecap: square;
|
|
stroke-width: 2px;
|
|
fill: none;
|
|
}
|
|
}
|
|
|
|
@keyframes gitterPulse {
|
|
0% {
|
|
stroke: $brand-main-gray-light;
|
|
}
|
|
|
|
50% {
|
|
stroke: $brand-main-green;
|
|
}
|
|
|
|
100% {
|
|
stroke: $brand-main-gray-light;
|
|
}
|
|
}
|
|
|
|
.hero__community__label {
|
|
opacity: .5;
|
|
}
|
|
|
|
|
|
.hero__more {
|
|
position: relative;
|
|
z-index: 2;
|
|
color: #fff;
|
|
opacity: .6;
|
|
align-self: flex-end;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
margin-bottom: $spacer;
|
|
display: none;
|
|
|
|
@media ($screen-md) {
|
|
display: inline-block;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus { opacity: 1; }
|
|
|
|
// the caret
|
|
.icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
stroke: #fff;
|
|
display: block;
|
|
margin: auto;
|
|
}
|
|
}
|