1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-25 11:08:29 +01:00
site/_src/_assets/styles/bigchain/_hero.scss

246 lines
4.3 KiB
SCSS
Raw Normal View History

//
// Hero
// ---
2017-05-29 21:15:48 +02:00
// bigchaindb.com
//
2018-04-05 13:43:34 +02:00
$menu-height-md: 90px;
.hero {
2017-05-15 17:32:12 +02:00
@include background--photo();
background-image: url('../img/hero-berlin.jpg');
text-align: center;
overflow: hidden;
position: relative;
2016-02-10 02:16:04 +01:00
// vertically center everything
display: flex;
align-items: center;
min-height: 480px;
2016-02-10 02:16:04 +01:00
flex-wrap: wrap;
@media ($screen-md) {
height: 100vh;
}
2017-10-02 11:47:49 +02:00
.hero__title {
color: #fff;
2016-02-14 14:43:12 +01:00
font-size: $font-size-h3;
2017-10-02 11:47:49 +02:00
margin-bottom: $spacer;
2016-02-14 14:43:12 +01:00
@media ($screen-sm) {
font-size: $font-size-h2;
}
@media ($screen-md) {
font-size: $font-size-h1;
}
2017-05-31 00:22:14 +02:00
&:after { display: none; }
}
2017-04-18 12:44:17 +02:00
2017-10-02 11:47:49 +02:00
.hero__subtitle {
font-size: $font-size-h4;
margin-top: 0;
@media ($screen-sm) {
font-size: $font-size-h3;
}
}
2017-04-18 12:44:17 +02:00
.section-subtitle {
font-size: $font-size-h4;
@media ($screen-sm) {
font-size: $font-size-h3;
}
@media ($screen-md) {
font-size: $font-size-h2;
}
}
2017-05-06 18:12:55 +02:00
}
2017-05-06 18:12:55 +02:00
//
// intro animation
//
2017-10-02 11:47:49 +02:00
.hero__title,
.hero__subtitle,
2018-04-12 13:18:34 +02:00
.hero__action {
2017-05-06 18:12:55 +02:00
.wf-active &,
.wf-inactive & {
@include animation-slide-in-from-bottom;
animation-fill-mode: backwards;
}
2017-05-06 18:12:55 +02:00
}
2017-10-02 11:47:49 +02:00
.hero__subtitle {
2017-05-15 11:36:31 +02:00
.wf-active &,
.wf-inactive & {
animation-delay: .3s;
}
}
2017-05-06 18:12:55 +02:00
.hero__action {
.wf-active &,
.wf-inactive & {
animation-delay: .5s;
}
2017-05-06 18:12:55 +02:00
}
2017-05-06 18:12:55 +02:00
.page-front .menu--main,
2018-04-10 14:38:27 +02:00
.hero__community {
2017-05-06 18:12:55 +02:00
@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;
2018-03-19 13:31:51 +01:00
&:after {
content: '';
display: inline-block;
2018-04-04 11:11:18 +02:00
width: .35rem;
height: .35rem;
2018-03-19 13:31:51 +01:00
border-radius: 50%;
background-color: saturate(adjust-hue($brand-main-green, -170%), 15%);
vertical-align: top;
margin-left: $spacer / 8;
}
}
2017-10-10 10:40:28 +02:00
.icon {
margin-right: .1rem;
}
2017-10-10 11:11:00 +02:00
.icon--gitter {
animation: gitterPulse 5s ease-out infinite;
2018-02-01 15:40:29 +01:00
stroke-linecap: square;
stroke-width: 2px;
fill: none;
2017-10-10 11:11:00 +02:00
}
}
@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 {
2017-05-06 18:12:55 +02:00
position: relative;
z-index: 2;
2018-04-10 14:38:27 +02:00
color: #fff;
opacity: .6;
align-self: flex-end;
2018-04-10 14:38:27 +02:00
margin-left: auto;
margin-right: auto;
margin-bottom: $spacer;
display: none;
@media ($screen-md) {
2018-04-10 14:38:27 +02:00
display: inline-block;
}
&:hover,
2018-04-10 14:38:27 +02:00
&:focus { opacity: 1; }
// the caret
.icon {
width: 12px;
height: 12px;
stroke: #fff;
display: block;
margin: auto;
}
}