Merge pull request #4 from seigler/master

updated homepage styling
This commit is contained in:
Perry Woodin 2016-09-06 08:11:31 -04:00 committed by GitHub
commit 620970e234
30 changed files with 1335 additions and 1524 deletions

View file

@ -18,3 +18,7 @@ type: colors
<div class="color__tile color__tile--dark-blue-bg">
<code class="color__name">$dark-blue</code>
</div>
<div class="color__tile color__tile--gray-light-bg">
<code class="color__name">$gray-light</code>
</div>

View file

@ -15,11 +15,16 @@ languages: ["en", "es", "cn", "pt", "ru", "it"]
exclude_from_localizations: ["assets"]
sass:
style: compressed
cache: false
style: compressed
cache: false
gems:
autoprefixer:
browsers:
- last 2 versions
gems:
- jekyll-paginate
- jekyll-autoprefixer
collections:
components: # style guide

View file

@ -11,11 +11,12 @@
{% include nav-desktop.html %}
<!-- Hero content -->
<h1 class="content">{% t pages.home.hero-heading %}</h1>
<p class="content">{% t pages.home.hero-text %}</p>
<div class="content">
<a href="#" class="btn-blue-solid">{% t nav.get-dash %}</a>
<h1>{% t pages.home.hero-heading %}</h1>
<p>{% t pages.home.hero-text %}</p>
<div>
<a href="#" class="btn-blue-solid">{% t nav.get-dash %}</a>
</div>
</div>
</div>
</div>

View file

@ -52,7 +52,7 @@ pages:
evolution-text: What's next? We are working on a new decentralized service hosted on the masternode network that will open up Dash to web and mobile while being as easy to use as PayPal but still fully decentralized. Stay tuned...
evolution-btn: Learn More
news-heading: Lastest News
news-heading: Latest News
news-btn: View All News
get-started-heading: Get Started

View file

@ -11,11 +11,12 @@
{% include nav-desktop.html %}
<!-- Hero content -->
<h1 class="content">{% t pages.home.hero-heading %}</h1>
<p class="content">{% t pages.home.hero-text %}</p>
<div class="content">
<a href="#" class="btn-blue-solid">{% t nav.get-dash %}</a>
<h1>{% t pages.home.hero-heading %}</h1>
<p>{% t pages.home.hero-text %}</p>
<div>
<a href="#" class="btn-blue-solid">{% t nav.get-dash %}</a>
</div>
</div>
</div>
</div>

View file

@ -11,11 +11,12 @@
{% include nav-desktop.html %}
<!-- Hero content -->
<h1 class="content">{% t pages.home.hero-heading %}</h1>
<p class="content">{% t pages.home.hero-text %}</p>
<div class="content">
<a href="#" class="btn-blue-solid">{% t nav.get-dash %}</a>
<h1>{% t pages.home.hero-heading %}</h1>
<p>{% t pages.home.hero-text %}</p>
<div>
<a href="#" class="btn-blue-solid">{% t nav.get-dash %}</a>
</div>
</div>
</div>
</div>

View file

@ -11,11 +11,12 @@
{% include nav-desktop.html %}
<!-- Hero content -->
<h1 class="content">{% t pages.home.hero-heading %}</h1>
<p class="content">{% t pages.home.hero-text %}</p>
<div class="content">
<a href="#" class="btn-blue-solid">{% t nav.get-dash %}</a>
<h1>{% t pages.home.hero-heading %}</h1>
<p>{% t pages.home.hero-text %}</p>
<div>
<a href="#" class="btn-blue-solid">{% t nav.get-dash %}</a>
</div>
</div>
</div>
</div>

View file

@ -11,11 +11,12 @@
{% include nav-desktop.html %}
<!-- Hero content -->
<h1 class="content">{% t pages.home.hero-heading %}</h1>
<p class="content">{% t pages.home.hero-text %}</p>
<div class="content">
<a href="#" class="btn-blue-solid">{% t nav.get-dash %}</a>
<h1>{% t pages.home.hero-heading %}</h1>
<p>{% t pages.home.hero-text %}</p>
<div>
<a href="#" class="btn-blue-solid">{% t nav.get-dash %}</a>
</div>
</div>
</div>
</div>

View file

@ -11,11 +11,12 @@
{% include nav-desktop.html %}
<!-- Hero content -->
<h1 class="content">{% t pages.home.hero-heading %}</h1>
<p class="content">{% t pages.home.hero-text %}</p>
<div class="content">
<a href="#" class="btn-blue-solid">{% t nav.get-dash %}</a>
<h1>{% t pages.home.hero-heading %}</h1>
<p>{% t pages.home.hero-text %}</p>
<div>
<a href="#" class="btn-blue-solid">{% t nav.get-dash %}</a>
</div>
</div>
</div>
</div>

View file

@ -1,40 +0,0 @@
@media (max-width: 1279px) {
.content {
width: 1000px;
margin: 0 auto;
}
h1 {
font-size: 34px;
}
h2 {
font-size: 20px;
}
#background-video {
top: -40px;
max-height: 600px;
}
#key-features {
padding: 0 30px 0 30px;
.col {
width: 50%;
}
.feature {
margin-right: 0px;
.icon {
width: 40px;
height: auto;
margin: 0 30px 100px 0;
}
}
.screenshot {
padding: 40px 30px 30px 10px;
}
}
.feature {
img {
width: 60px;
height: auto;
}
}
}

View file

@ -1,113 +0,0 @@
@media (max-width: 600px) {
.content {
width: 100%;
margin: 0 auto;
padding: 0;
}
h1 {
font-size: 30px;
}
h2 {
font-size: 18px;
}
#hero {
padding-left: 30px;
padding-right: 30px;
}
#sign-in-cta {
form {
input {
display: block;
width: 100%;
margin-bottom: 10px;
}
}
}
#info {
.col {
width: 100%;
box-sizing: border-box;
margin-top: 10px;
margin-bottom: 20px;
border-right: none;
h2 {
font-size: 24px;
margin-bottom: 10px;
}
span {
color: #999999;
text-transform: uppercase;
font-weight: bold;
font-size: 12px;
}
}
}
#key-features {
padding: 30px;
.col {
width: 100%;
box-sizing: border-box;
}
.feature {
margin-bottom: 50px;
margin-right: 20px;
text-align: center;
.icon {
float: none;
width: 55px;
height: auto;
margin: 0;
}
p {
text-align: left;
}
}
}
#news {
padding: 30px 0 30px 0;
.news-post {
width: 100%;
img {
width: 100%;
max-width: 600px;
height: auto;
}
}
}
#get-started-cta {
padding: 50px 30px;
.col {
width: 100%;
padding: 0px;
margin-top: 20px;
margin-bottom: 20px;
}
}
iframe {
min-height: 300px;
}
.feature {
text-align: center;
img {
width: 75px;
height: auto;
}
.col {
float: none;
display: inline-block;
width: 100%;
p {
text-align: left;
}
ul {
text-align: left;
}
ol {
text-align: left;
}
}
}
}

View file

@ -1,62 +0,0 @@
@media (max-width: 760px) {
.content {
width: 600px;
margin: 0 auto;
}
h1 {
font-size: 32px;
}
h2 {
font-size: 18px;
}
.second-line{
display: block;
}
#info {
.col {
width: 33%;
box-sizing: border-box;
padding: 0 10px;
h2 {
font-size: 18px;
margin-bottom: 10px;
}
span {
font-size: 10px;
}
}
}
footer {
padding-top: 0px;
text-align: center;
.nav {
float: none;
text-align: center;
li {
display: block;
margin-left: 0px;
padding-top: 10px;
padding-bottom: 10px;
border-bottom: 1px solid $gray;
}
}
.social {
float: none;
text-align: center;
margin-top: 15px;
}
.logo {
margin-top: 20px;
float: none;
width: 56px;
height: auto;
}
.copyright {
margin-top: 13px;
float: none;
font-size: 12px;
color: #999;
}
}
}

View file

@ -1,91 +0,0 @@
@media (max-width: 1020px) {
.content {
width: 750px;
margin: 0 auto;
}
h1 {
font-size: 34px;
}
h2 {
font-size: 20px;
}
.desktop {
display: none;
width: 0;
height: 0;
}
.button_container {
display: inline-block;
}
#hero {
#top {
margin-bottom: 100px;
padding: 0 !important;
}
}
#info {
.col {
padding: 0px 20px;
h2 {
font-size: 20px;
}
span {
font-size: 12px;
}
}
}
#key-features {
.col {
width: 100%;
}
.screenshot {
text-align: center !important;
padding: 0;
}
}
#news {
.news-post {
width: 50%;
}
}
#get-started-cta {
.col {
width: 50%;
}
}
#top{
padding: 0 30px 0 30px;
}
#title{
padding: 0 30px 0 30px;
}
.main-col {
float: none;
width: 100%;
padding: 0 30px 0 30px;
}
.sidebar {
float: none;
width: 100%;
padding: 0 30px 0 30px;
}
.single-col {
padding: 0 30px 0 30px;
}
.feature {
img {
margin-top: 10px;
width: 40px;
height: auto;
}
}
.col-2{
.col {
width: 100%;
border-right: none !important;
padding: 0;
}
}
}

View file

@ -8,32 +8,34 @@ $red: #ec2227;
$green: #1dd68a;
$gray: #f0f0f0;
$dark-blue: #0b3b5a;
$gray-light: #f7f9fa;
// for the style guide:
@function contrast-color($color, $dark, $light, $threshold: 50) {
@if (lightness(scale-color($color, $green: 30%, $blue: -6%, $red: 4%)) > $threshold) { // perceptual luminance http://www.workwithcolor.com/color-luminance-2233.htm
@return $dark; // Lighter background, return dark color
} @else {
@return $light; // Darker background, return light color
}
@if (lightness(scale-color($color, $green: 30%, $blue: -6%, $red: 4%)) > $threshold) { // perceptual luminance http://www.workwithcolor.com/color-luminance-2233.htm
@return $dark; // Lighter background, return dark color
} @else {
@return $light; // Darker background, return light color
}
}
$color:
('black', $black),
('white', $white),
('black', $black),
('white', $white),
('blue', $blue),
('red', $red),
('green', $green),
('blue', $blue),
('red', $red),
('green', $green),
('gray', $gray),
('dark-blue', $dark-blue);
('gray', $gray),
('dark-blue', $dark-blue),
('gray-light', $gray-light);
@each $name, $bgcolor in $color {
.color__tile--#{$name}-bg {
background-color: $bgcolor;
color: contrast-color($bgcolor, #000, #fff);
box-shadow: 0 0 10px -4px contrast-color($bgcolor, black, transparent, 80) inset;
}
.color__tile--#{$name}-bg {
background-color: $bgcolor;
color: contrast-color($bgcolor, #000, #fff);
box-shadow: 0 0 10px -4px contrast-color($bgcolor, black, transparent, 80) inset;
}
}

View file

@ -3,9 +3,9 @@ This is for time-saving base classes that get @extend -ed
*/
%clearfix {
&:after {
content: "";
display: table;
clear: both;
}
&:after {
content: "";
display: table;
clear: both;
}
}

View file

@ -1,46 +1,44 @@
/*
footer
nav.content
section x5
<text>
ul
li
.footer--menu.content
.footer--languagePicker
a x3
.footer--legal
.content
.footer--copyright
a
nav.content
section x5
<text>
ul
li
.footer--menu.content
.footer--languagePicker
a x3
.footer--legal
.content
.footer--copyright
a
*/
footer {
background-color: #333333;
color: #717171;
padding-top: 4em;
background-color: #333333;
color: #717171;
padding-top: 4em;
a {
color: $white;
}
a {
color: $white;
}
> nav {
display: table;
table-layout: fixed;
> section {
display: table-cell;
> ul {
margin: 1em 0 0;
padding: 0;
> li {
list-style: none;
}
}
}
}
> nav {
display: table;
table-layout: fixed;
> section {
display: table-cell;
> ul {
margin: 1em 0 0;
padding: 0;
> li {
list-style: none;
}
}
}
}
}
.footer--social {
-moz-column-count: 2;
-webkit-column-count: 2;
column-count: 2;
column-count: 2;
}

View file

@ -4,7 +4,7 @@ form {
padding: 10px 5px 10px 5px;
border: 2px solid $black;
box-sizing: border-box;
-webkit-appearance: none;
appearance: none;
}
.username {
background-image: url(../images/icon-username.png);
@ -22,4 +22,4 @@ form {
padding-left: 40px;
color: #ccc;
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,7 @@
#hero {
height: 600px;
color: $white;
position: relative;
#top {
border-bottom: 1px solid rgba($white, 0.35);
@ -12,24 +13,26 @@
}
}
}
> h1, > p {
text-shadow: 2px 2px 2px rgba(black, 0.4);
}
> h1 {
margin-top: 2.5em;
font-size: 56px;
line-height: 1.2;
}
> p {
font-family: $font-heading;
font-size: 35px;
line-height: 1.25;
margin-bottom: 0.5em;
}
.btn-blue-solid {
font-size: 20px;
padding: 5px 25px;
> .content {
> h1, > p {
text-shadow: 2px 2px 2px rgba(black, 0.4);
}
> h1 {
margin-top: 2.5em;
font-size: 56px;
line-height: 1.2;
}
> p {
font-family: $font-heading;
font-size: 35px;
line-height: 1.25;
margin-bottom: 0.5em;
}
.btn-blue-solid {
font-size: 20px;
padding: 5px 25px;
}
}
}

View file

@ -1,94 +1,212 @@
#info {
.col {
width: 33%;
box-sizing: border-box;
margin-top: 50px;
margin-bottom: 70px;
.page-home {
> section {
padding: 40px 0;
overflow: hidden;
position: relative;
text-align: center;
border-right: 2px solid $gray;
&:nth-child(2n) {
background-color: $gray-light;
}
.row {
text-align: left;
}
.features-collection {
text-align: center;
}
h2 {
font-size: 26px;
margin-bottom: 10px;
span {
font-family: inherit;
font-size: inherit;
margin-bottom: inherit;
color: inherit;
}
margin-top: 40px;
}
span {
color: #999999;
text-transform: uppercase;
font-weight: bold;
font-size: 14px;
}
}
.last {
border-right: none !important;
}
}
#key-features {
background-color: $gray;
padding: 50px 0 30px 0;
.col {
width: 50%;
box-sizing: border-box;
}
.feature {
margin-bottom: 50px;
margin-right: 20px;
.icon {
float: left;
width: 55px;
height: auto;
margin: 0 40px 50px 0;
p {
max-width: 60em;
margin: 20px auto;
}
}
.screenshot {
text-align: right;
img {
width: 100%;
max-width: 600px;
height: auto;
max-width: 100%;
@media (min-width: 768px) {
max-width: calc(100% - 20px);
}
}
}
.col-sm-6 {
z-index: 2; // Lets me use z-index:1 for columns that underlap
}
.home-architecture-graphic,
.home-budgets-graphic,
.home-network-graphic,
.home-evolution-graphic {
min-height: 350px;
@media (min-width: 768px) {
> img {
position: absolute;
}
}
@media (max-width: 767px) {
text-align: center;
> img {
margin-top: 20px;
}
}
}
.home-architecture-graphic {
> img {
max-width: 100%;
box-shadow: -5px 0 10px $black;
border-radius: 8px 0 0 0;
}
}
.home-budgets-graphic {
@media (min-width: 768px) {
min-height: 385px;
> img {
bottom: 10px;
}
}
}
.home-network-graphic {
min-height: 250px;
max-width: none;
@media (min-width: 768px) {
z-index: 1;
> img {
right: -20px;
bottom: -50px;
max-width: 150%;
}
&:after {
content: '';
position: absolute;
right: -20px;
bottom: -50px;
width: 819px;
height: 339px;
max-width: 150%;
background: linear-gradient(to right, $gray-light, rgba($gray-light, 0.5) 33%, rgba($gray-light, 0) 75%);
}
}
}
.home-evolution-graphic {
@media (min-width: 768px) {
z-index: 1;
> img {
top: -40px;
bottom: -40px;
max-width: none;
max-height: calc(100% + 80px);
}
&:after {
content: '';
position: absolute;
top: -40px;
bottom: -40px;
width: 200%;
background: linear-gradient(to left, $white 50%, rgba($white, 0) 87.5%);
}
}
}
.home-get-started-cta {
background-color: $blue;
color: white;
padding-bottom: 0;
h1, h2, h3 {
color: white;
}
img {
vertical-align: text-top;
}
.btn-white-solid {
color: $blue;
}
}
}
#news {
padding: 50px 0 0 0;
.news-post {
width: 25%;
padding: 30px;
float: left;
box-sizing: border-box;
div.news-image {
line-height:310px;
height:180px;
img {
width: 100%;
max-width: 310px;
max-height:205px;
height: auto;
.logo-collection {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
> .logo {
flex: 1 1 auto;
margin: 20px 10px;
}
}
.news-post {
background-color: $white;
box-shadow: 0 1px 4px rgba($black, 0.25);
margin: 20px 0;
.news-image {
position: relative;
overflow: hidden;
padding-bottom: 60%;
background-color: #999;
> img {
position: absolute;
top: 0;
left: 0;
width: 100%;
@supports (object-fit: cover) {
height: 100%;
object-fit: cover;
object-position: 50% 50%;
}
}
.news-title {
height: 60px;
overflow: hidden;
}
.news-body {
position: relative;
padding: 20px;
height: 220px;
overflow: hidden;
&:after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 90px;
background: linear-gradient(to top, white 50%, rgba(white, 0));
pointer-events: none;
}
h3 {
margin-bottom: 10px;
font-size: 18px;
color: $blue;
line-height: 1.2;
}
.date {
font-style: italic;
color: lighten($black, 50%);
font-size: 14px;
}
a {
color: $blue;
text-decoration: none;
&:hover {
text-decoration: underline;
}
p {
margin: 0;
position: absolute;
left: 20px;
right: 20px;
overflow: hidden;
}
a.read-more {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 20px;
z-index: 1;
}
}
}

View file

@ -16,11 +16,9 @@ a.blog_link {
}
.img-circle {
margin: 1px;
border:1px solid #dddddd;
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
margin: 1px;
border:1px solid #dddddd;
border-radius: 50%;
}
.background-title {

View file

@ -7,6 +7,10 @@ body {
.content {
width: 1280px;
max-width: calc(100% - 40px);
@media (max-width: 1024px) {
max-width: 96.1%; // at 1024px 40px is 3.9% of screen width
}
margin: 0 auto;
}

View file

@ -1,210 +1,191 @@
.container {
position: absolute;
width: 100%;
height: 100%;
text-align: center;
top: 40%;
left: 0;
margin: 0 auto;
position: absolute;
width: 100%;
height: 100%;
text-align: center;
top: 40%;
left: 0;
margin: 0 auto;
p {
font-size: 18px;
font-size: 18px;
}
a {
display: inline-block;
position: relative;
text-align: center;
color: #FF5252;
text-decoration: none;
font-size: 18px;
overflow: hidden;
top: 5px;
display: inline-block;
position: relative;
text-align: center;
color: #FF5252;
text-decoration: none;
font-size: 18px;
overflow: hidden;
top: 5px;
}
a:after {
content: '';
position: absolute;
background: #FF5252;
height: 2px;
width: 0%;
-webkit-transform: translateX(-50%);
-ms-transform: translateX(-50%);
transform: translateX(-50%);
left: 50%;
bottom: 0;
-webkit-transition: .35s ease;
transition: .35s ease;
content: '';
position: absolute;
background: #FF5252;
height: 2px;
width: 0%;
transform: translateX(-50%);
left: 50%;
bottom: 0;
transition: .35s ease;
}
.a:hover:after, a:focus:after, a:active:after {
width: 100%;
width: 100%;
}
}
#hero{
.button_container {
position: absolute;
top: 40px;
right: 30px;
height: 23px;
width: 32px;
cursor: pointer;
z-index: 100;
-webkit-transition: opacity .25s ease;
transition: opacity .25s ease;
&:hover {
opacity: .7;
}
position: absolute;
top: 40px;
right: 30px;
height: 23px;
width: 32px;
cursor: pointer;
z-index: 100;
transition: opacity .25s ease;
&:hover {
opacity: .7;
}
span {
background: $white;
border: none;
height: 4px;
width: 100%;
position: absolute;
top: 0;
left: 0;
-webkit-transition: all .35s ease;
transition: all .35s ease;
cursor: pointer;
background: $white;
border: none;
height: 4px;
width: 100%;
position: absolute;
top: 0;
left: 0;
transition: all .35s ease;
cursor: pointer;
}
span:nth-of-type(2) {
top: 8px;
top: 8px;
}
span:nth-of-type(3) {
top: 16px;
top: 16px;
}
}
.button_container.active .top {
-webkit-transform: translateY(8px) translateX(0) rotate(45deg);
-ms-transform: translateY(8px) translateX(0) rotate(45deg);
transform: translateY(8px) translateX(0) rotate(45deg);
background: $white;
transform: translateY(8px) translateX(0) rotate(45deg);
background: $white;
}
.button_container.active .middle {
opacity: 0;
background: $white;
opacity: 0;
background: $white;
}
.button_container.active .bottom {
-webkit-transform: translateY(-8px) translateX(0) rotate(-45deg);
-ms-transform: translateY(-8px) translateX(0) rotate(-45deg);
transform: translateY(-8px) translateX(0) rotate(-45deg);
background: $white;
transform: translateY(-8px) translateX(0) rotate(-45deg);
background: $white;
}
}
.button_container {
position: absolute;
top: 30px;
right: 30px;
height: 23px;
width: 32px;
cursor: pointer;
z-index: 100;
-webkit-transition: opacity .25s ease;
transition: opacity .25s ease;
&:hover {
opacity: .7;
}
position: absolute;
top: 30px;
right: 30px;
height: 23px;
width: 32px;
cursor: pointer;
z-index: 100;
transition: opacity .25s ease;
&:hover {
opacity: .7;
}
span {
background: $blue;
border: none;
height: 4px;
width: 100%;
position: absolute;
top: 0;
left: 0;
-webkit-transition: all .35s ease;
transition: all .35s ease;
cursor: pointer;
background: $blue;
border: none;
height: 4px;
width: 100%;
position: absolute;
top: 0;
left: 0;
transition: all .35s ease;
cursor: pointer;
}
span:nth-of-type(2) {
top: 8px;
top: 8px;
}
span:nth-of-type(3) {
top: 16px;
top: 16px;
}
}
.button_container.active .top {
-webkit-transform: translateY(8px) translateX(0) rotate(45deg);
-ms-transform: translateY(8px) translateX(0) rotate(45deg);
transform: translateY(8px) translateX(0) rotate(45deg);
background: $blue;
transform: translateY(8px) translateX(0) rotate(45deg);
background: $blue;
}
.button_container.active .middle {
opacity: 0;
background: $blue;
opacity: 0;
background: $blue;
}
.button_container.active .bottom {
-webkit-transform: translateY(-8px) translateX(0) rotate(-45deg);
-ms-transform: translateY(-8px) translateX(0) rotate(-45deg);
transform: translateY(-8px) translateX(0) rotate(-45deg);
background: $blue;
transform: translateY(-8px) translateX(0) rotate(-45deg);
background: $blue;
}
.overlay {
position: fixed;
background: $black;
top: 0;
left: 0;
width: 100%;
height: 0%;
opacity: 0;
visibility: hidden;
-webkit-transition: opacity .35s, visibility .35s, height .35s;
transition: opacity .35s, visibility .35s, height .35s;
overflow: hidden;
.logo {
position: fixed;
background: $black;
top: 0;
left: 0;
width: 100%;
height: 0%;
opacity: 0;
visibility: hidden;
transition: opacity .35s, visibility .35s, height .35s;
overflow: hidden;
.logo {
width: 180px;
height: auto;
top: 30px;
left: 30px;
position: absolute;
}
nav {
position: relative;
height: 70%;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
font-size: 36px;
font-weight: 200;
text-align: center;
nav {
position: relative;
height: 70%;
top: 50%;
transform: translateY(-50%);
font-size: 36px;
font-weight: 200;
text-align: center;
}
ul {
list-style: none;
padding: 0;
margin: 0 auto;
margin-top: 0px;
display: inline-block;
position: relative;
height: 50%;
ul {
list-style: none;
padding: 0;
margin: 0 auto;
margin-top: 0px;
display: inline-block;
position: relative;
height: 50%;
li {
display: block;
height: 16%;
height: calc(100% / 6);
min-height: 50px;
position: relative;
opacity: 0;
display: block;
height: 16%;
height: calc(100% / 6);
min-height: 50px;
position: relative;
opacity: 0;
}
a {
display: block;
position: relative;
color: $white;
text-decoration: none;
overflow: hidden;
padding-bottom: 15px;
padding-top: 5px;
display: block;
position: relative;
color: $white;
text-decoration: none;
overflow: hidden;
padding-bottom: 15px;
padding-top: 5px;
}
a:hover:after, a:focus:after, a:active:after {
width: 100%;
}
}
.sign-up-btn {
border: none;
padding: 30px;
@ -216,47 +197,31 @@
}
}
.overlay.open {
opacity: 1;
visibility: visible;
height: 100%;
li {
-webkit-animation: fadeInRight .5s ease forwards;
animation: fadeInRight .5s ease forwards;
-webkit-animation-delay: .35s;
animation-delay: .35s;
opacity: 1;
visibility: visible;
height: 100%;
li {
animation: fadeInRight .5s ease forwards;
animation-delay: .35s;
}
li:nth-of-type(2) {
-webkit-animation-delay: .4s;
animation-delay: .4s;
animation-delay: .4s;
}
li:nth-of-type(3) {
-webkit-animation-delay: .45s;
animation-delay: .45s;
animation-delay: .45s;
}
li:nth-of-type(4) {
-webkit-animation-delay: .50s;
animation-delay: .50s;
animation-delay: .50s;
}
}
@-webkit-keyframes fadeInRight {
0% {
opacity: 0;
left: 20%;
}
100% {
opacity: 1;
left: 0;
}
}
@keyframes fadeInRight {
0% {
opacity: 0;
left: 20%;
}
100% {
opacity: 1;
left: 0;
}
0% {
opacity: 0;
left: 20%;
}
100% {
opacity: 1;
left: 0;
}
}

View file

@ -52,3 +52,6 @@ border-spacing: 0;
*,*:after,*:before {
box-sizing: inherit;
}
body {
box-sizing: border-box;
}

View file

@ -1,20 +1,20 @@
#styleguide {
.component {
&:after { // TODO clearfix mixin
content: '';
display: table;
clear: both;
}
}
.component + .component {
margin-top: 10px;
}
.component {
&:after { // TODO clearfix mixin
content: '';
display: table;
clear: both;
}
}
.component + .component {
margin-top: 10px;
}
.color__tile {
display: inline-block;
padding: 20px;
text-align: center;
width: 10em;
border-radius: 10px;
}
.color__tile {
display: inline-block;
padding: 20px;
text-align: center;
width: 10em;
border-radius: 10px;
}
}

View file

@ -25,6 +25,7 @@ p {
h1, h2, h3 {
font-family: $font-heading;
font-weight: bold;
}
h1 {
@ -34,7 +35,7 @@ h1 {
}
h2 {
font-size: 22px;
font-size: 28px;
color: $blue;
}

View file

@ -28,10 +28,3 @@
@import "post";
@import "junk-drawer";
@import "styleguide";
//responsive overrides
//TODO merge these back into the rest of the SCSS files
@import "1024";
@import "768";
@import "640";
@import "480";

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 KiB

After

Width:  |  Height:  |  Size: 232 KiB

Before After
Before After

BIN
assets/img/home/macbook.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 KiB

View file

@ -4,182 +4,206 @@ title: pages.home.title
description: pages.home.description
---
{% tf home/hero.html %}
<div class="content">
<!--
<div class="page-home">
<!--
WHAT IS DASH?
LINK TO VIDEO.
-->
<div class="row" style="text-align:center;">
<section>
<div class="content">
<h2>{% t pages.home.video-heading %}</h2>
{% tmd pages.home.video-text %}
<a href="#" class="btn-blue">{% t pages.home.video-btn %}</a>
</div>
</div>
</section>
<!--
<!--
DASH FEATURES
PRIVATE | INSTANT | SECURE
-->
<div class="row" style="text-align:center;">
<div class="col-sm-4">
<img src="/assets/img/home/icon_private.png" alt="{% t pages.home.feature-private-heading %}">
<h2>{% t pages.home.feature-private-heading %}</h2>
{% tmd pages.home.feature-private-text %}
</div>
<div class="col-sm-4">
<img src="/assets/img/home/icon_instant.png" alt="{% t pages.home.feature-instant-heading %}">
<h2>{% t pages.home.feature-instant-heading %}</h2>
{% tmd pages.home.feature-instant-text %}
<section>
<div class="content">
<div class="row features-collection">
<div class="col-sm-4">
<img src="/assets/img/home/icon_private.png" height="100" alt="{% t pages.home.feature-private-heading %}">
<h2>{% t pages.home.feature-private-heading %}</h2>
{% tmd pages.home.feature-private-text %}
</div>
<div class="col-sm-4">
<img src="/assets/img/home/icon_instant.png" height="100" alt="{% t pages.home.feature-instant-heading %}">
<h2>{% t pages.home.feature-instant-heading %}</h2>
{% tmd pages.home.feature-instant-text %}
</div>
<div class="col-sm-4">
<img src="/assets/img/home/icon_secure.png" height="100" alt="{% t pages.home.feature-secure-heading %}">
<h2>{% t pages.home.feature-secure-heading %}</h2>
{% tmd pages.home.feature-secure-text %}
</div>
</div>
</div>
<div class="col-sm-4">
<img src="/assets/img/home/icon_secure.png" alt="{% t pages.home.feature-secure-heading %}">
<h2>{% t pages.home.feature-secure-heading %}</h2>
{% tmd pages.home.feature-secure-text %}
</div>
</div>
</section>
<!--
<!--
MERCHANTS
-->
<div class="row" style="text-align:center;">
<h2>{% t pages.home.merchants-heading %}</h2>
<section>
<div class="content">
<div>
<h2>{% t pages.home.merchants-heading %}</h2>
{% tmd pages.home.merchants-text %}
</div>
{% tmd pages.home.merchants-text %}
</div>
<div class="row" style="text-align:center;">
<div class="col-sm-3">
<img src="/assets/img/home/bolehvpn.png">
</div>
<div class="col-sm-3">
<img src="/assets/img/home/node40.png">
</div>
<div class="col-sm-3">
<img src="/assets/img/home/protonmail.png">
</div>
<div class="col-sm-3">
<img src="/assets/img/home/qhoster.png">
</div>
</div>
<div class="logo-collection">
<div class="logo">
<img src="/assets/img/home/bolehvpn.png">
</div>
<div class="logo">
<img src="/assets/img/home/node40.png">
</div>
<div class="logo">
<img src="/assets/img/home/protonmail.png">
</div>
<div class="logo">
<img src="/assets/img/home/qhoster.png">
</div>
</div>
<div class="row" style="text-align:center;">
<a href="#" class="btn-blue">{% t pages.home.merchants-btn %}</a>
<a href="#" class="btn-blue">{% t pages.home.merchants-join-btn %}</a>
</div>
<!--
<div>
<a href="#" class="btn-blue">{% t pages.home.merchants-btn %}</a>
<a href="#" class="btn-blue">{% t pages.home.merchants-join-btn %}</a>
</div>
</div>
</section>
<!--
NETWORK ARCHITECTURE
-->
<div class="row">
<div class="col-sm-6">
<h2>{% t pages.home.architecture-heading %}</h2>
<section>
<div class="content">
<div class="row">
<div class="col-sm-6">
<h2>{% t pages.home.architecture-heading %}</h2>
{% tmd pages.home.architecture-text %}
{% tmd pages.home.architecture-text %}
<a href="#" class="btn-blue">{% t pages.home.architecture-btn %}</a>
<a href="#" class="btn-blue">{% t pages.home.architecture-btn %}</a>
</div>
<div class="col-sm-6 home-architecture-graphic">
<img src="/assets/img/home/code.png" alt="{% t pages.home.architecture-heading %}">
</div>
</div>
</div>
<div class="col-sm-6">
<img src="/assets/img/home/code.png" alt="{% t pages.home.architecture-heading %}">
</div>
</div>
<!--
</section>
<!--
SELF GOVERNING | SELF FUNDING
-->
<div class="row">
<div class="col-sm-6">
<img src="/assets/img/home/budgets.png" alt="{% t pages.home.governance-heading%}">
<section>
<div class="content row">
<div class="col-sm-6 col-sm-push-6">
<h2>{% t pages.home.governance-heading%}</h2>
{% tmd pages.home.governance-text %}
<a href="#" class="btn-blue">{% t pages.home.proposal-btn %}</a>
<a href="#" class="btn-blue">{% t pages.home.proposal-submit-btn %}</a>
</div>
<div class="col-sm-6 col-sm-pull-6 home-budgets-graphic">
<img src="/assets/img/home/budgets.png" alt="{% t pages.home.governance-heading%}">
</div>
</div>
<div class="col-sm-6">
<h2>{% t pages.home.governance-heading%}</h2>
</section>
{% tmd pages.home.governance-text %}
<a href="#" class="btn-blue">{% t pages.home.proposal-btn %}</a>
<a href="#" class="btn-blue">{% t pages.home.proposal-submit-btn %}</a>
</div>
</div>
<!--
<!--
FASTEST GROWING NETWORK
-->
<div class="row">
<div class="col-sm-6">
<h2>{% t pages.home.network-growth-heading %}</h2>
<section>
<div class="content row">
<div class="col-sm-6">
<h2>{% t pages.home.network-growth-heading %}</h2>
{% tmd pages.home.network-growth-text %}
{% tmd pages.home.network-growth-text %}
<a href="#" class="btn-blue">{% t pages.home.network-growth-btn %}</a>
<a href="#" class="btn-blue">{% t pages.home.network-growth-btn %}</a>
</div>
<div class="col-sm-6 home-network-graphic">
<img src="/assets/img/home/graph.png" alt="{% t pages.home.network-growth-heading %}">
</div>
</div>
<div class="col-sm-6">
<img src="/assets/img/home/graph.png" alt="{% t pages.home.network-growth-heading %}">
</div>
</div>
</section>
<!--
<!--
EVOLUTION
-->
<div class="row">
<div class="col-sm-6">
<section>
<div class="content row">
<div class="col-sm-6 col-sm-push-6">
<h2>{% t pages.home.evolution-heading %}</h2>
{% tmd pages.home.evolution-text %}
<a href="#" class="btn-blue">{% t pages.home.evolution-btn %}</a>
</div>
<div class="col-sm-6 col-sm-pull-6 home-evolution-graphic">
<img src="/assets/img/home/stock-photo-63187555-she-ll-source-whatever-her-customers-are-looking-for.jpg" alt="Merchant using a laptop">
</div>
</div>
<div class="col-sm-6">
<h2>{% t pages.home.evolution-heading %}</h2>
</section>
{% tmd pages.home.evolution-text %}
<a href="#" class="btn-blue">{% t pages.home.evolution-btn %}</a>
</div>
</div>
<!--
<!--
LATEST NEWS
-->
<div class="row" style="text-align:center;">
<h2>{% t pages.home.news-heading %}</h2>
</div>
<section>
<div class="content">
<h2>{% t pages.home.news-heading %}</h2>
<div class="row">
{% for post in site.posts limit:4 %}
<div class="col-sm-3">
<div class="news-post">
<div class="news-image">
{% if post.image %}
<img src="{{ post.image }}">
{% endif %}
<div class="row">
{% for post in site.posts limit:4 %}
<div class="col-sm-6 col-md-3">
<div class="news-post">
<div class="news-image">
{% if post.image %}
<img src="{{ post.image }}">
{% endif %}
</div>
<div class="news-body">
<h3 class="news-title">{{ post.title }}</h3>
<div class="date">{{ post.date | date: "%b %d, %Y" }}</div>
<p>{{ post.excerpt | strip_html | truncate: 250 }}</p>
<a class="read-more" href="{{ post.url }}">Read More...</a>
</div>
</div>
</div>
<div class="news-title">
<h3>{{ post.title }}</h3>
</div>
<span class="date">{{ post.date | date: "%b %d, %Y" }}</span>
<p>{{ post.excerpt | strip_html | truncatewords: 20 }}</p>
<a href="{{ post.url }}">Read More...</a>
</div>
{% endfor %}
</div>
<div>
<a href="#" class="btn-blue">{% t pages.home.news-btn %}</a>
</div>
</div>
{% endfor %}
</div>
</section>
<div class="row" style="text-align:center;">
<a href="#" class="btn-blue">{% t pages.home.news-btn %}</a>
</div>
<!--
<!--
GET STARTED
-->
<div class="row" style="text-align:center;">
<h2>{% t pages.home.get-started-heading %}</h2>
<section class="home-get-started-cta">
<div class="content">
<h2>{% t pages.home.get-started-heading %}</h2>
{% tmd pages.home.get-started-text %}
{% tmd pages.home.get-started-text %}
<a href="#" class="btn-blue">{% t pages.home.get-started-btn %}</a>
</div>
</div>
<a href="#" class="btn-white-solid">{% t pages.home.get-started-btn %}</a>
<img src="/assets/img/home/macbook.png" alt="">
</div>
</section>
</div>