open-nomad/website/source/assets/stylesheets/_home.scss

519 lines
10 KiB
SCSS
Executable File

//
// Home
// --------------------------------------------------
#hero{
position: relative;
@include translate3d(0, -10px, 0);
text-align: center;
background: image-url('../images/nomad-pattern.png') 0 0 repeat;
@include img-retina("../images/nomad-pattern.png", "../images/nomad-pattern.png", 1869px / 3, 1074px / 3);
background-repeat: repeat;
&:before{
content: '';
position: absolute;
top: -20px;
left: 50%;
width: 1000px;
height: 1000px;
margin-left: -500px;
border-radius: 500px;
background-color: $white;
z-index: 1;
}
#hero-graphic{
position: relative;
display: inline-block;
width: 499px;
height: 340px;
margin: 48px auto 40px;
z-index: 2;
#hero-logotype{
position: absolute;
display: inline-block;
top: 75px;
left: 50%;
width: 115px;
height: 155px;
margin-left: -60px;
background: image-url('../images/hero-logotype.png') 0 0 no-repeat;
@include img-retina("../images/hero-logotype.png", "../images/hero-logotype@2x.png", 115px, 155px);
}
#cubes{
.cube{
position: absolute;
top: 300px;
left: 248px;
opacity: 0.01;
@include transform( translate(0, 150px) );
@include transition( all 1.5s $easeInOutBack );
&.in{
@include transform( translate(0, 0) );
opacity: 1;
}
.face {
@include transform-origin(0 0);
position: absolute;
height: 44px;
width: 44px;
&.top{
background-color: $green;
@include transform(rotate(210deg) skewX(-30deg) scaleY(0.864) );
}
&.left{
background-color: $green-dark;
@include transform(rotate(90deg) skewX(-30deg) scaleY(0.864) );
}
&.right{
background-color: $green-light;
@include transform(rotate(-30deg) skewX(-30deg) scaleY(0.864) );
}
}
}
}
}
#hero-text{
position: relative;
#hero-text-content{
position: relative;
z-index: 2;
padding-bottom: 40px;
}
h1{
margin-top: 0;
color: $blue-dark;
font-size: $font-size-xl;
font-family: $font-family-blanc;
}
h3{
color: $blue-light;
font-size: $font-size-m;
font-family: $font-family-blanc;
}
#hero-btns{
margin-top: 26px;
a{
}
}
}
#tag-line{
margin: 15px 0 20px 0;
font-size: 24px;
font-weight: 300;
}
p{
margin-top: 60px;
text-align: left;
font-size: 18px;
font-weight: 300;
line-height: 2em;
.strong{
font-size: 20px;
font-weight: 500;
}
}
}
.banner{
margin-top: 120px;
&.gray-banner{
.col{
border: 1px solid $blue-faint;
}
p{
color: $blue-light;
}
}
&.green-banner{
.col{
border: 1px solid $blue-faint;
}
p{
color: $blue-dark;
}
}
&#cta-banner{
margin-top: 0;
margin-bottom: 80px;
.col{
padding: 60px 20px;
}
}
.col{
padding: 20px;
text-align: center;
border-radius: 3px;
}
p{
margin-bottom: 0px;
margin-right: 30px;
font-size: $font-size-reg;
line-height: $font-size-reg;
font-family: $font-family-blanc-reg;
}
p, a{
display: inline-block;
}
}
#content{
overflow: hidden;
margin-top: 120px;
h2{
margin-bottom: 120px;
text-align: center;
font-size: $font-size-m;
font-family: $font-family-blanc;
color: $green;
text-transform: uppercase;
}
.feature{
position: relative;
margin-bottom: 60px;
padding-bottom: 60px;
border-bottom: 1px solid $blue-faint;
&:last-child{
border-bottom: none;
}
&#deploy{
padding-bottom: 835px;
width: 1161px;
height: 735px;
background: image-url('../images/feature-deploy.png') 0 0 no-repeat;
@include img-retina("../images/feature-deploy.png", "../images/feature-deploy@2x.png", 1161px, 735px);
}
&#maintain{
.feature-graphic{
margin-top: -50px;
width: 1113px;
height: 689px;
background: image-url('../images/feature-manage.png') 0 0 no-repeat;
@include img-retina("../images/feature-manage.png", "../images/feature-manage@2x.png", 1113px, 689px);
}
}
&#healing{
.feature-graphic{
margin-top: 80px;
width: 1009px;
height: 309px;
background: image-url('../images/feature-healing.png') 0 0 no-repeat;
@include img-retina("../images/feature-healing.png", "../images/feature-healing@2x.png", 1009px, 309px);
}
}
&#density{
.feature-graphic{
margin-top: 80px;
width: 1040px;
height: 409px;
background: image-url('../images/feature-density.png') 0 0 no-repeat;
@include img-retina("../images/feature-density.png", "../images/feature-density@2x.png", 1040px, 409px);
}
}
&#partners{
.partner-logos{
.docker-wrap{
border-right: 1px solid $blue-faint;
.partner-logo{
display: inline-block;
width: 120px;
height: 180px;
&.docker-logo{
background: image-url('../images/partner-docker.png') center center no-repeat;
@include img-retina("../images/partner-docker.png", "../images/partner-docker@2x.png", 100px, 84px);
}
}
}
.cloud-wrap{
.partner-logo{
float: left;
width: 25%;
height: 180px;
&.aws-logo{
background: image-url('../images/partner-amazon.png') center center no-repeat;
@include img-retina("../images/partner-amazon.png", "../images/partner-amazon@2x.png", 153px, 56px);
}
&.google-logo{
background: image-url('../images/partner-google.png') center center no-repeat;
@include img-retina("../images/partner-google.png", "../images/partner-google@2x.png", 135px, 87px);
}
&.microsoft-logo{
background: image-url('../images/partner-microsoft.png') center center no-repeat;
@include img-retina("../images/partner-microsoft.png", "../images/partner-microsoft@2x.png", 188px, 84px);
}
&.engineyard-logo{
background: image-url('../images/partner-engineyard.png') center center no-repeat;
@include img-retina("../images/partner-engineyard.png", "../images/partner-engineyard@2x.png", 178px, 37px);
}
&.digitalocean-logo{
background: image-url('../images/partner-digitalocean.png') center center no-repeat;
@include img-retina("../images/partner-digitalocean.png", "../images/partner-digitalocean@2x.png", 134px, 85px);
}
}
}
}
}
&#audit{
.graphic{
width: 491px;
height: 129px;
background: image-url('../images/graphic-audit.png') 0 0 no-repeat;
@include img-retina("../images/graphic-audit.png", "../images/graphic-audit@2x.png", 491px, 129px);
}
}
.feature-graphic{
margin: 0 auto;
}
.feature-header{
&.right{
h3, p{
text-align: right;
display: block;
float: right;
}
}
h3{
margin: 30px 0 20px 0;
color: $blue-dark;
letter-spacing: 1px;
font-size: $font-size-l;
font-family: $font-family-blanc;
line-height: 1.25em;
max-width: 640px;
}
p{
margin-bottom: 30px;
color: $blue-light;
font-size: $font-size-reg+2;
font-family: $font-family-blanc-reg;
line-height: 1.75em;
max-width: 480px;
}
}
.feature-footer{
position: absolute;
bottom: 0;
left: 0;
padding-bottom: 80px;
p{
display: inline-block;
color: $blue-dark;
font-size: $font-size-reg;
font-family: $font-family-blanc;
line-height: 1.75em;
max-width: 320px;
padding-left: 20px;
border-left: 1px solid $blue-faint;
}
.docker-outline-logo{
display: inline-block;
width: 125px;
height: 80px;
margin-right: 20px;
background: image-url('../images/icon-docker-outline.png') 0 0 no-repeat;
@include img-retina("../images/icon-docker-outline.png", "../images/icon-docker-outline@2x.png", 125px, 80px);
}
a{
margin-bottom: 15px;
margin-left: 15px;
&:first-child{
margin-left: 0;
}
}
}
}
#cta {
position: relative;
padding: 160px 0;
background: image-url('../images/bg-iconscrud.png') center center no-repeat;
@include img-retina("../images/bg-icons.png", "../images/bg-icons@2x.png", 669px, 260px);
background-position: center center;
border-top: 1px solid $faint-gray;
border-bottom: 1px solid $faint-gray;
a{
margin-bottom: 5px;
}
p{
margin-top: 10px;
color: $black;
font-size: 14px;
font-weight: 600;
line-height: 1.5esm;
&.cta-gray{
color: $gray;
font-weight: 300;
}
}
.outline-btn {
padding: 16px 40px;
display: inline-block;
&:focus {
outline: 0;
}
}
}
}
@media (min-width: 1200px) {
}
@media (max-width: 1200px) {
}
@media (min-width: 992px) and (max-width:1200px) {
#cta a {
margin-top: 15px;
font-size: 18px;
}
}
@media (min-width: 768px) and (max-width:992px) {
#cta a {
margin-top: 10px;
}
}
@media (max-width: 992px) {
}
@media (max-width: 768px) {
#cta{
.intro{
text-align: center;
p{
text-align: center;
margin-bottom: 15px;
}
}
}
}
@media (max-width: 480px) {
#hero{
#diagram{
width: 100%;
height: 132px;
background: image-url('../images/hero.png') center 0 no-repeat;
@include img-retina("../images/hero.png", "../images/hero@2x.png", 320px, 132px);
}
}
#content{
.feature{
&#audit{
.graphic{
width: 100%;
height: 84px;
background: image-url('../images/graphic-audit.png') center 0 no-repeat;
@include img-retina("../images/graphic-audit.png", "../images/graphic-audit@2x.png", 320px, 84px);
}
}
}
}
.feature-footer{
text-align: center;
a{
margin-bottom: 15px;
margin-left: 0 !important;
}
}
}
@media (max-width: 320px) {
#hero{
#diagram{
width: 100%;
height: 132px;
background: image-url('../images/hero.png') center 0 no-repeat;
@include img-retina("../images/hero.png", "../images/hero@2x.png", 320px, 132px);
}
}
#content{
.feature{
&#crud{
.graphic{
width: 100%;
height: 111px;
background: image-url('../images/graphic-crud.png') center 0 no-repeat;
@include img-retina("../images/graphic-crud.png", "../images/graphic-crud@2x.png", 290px, 111px);
}
}
&#audit{
.graphic{
width: 100%;
height: 76px;
background: image-url('../images/graphic-audit.png') center 0 no-repeat;
@include img-retina("../images/graphic-audit.png", "../images/graphic-audit@2x.png", 290px, 76px);
}
}
}
}
#cta a {
font-size: 14px;
font-weight: 400;
}
}