diff --git a/website/site/data/landing.yaml b/website/site/data/landing.yaml index 47350a93..c5f1395b 100644 --- a/website/site/data/landing.yaml +++ b/website/site/data/landing.yaml @@ -1,6 +1,6 @@ --- hero: - headline: "Open source content management for your Git workflow" + headline: "Open source content management for your Git workflow" subhead: "Use Netlify CMS with any static site generator for a faster and more flexible web project" devfeatures: - feature: "Static + content management = ♥" diff --git a/website/site/layouts/index.html b/website/site/layouts/index.html index 03436e30..50734057 100755 --- a/website/site/layouts/index.html +++ b/website/site/layouts/index.html @@ -7,6 +7,7 @@

{{ .Site.Data.landing.hero.headline | markdownify }}

{{ .Site.Data.landing.hero.subhead | markdownify }} + {{ .Site.Data.landing.cta.button | markdownify }}
{{ range $index, $id := .Site.Data.landing.hero.devfeatures }} @@ -16,9 +17,9 @@
{{ end }} - + - ▶ Watch how to get started in just over 2 minutes + diff --git a/website/site/layouts/partials/header.html b/website/site/layouts/partials/header.html index 445bb6d1..0226b568 100755 --- a/website/site/layouts/partials/header.html +++ b/website/site/layouts/partials/header.html @@ -29,15 +29,18 @@
- Star + {{ if or (eq .Section "docs") (eq .Title "Docs") }} + + + + + {{ end }} +
+ - Docs - Contributing - Community - - - - - {{ .Site.Data.landing.cta.button | markdownify }}
diff --git a/website/src/css/imports/base.css b/website/src/css/imports/base.css index 6f002a6b..4e3728c1 100755 --- a/website/src/css/imports/base.css +++ b/website/src/css/imports/base.css @@ -26,8 +26,8 @@ h1 { margin: 0 0 $small 0; @media screen and (min-width: $tablet) { - font-size: 46px; - line-height: 64px; + font-size: 42px; + line-height: 56px; } } diff --git a/website/src/css/imports/docs.css b/website/src/css/imports/docs.css index fa1b88b5..a8dce694 100644 --- a/website/src/css/imports/docs.css +++ b/website/src/css/imports/docs.css @@ -18,14 +18,6 @@ display: block; } - @media screen and (min-width: $desktop) { - position: fixed; - top: 158px; - bottom: 0; - overflow-y: auto; - padding-right: 1em; - } - &.mobile { display: block; position: relative; @@ -117,11 +109,6 @@ @neat-shift 1 24; } - @media screen and (min-width: $desktop) { - @neat-shift 7 24; - } - - h2:not(:first-child) { margin-top: $large; } diff --git a/website/src/css/imports/header.css b/website/src/css/imports/header.css index 9a8b7671..b74d8987 100644 --- a/website/src/css/imports/header.css +++ b/website/src/css/imports/header.css @@ -115,17 +115,28 @@ header { }*/ } - .nav-link { - color: white; - display: inline-block; - vertical-align: middle; - -webkit-vertical-align: middle !important; - margin-left: $tiny; + .nav-container { + padding-top: $micro; - &:hover { - color: $green; + .nav-link { + color: white; + display: inline-block; + vertical-align: middle; + -webkit-vertical-align: middle !important; + margin-left: $tiny; + + &:hover { + color: $green; + } } + .nav-link + iframe { + margin-left: $small; + vertical-align: middle; + @media screen and (max-width: $mobile) { + margin-top: $tiny; + } + } } img { @@ -144,13 +155,12 @@ header { } input { - padding-left: 0; + padding: -5px 0 0 0; border: none; border-radius: 0; appearance: none; background: none; color: $lightGrey; - padding: 2px $micro $micro 0; display: inline-block; font-size: $tiny; font-weight: $regular; @@ -179,11 +189,14 @@ header { .utility-input { display: none; padding: $micro; + position: relative; + top: -4px; width: auto; border-radius: 4px; background-color: rgba(255,255,255,0.1); color: white; margin: 0 0 0 $tiny; + padding-top: -5px; padding-bottom: 9px; text-align: left; text-decoration: none; @@ -228,41 +241,5 @@ header { float: left; } } - iframe { - @media screen and (max-width: 820px) { - display: none; - opacity: 0; - } - } - } - - .cta-header { - margin-left: $tiny; - } - .cta-header a { - display: inline-block; - color: white; - text-transform: uppercase; - font-size: $tiny; - letter-spacing: 0.5px; - background-color: $blue; - background-image: linear-gradient(-180deg, #4A7FDD 0%, #3A69C7 100%); - box-shadow: 0 4px 12px 0 rgba(0,0,0,0.3), 0 1px 3px 0 rgba(0,0,0,0.6); - border-radius: $borderRadius; - padding: 10px 14px 8px 14px; - transition: .2s; - - @media screen and (max-width: $mobile) { - margin-top: $tiny; - } - - &:hover { - transform: scale(1.05); - box-shadow: 0 4px 12px 0 rgba(0,0,0,0.5), 0 1px 3px 0 rgba(0,0,0,1); - } - &:active { - transform: scale(0.95); - box-shadow: none; - } } } diff --git a/website/src/css/imports/hero.css b/website/src/css/imports/hero.css index df56d4af..1ac692e2 100644 --- a/website/src/css/imports/hero.css +++ b/website/src/css/imports/hero.css @@ -44,7 +44,6 @@ h1 { color: $green; margin-bottom: 0; - max-width: 800px; } h2 { @@ -55,6 +54,33 @@ color: white; } + .cta-header { + display: block; + margin-top: $small; + } + .cta-header a { + display: inline-block; + color: white; + text-transform: uppercase; + font-size: $tiny; + letter-spacing: 0.5px; + background-color: $blue; + background-image: linear-gradient(-180deg, #4A7FDD 0%, #3A69C7 100%); + box-shadow: 0 4px 12px 0 rgba(0,0,0,0.3), 0 1px 3px 0 rgba(0,0,0,0.6); + border-radius: $borderRadius; + padding: 10px 14px 8px 14px; + transition: .2s; + + &:hover { + transform: scale(1.05); + box-shadow: 0 4px 12px 0 rgba(0,0,0,0.5), 0 1px 3px 0 rgba(0,0,0,1); + } + &:active { + transform: scale(0.95); + box-shadow: none; + } + } + .hero-features { @media screen and (min-width: $tablet) { @@ -68,6 +94,10 @@ } .hero-graphic { + @neat-span-columns 12; + position: relative; + cursor: pointer; + @media screen and (min-width: $tablet) { @neat-span-columns 6; float: right; @@ -81,27 +111,38 @@ } .hero-videolink { - display: block; - text-align: center; - margin-top: $micro; - padding: $micro 0 $micro 0; - font-size: 14px; + position: absolute; + margin: auto; + padding: 10px 0 0 10px; + top: 0; + bottom: 0; + left: 0; + right: 0; + width: 90px; + height: 90px; + font-size: 64px; font-weight: $semibold; - color: white; - background-color: rgba(255,255,255,0.1); - border-radius: $borderRadius; + text-align: center; + color: $blue; + background-color: rgba(255,255,255,0.85); + box-shadow: 0 3px 9px 0 rgba(0,0,0,0.05), 0 1px 3px 0 rgba(0,0,0,0.15); + border-radius: 100px; transition: 0.1s; } - } - .hero-graphic:hover { - .hero-videolink { - background-color: rgba(255,255,255,0.2); - transform: scale(1.03); + + &:hover { + .hero-videolink { + color: white; + background-color: $blue; + box-shadow: 0 6px 18px 0 rgba(0,0,0,0.15), 0 2px 6px 0 rgba(0,0,0,0.30); + transform: scale(1.1); + } } - } - .hero-graphic:active { - .hero-videolink { - background-color: rgba(255,255,255,0.4); + + &:active { + .hero-videolink { + transform: scale(0.9); + } } }