// // Hero // --- // bigchaindb.com // $menu-height-md: 66px; .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-enterprise { .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, .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, .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; } .icon { margin-right: .1rem; } .icon--gitter { animation: gitterPulse 5s ease-out infinite; } } @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: 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; } }