diff --git a/_src/_assets/styles/bigchain.scss b/_src/_assets/styles/bigchain.scss index 5803bbc..d277520 100644 --- a/_src/_assets/styles/bigchain.scss +++ b/_src/_assets/styles/bigchain.scss @@ -27,6 +27,7 @@ @import 'bigchain/_alerts'; @import 'bigchain/_code'; @import 'bigchain/_syntax'; +@import 'bigchain/_hero'; @import 'bigchain/_header'; @import 'bigchain/_footer'; @import 'bigchain/_team'; diff --git a/_src/_assets/styles/bigchain/_footer.scss b/_src/_assets/styles/bigchain/_footer.scss index e58de41..7d55197 100644 --- a/_src/_assets/styles/bigchain/_footer.scss +++ b/_src/_assets/styles/bigchain/_footer.scss @@ -1,8 +1,18 @@ .footer { - @extend .small; padding-top: $spacer; padding-bottom: $spacer; - text-align: center; + border-top: 1px solid $gray-lightest; color: $gray-light; } + +.footer__copyright { + &, + small { + @extend .mini; + } + + @media ($screen-md) { + text-align: right; + } +} diff --git a/_src/_assets/styles/bigchain/_grid.scss b/_src/_assets/styles/bigchain/_grid.scss index a645e7f..930955f 100644 --- a/_src/_assets/styles/bigchain/_grid.scss +++ b/_src/_assets/styles/bigchain/_grid.scss @@ -36,12 +36,16 @@ } .row { - max-width: 45em; + max-width: $screen-md-min; margin: auto; padding-left: $gutter-space; padding-right: $gutter-space; } +.row--wide { + max-width: 60rem; +} + // // Alignment per row diff --git a/_src/_assets/styles/bigchain/_header.scss b/_src/_assets/styles/bigchain/_header.scss index 432404d..8e80474 100644 --- a/_src/_assets/styles/bigchain/_header.scss +++ b/_src/_assets/styles/bigchain/_header.scss @@ -1,6 +1,5 @@ .header { position: relative; - padding-top: 60px; // space for absolute menu // background background: url('../img/photo1.jpg') no-repeat center bottom; diff --git a/_src/_assets/styles/bigchain/_hero.scss b/_src/_assets/styles/bigchain/_hero.scss new file mode 100644 index 0000000..fcc9572 --- /dev/null +++ b/_src/_assets/styles/bigchain/_hero.scss @@ -0,0 +1,109 @@ +// +// Hero +// --- +// bigchain.io +// + +$menu-height-md: 73px; + +.hero { + text-align: center; + overflow: hidden; + position: relative; + text-shadow: 0 1px 0 rgba(0,0,0,.1); + + .section { + @media ($screen-md) { + min-height: calc(100vh - #{$menu-height-md}); + } + } + + // 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: linear-gradient(to top left, $brand-main-blue 0%, $brand-main-brown 100%); + opacity: .7; + z-index: 0; + } + + .logo--full { + fill: #fff; + fill-opacity: .8; + margin: auto; + max-width: 31em; + + @media ($screen-sm) { + margin-top: -$menu-height-md; + margin-bottom: ($spacer * 2); + } + } + + .section-title { + color: #fff; + margin-bottom: $spacer; + + &:after { display: none } + } + + .btn { + color: #fff; + margin-top: ($spacer * 4); + opacity: .8; + + &:hover, + &:focus { opacity: 1; } + + // the caret + .icon { + width: 12px; + height: 12px; + stroke: #fff; + display: block; + margin: auto; + } + } + + // intro animation + .logo--full, + .section-title, + .btn { + @extend .animation-slide-in-from-bottom; + animation-duration: 1s; + animation-fill-mode: backwards; + } + + .logo--full { + animation-timing-function: $timing-default; + } + + .section-title, + .btn { + @extend .animation-slide-in-from-bottom; + animation-play-state: paused; + } + + .btn { animation-delay: .2s; } + + &.is-ready { + .section-title, + .btn { + animation-play-state: running; + } + } +} + +.hero__content { + position: relative; + z-index: 1; +} diff --git a/_src/_assets/styles/bigchain/_menus.scss b/_src/_assets/styles/bigchain/_menus.scss index 19032aa..1d6de98 100644 --- a/_src/_assets/styles/bigchain/_menus.scss +++ b/_src/_assets/styles/bigchain/_menus.scss @@ -1,16 +1,56 @@ .menu { + position: relative; + z-index: 10; + + .grid__col { + text-align: center; + + @media ($screen-md) { + text-align: left; + + &:last-child { text-align: right; } + } + } } .menu__link { @extend .small; display: inline-block; - padding: $spacer; + padding: ($spacer * 1.5) $spacer; text-transform: uppercase; + + // link line + &:after { + content: ""; + height: 2px; + width: 30px; + background: #fff; + display: block; + margin: ($spacer / 3) auto 0 auto; + // hidden by default + transform: scale(0); + transform-origin: center; + transition: transform .2s ease-out; + } + + &:hover, + &:focus, + &.active { + // show link line + &:after { transform: scale(1); } + } } .menu__logo { display: block; + margin-top: $spacer; + + @media ($screen-md) { + display: inline-block; + margin-top: 0; + } + svg { @extend .transition; fill: #fff; @@ -29,47 +69,50 @@ // in front page hero or page headers // .menu--main { - position: absolute;; - left: 0; - right: 0; - top: 0; - width: 100%; - z-index: 2; - height: 60px; + .menu__logo { + @media ($screen-md) { + padding: ($spacer/1.2) 0 ($spacer * 1.5) 0; + } + } .menu__link { color: #fff; opacity: .8; - // link line - &:after { - content: ""; - height: 2px; - width: 30px; - background: #fff; - display: block; - margin: ($spacer / 3) auto 0 auto; - // hidden by default - transform: scale(0); - transform-origin: center; - transition: transform .2s ease-out; - } - &:hover, &:focus, &.active { opacity: 1; - - // show link line - &:after { transform: scale(1); } } } } + +// +// Footer Menu +// .menu--footer { - @extend .text-center; + .logo { + fill: $gray; + opacity: 1; + height: 9px; + } .menu__link { + @extend .mini; padding: $spacer ($spacer/1.5); + color: $gray; + + // link line + &:after { + background: $link-color; + } + + &:first-child { padding-left: 0; } + &:last-child { padding-right: 0; } + + &:hover, + &:focus, + &.active { color: $link-color; } } } diff --git a/_src/_assets/styles/bigchain/_variables.scss b/_src/_assets/styles/bigchain/_variables.scss index 0f765bd..bb712b1 100644 --- a/_src/_assets/styles/bigchain/_variables.scss +++ b/_src/_assets/styles/bigchain/_variables.scss @@ -77,9 +77,9 @@ $link-hover-color: darken($link-color, 15%) !default; // // Responsive breakpoints // -$screen-sm-min: 35em !default; -$screen-md-min: 45em !default; -$screen-lg-min: 75em !default; +$screen-sm-min: 35rem !default; +$screen-md-min: 45rem !default; +$screen-lg-min: 70rem !default; $screen-sm: 'min-width: #{$screen-sm-min}'; $screen-md: 'min-width: #{$screen-md-min}'; diff --git a/_src/_assets/styles/page-front.scss b/_src/_assets/styles/page-front.scss index b9f0ab3..0e9c091 100644 --- a/_src/_assets/styles/page-front.scss +++ b/_src/_assets/styles/page-front.scss @@ -4,114 +4,6 @@ // 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: 28em; - - @media ($screen-sm) { - margin-top: -($spacer * 6); - margin-bottom: ($spacer * 2); - } - } - - .section-title { - color: #fff; - margin-bottom: $spacer; - - &:after { display: none } - } - - .btn { - color: #fff; - margin-top: ($spacer * 4); - opacity: .8; - - &:hover, - &:focus { opacity: 1; } - - // the caret - .icon { - width: 12px; - height: 12px; - stroke: #fff; - display: block; - margin: auto; - } - } - - // intro animation - .logo, - .section-title, - .btn { - @extend .animation-slide-in-from-bottom; - animation-duration: 1s; - animation-fill-mode: backwards; - } - - .logo { - animation-timing-function: $timing-default; - } - - .section-title, - .btn { - @extend .animation-slide-in-from-bottom; - animation-play-state: paused; - } - - .btn { animation-delay: .2s; } - - &.is-ready { - .section-title, - .btn { - animation-play-state: running; - } - } -} - -.hero__content { - position: relative; - z-index: 1; - margin-top: 60px; // space for absolute menu -} - -.hero__comingsoon { - text-shadow: none; - display: block; - color: rgba($brand-main-blue-dark, .9); - margin-top: ($spacer * 2); - margin-bottom: ($spacer * 2); -} - - - .section-features { text-align: center; border-bottom: 1px solid lighten($brand-main-gray, 40%); diff --git a/_src/_data/menus.yml b/_src/_data/menus.yml index 7046263..25894f2 100644 --- a/_src/_data/menus.yml +++ b/_src/_data/menus.yml @@ -12,7 +12,7 @@ footer: url: /about/ - title: Contact url: /contact/ - - title: Terms of Service + - title: Terms url: /tos/ - title: Privacy url: /privacy/ diff --git a/_src/_includes/footer.html b/_src/_includes/footer.html index ccee965..dae4b54 100644 --- a/_src/_includes/footer.html +++ b/_src/_includes/footer.html @@ -1,9 +1,10 @@ diff --git a/_src/_includes/menu-footer.html b/_src/_includes/menu-footer.html index fd838c9..3531ed3 100644 --- a/_src/_includes/menu-footer.html +++ b/_src/_includes/menu-footer.html @@ -1,14 +1,34 @@ diff --git a/_src/_includes/menu-main.html b/_src/_includes/menu-main.html index 817efe2..296bae5 100644 --- a/_src/_includes/menu-main.html +++ b/_src/_includes/menu-main.html @@ -1,7 +1,7 @@