1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-01 15:55:36 +01:00
site/_src/_assets/styles/page-front.scss

162 lines
2.9 KiB
SCSS

//
// Page: front
// ---
// bigchain.io
//
.hero {
text-align: center;
overflow: hidden;
position: relative;
text-shadow: 0 1px 0 rgba(0,0,0,.1);
min-height: 100vh;
// background
background: url('../img/photo1.jpg') no-repeat center bottom;
background-size: cover;
// color overlay
&:before {
content: "";
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
//background: $brand-main-brown;
background: linear-gradient(to top left, $brand-main-blue 0%, $brand-main-brown 100%);
opacity: .7;
z-index: 0;
}
.logo {
fill-opacity: .6;
margin: auto;
max-width: 31em;
@media ($screen-sm) {
margin-top: -($spacer * 6);
margin-bottom: ($spacer * 2);
}
}
.section-title {
color: #fff;
margin-bottom: $spacer;
&:after { display: none }
}
.btn-link {
color: #fff;
margin-top: ($spacer * 4);
opacity: .7;
&:hover,
&:focus { opacity: 1; }
// the caret
.icon {
width: 12px;
height: 12px;
stroke: #fff;
display: block;
margin: auto;
}
}
.btn {
&:hover,
&:focus,
&:active {
text-shadow: none;
}
}
.btn-link {
}
// intro animation
.logo,
.section-title,
.btn,
.hero__comingsoon {
@extend .animation-slide-in-from-bottom;
animation-duration: 1s;
animation-fill-mode: backwards;
}
.logo {
animation-timing-function: $timing-default;
}
.section-title,
.btn,
.hero__comingsoon {
@extend .animation-slide-in-from-bottom;
animation-play-state: paused;
}
.hero__comingsoon { animation-delay: .2s; }
.btn { animation-delay: .4s; }
.btn-link { animation-delay: .6s; }
&.is-ready {
.section-title,
.btn,
.hero__comingsoon {
animation-play-state: running;
}
}
}
.hero__content {
position: relative;
z-index: 1;
}
.hero__comingsoon {
text-shadow: none;
display: block;
color: rgba($brand-main-blue-dark, .9);
margin-top: ($spacer * 2);
margin-bottom: ($spacer * 2);
}
.section-benchmarks {
text-align: center;
border-bottom: 1px solid lighten($brand-main-gray, 40%);
.icon {
display: block;
margin: auto;
margin-bottom: $spacer;
}
}
.section-whitepaper {
.icon {
stroke: $brand-main-gray;
stroke-dasharray: 4,4;
opacity: .3;
display: block;
margin: auto;
margin-bottom: $spacer;
}
}
.section-earlyaccess {
form {
max-width: $screen-sm-min;
margin: auto;
}
}