1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-28 23:06:20 +01:00
site/_src/_assets/styles/page-front.scss

162 lines
2.8 KiB
SCSS
Raw Normal View History

2015-12-19 20:56:04 +01:00
//
// Page: front
// ---
// bigchain.io
//
.hero {
text-align: center;
overflow: hidden;
position: relative;
text-shadow: 0 1px 0 rgba(0,0,0,.1);
2015-12-20 21:45:28 +01:00
min-height: 100vh;
// background
2015-12-20 19:31:36 +01:00
background: url('../img/photo1.jpg') no-repeat center bottom;
background-size: cover;
2015-12-20 19:31:36 +01:00
// 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 {
2016-02-02 19:33:37 +01:00
fill-opacity: .6;
margin: auto;
2016-02-02 19:33:37 +01:00
max-width: 28em;
2015-12-20 21:45:28 +01:00
@media ($screen-sm) {
margin-top: -($spacer * 6);
margin-bottom: ($spacer * 2);
}
}
.section-title {
color: #fff;
2015-12-21 15:41:44 +01:00
margin-bottom: $spacer;
2015-12-20 19:52:34 +01:00
&:after { display: none }
}
2015-12-20 19:31:36 +01:00
2015-12-21 16:51:16 +01:00
.btn {
color: #fff;
2015-12-21 15:41:44 +01:00
margin-top: ($spacer * 4);
2015-12-21 16:51:16 +01:00
opacity: .8;
&:hover,
&:focus { opacity: 1; }
// the caret
.icon {
width: 12px;
height: 12px;
stroke: #fff;
display: block;
margin: auto;
}
}
2015-12-20 19:31:36 +01:00
// intro animation
.logo,
.section-title,
2015-12-21 16:51:16 +01:00
.btn {
2015-12-20 19:52:34 +01:00
@extend .animation-slide-in-from-bottom;
animation-duration: 1s;
animation-fill-mode: backwards;
}
.logo {
2015-12-20 19:52:34 +01:00
animation-timing-function: $timing-default;
}
2015-12-20 19:31:36 +01:00
.section-title,
2015-12-21 16:51:16 +01:00
.btn {
2015-12-20 19:31:36 +01:00
@extend .animation-slide-in-from-bottom;
2015-12-20 19:52:34 +01:00
animation-play-state: paused;
2015-12-20 19:31:36 +01:00
}
2015-12-21 16:51:16 +01:00
.btn { animation-delay: .2s; }
2015-12-20 19:52:34 +01:00
&.is-ready {
.section-title,
2015-12-21 16:51:16 +01:00
.btn {
2015-12-20 19:52:34 +01:00
animation-play-state: running;
}
}
2015-12-21 15:41:44 +01:00
}
2015-12-20 19:52:34 +01:00
2015-12-21 15:41:44 +01:00
.hero__content {
position: relative;
z-index: 1;
}
2015-12-20 19:52:34 +01:00
2015-12-21 15:41:44 +01:00
.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;
2015-12-20 19:31:36 +01:00
border-bottom: 1px solid lighten($brand-main-gray, 40%);
2015-12-21 16:51:16 +01:00
figure {
2015-12-20 19:31:36 +01:00
display: block;
2015-12-21 17:46:24 +01:00
margin-bottom: ($spacer * 6);
margin-top: -($spacer * 2);
2015-12-20 19:31:36 +01:00
}
.icon {
display: block;
margin: auto;
margin-bottom: $spacer;
}
2015-12-22 13:26:13 +01:00
}
.comingsoon {
display: block;
color: $gray-light;
}
2015-12-21 16:51:16 +01:00
2015-12-22 13:26:13 +01:00
.section-whitepaper {
.icon {
stroke: $brand-main-gray;
stroke-dasharray: 4,4;
opacity: .3;
2015-12-21 16:51:16 +01:00
display: block;
2015-12-22 13:26:13 +01:00
margin: auto;
margin-bottom: $spacer;
2015-12-21 16:51:16 +01:00
}
}
.section-earlyaccess {
form {
max-width: $screen-sm-min;
margin: auto;
}
2015-12-22 16:07:37 +01:00
.form-control {
&:focus {
border-color: #fff;
}
}
}