1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 17:50:07 +01:00

Merge pull request #51 from ascribe/thisandthat

Small fixes & features
This commit is contained in:
Matthias Kretschmann 2016-02-17 19:08:23 +01:00
commit a101d10bce
22 changed files with 199 additions and 50 deletions

View File

@ -6,4 +6,7 @@ sitemap: false
title: Oops, that didn't work title: Oops, that didn't work
--- ---
[Back to site](/) Pardon us, the page you requested isn't here. Please check the url for typos or [let us know](/contact/) if you expected a resource to be here.
[Back to home](/)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 611 B

After

Width:  |  Height:  |  Size: 511 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 965 B

After

Width:  |  Height:  |  Size: 825 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -1,14 +1,57 @@
.page-404 { .page-404 {
.header { position: relative;
background-image: url('/assets/img/fail-cat.gif'); background-image: url('/assets/img/fail-cat.gif');
min-height: 420px; background-size: cover;
background-position: center center;
@extend .color-overlay;
@media ($screen-md) { &:before {
min-height: 100vh; z-index: -1;
}
.header {
background: none;
&:before { display: none; }
}
.header__title {
margin-bottom: ($spacer * 2);
padding-bottom: 0;
// the bottom line
&:after {
content: "";
height: 1px;
width: 5rem;
display: block;
margin: ($spacer * 2) auto 0 auto;
background: $gray-lighter;
} }
} }
.content--page {
.content--page--markdown {
text-align: center; text-align: center;
padding-top: 0;
//margin-bottom: ($spacer * 6);
p { color: #fff; }
}
.footer {
background: none;
border-color: rgba(#fff, .2);
}
.footer__copyright {
border-color: rgba(#fff, .1);
&,
.menu__link { color: rgba(#fff, .6); }
}
.menu--footer {
a { color: #fff }
} }
} }

View File

@ -1,16 +1,19 @@
.footer { .footer {
padding-top: $spacer; @extend .background--darker;
padding-bottom: $spacer;
border-top: 1px solid $gray; border-top: 1px solid $gray;
color: $gray-light; color: $gray-light;
padding-bottom: 0;
} }
.footer__copyright {
text-align: center;
&, //
small { // Nice, clean sticky footer with flexbox
@extend .mini; //
} body {
display: flex;
min-height: 100vh;
flex-direction: column;
> .content { flex: 1; }
} }

View File

@ -73,6 +73,7 @@
font-size: $font-size-base; font-size: $font-size-base;
line-height: $line-height; line-height: $line-height;
color: $input-color-placeholder; color: $input-color-placeholder;
transform-origin: left;
.background--photo & { .background--photo & {
color: rgba(#fff, .5); color: rgba(#fff, .5);
@ -87,7 +88,6 @@
//&.parsley-error ~ .form-label, //&.parsley-error ~ .form-label,
&.parsley-success ~ .form-label { &.parsley-success ~ .form-label {
transform: translate3d(0, -(($spacer / 1.5) + $input-padding-x), 0) scale(.7); transform: translate3d(0, -(($spacer / 1.5) + $input-padding-x), 0) scale(.7);
transform-origin: left;
color: $input-border-focus; color: $input-border-focus;
} }
} }

View File

@ -51,6 +51,10 @@
max-width: 60rem; max-width: 60rem;
} }
.row--narrow {
max-width: ($screen-md-min / 1.75);
}
// //
// Alignment per row // Alignment per row

View File

@ -7,5 +7,5 @@
z-index: 1; z-index: 1;
text-align: center; text-align: center;
margin: 0; margin: 0;
padding: ($spacer * 4) 0; padding: ($spacer * 4) 0 ($spacer * 6) 0;
} }

View File

@ -28,11 +28,29 @@ $menu-height-md: 73px;
.logo--full { .logo--full {
fill-opacity: .8; fill-opacity: .8;
margin: 0 auto; margin: 0 auto;
max-width: 10em;
@media ($screen-sm) {
max-width: 13em;
}
@media ($screen-md) {
max-width: 20em; max-width: 20em;
margin-top: ($spacer * 2);
}
} }
.section-title { .section-title {
color: #fff; color: #fff;
font-size: $font-size-h3;
@media ($screen-sm) {
font-size: $font-size-h2;
}
@media ($screen-md) {
font-size: $font-size-h1;
}
&:after { display: none } &:after { display: none }
} }
@ -41,7 +59,7 @@ $menu-height-md: 73px;
color: #fff; color: #fff;
opacity: .8; opacity: .8;
position: absolute; position: absolute;
bottom: ($spacer * 2); bottom: -($spacer * 2);
left: 0; left: 0;
right: 0; right: 0;
width: 100%; width: 100%;
@ -96,6 +114,7 @@ $menu-height-md: 73px;
.hero__content { .hero__content {
position: relative; position: relative;
z-index: 1; z-index: 1;
margin-bottom: ($spacer * 4);
} }

View File

@ -2,6 +2,7 @@
.menu { .menu {
position: relative; position: relative;
z-index: 10; z-index: 10;
flex: 1;
.grid__col { .grid__col {
text-align: center; text-align: center;
@ -17,7 +18,7 @@
.menu__link { .menu__link {
@extend .small; @extend .small;
display: inline-block; display: inline-block;
padding: $spacer ($spacer / 2); padding: ($spacer / 2);
text-transform: uppercase; text-transform: uppercase;
box-shadow: none; box-shadow: none;
@ -50,7 +51,8 @@
.menu__logo { .menu__logo {
display: block; display: block;
margin-top: $spacer; margin-top: ($spacer * 2);
margin-bottom: $spacer;
box-shadow: none; box-shadow: none;
@media ($screen-md) { @media ($screen-md) {
@ -78,7 +80,7 @@
.menu--main { .menu--main {
.menu__logo { .menu__logo {
@media ($screen-md) { @media ($screen-md) {
padding: ($spacer/1.2) 0 ($spacer * 1.5) 0; padding: ($spacer * 1.2) 0 ($spacer * 1.5) 0;
} }
} }
@ -99,37 +101,62 @@
// Footer Menu // Footer Menu
// //
.menu--footer { .menu--footer {
.grid__col {
&:nth-child(2) {
margin-top: $spacer;
@media ($screen-sm) {
margin-top: 0;
}
}
}
.menu__logo { .menu__logo {
margin-bottom: $spacer; margin-top: ($spacer / 3);
margin-bottom: 0;
&:hover,
&:focus {
.logo { fill: $brand-primary }
}
}
.logo {
fill: $gray-light;
opacity: 1;
height: 9px;
} }
.menu__link { .menu__link {
@extend .mini; padding: ($spacer/3);
padding: ($spacer/2);
color: $gray-light; color: $gray-light;
// link line @media ($screen-sm) {
&:after { display: block;
background: $brand-primary; text-align: left;
} }
&:first-child { padding-left: 0; } // hide link line
&:last-child { padding-right: 0; } &:after { display: none; }
&:hover, &:hover,
&:focus, &:focus,
&.active { color: $brand-primary; } &.active { color: $brand-primary; }
} }
} }
.footer__copyright {
border-top: 1px solid $gray-dark;
text-align: center;
display: block;
margin-top: ($spacer * 4);
@media ($screen-sm) {
text-align: left;
}
.menu__link {
display: inline-block;
text-transform: none;
padding: ($spacer * 2) ($spacer/2);
&:first-child { margin-left: ($spacer/2); }
&:last-child { padding-right: 0; }
}
&,
.menu__link {
@extend .mini;
color: $gray;
}
}

View File

@ -61,9 +61,10 @@ a {
&:focus { &:focus {
color: $link-hover-color; color: $link-hover-color;
background: $link-hover-bg; background: $link-hover-bg;
outline: 0;
} }
&:active {} &:active { }
} }

View File

@ -9,11 +9,23 @@ main:
- title: Docs - title: Docs
url: https://bigchaindb.readthedocs.org/ url: https://bigchaindb.readthedocs.org/
footer: secondary:
- title: About - title: About
url: /about/ url: /about/
- title: Contact - title: Contact
url: /contact/ url: /contact/
- title: Blog
url: https://medium.com/{{ site.medium }}
community:
- title: GitHub
url: https://github.com/{{ site.github.org }}
- title: Twitter
url: https://twitter.com/{{ site.twitter }}
- title: Google Group
url: https://groups.google.com/forum/#!forum/{{ site.googlegroup }}
legal:
- title: Terms - title: Terms
url: /terms/ url: /terms/
- title: Privacy - title: Privacy

View File

@ -1,10 +1,8 @@
<footer class="footer" role="contentinfo"> <footer class="footer section" role="contentinfo">
<div class="row row--wide"> <div class="row row--wide">
{% include menu-footer.html %} {% include menu-footer.html %}
<p><small>&copy; {{ site.time | date: "%Y" }} ascribe GmbH</small></p>
</div> </div>
</footer> </footer>

View File

@ -18,7 +18,7 @@
</div> </div>
<div class="hero-video__background"> <div class="hero-video__background">
<video class="hero-video__video" preload="none" loop> <video class="hero-video__video" poster="/assets/img/northern-lights-poster.jpg" preload="none" loop>
<source src="/assets/videos/{{ page.hero_video_name }}.mp4" type="video/mp4"> <source src="/assets/videos/{{ page.hero_video_name }}.mp4" type="video/mp4">
<source src="/assets/videos/{{ page.hero_video_name }}.webm" type="video/webm"> <source src="/assets/videos/{{ page.hero_video_name }}.webm" type="video/webm">
</video> </video>

View File

@ -1,6 +1,16 @@
<nav class="menu menu--footer"> <nav class="menu menu--footer">
<div class="grid grid--full grid-medium--half"> <div class="grid grid--full grid-small--fit">
<div class="grid__col">
<a class="menu__logo" href="/">
<svg class="logo logo--sm logo--white--green" aria-labelledby="title">
<title>Logo</title>
<use xlink:href="/assets/img/sprite.svg#logo"></use>
</svg>
</a>
</div>
<div class="grid__col"> <div class="grid__col">
{% for link in site.data.menus.main %} {% for link in site.data.menus.main %}
@ -15,7 +25,7 @@
</div> </div>
<div class="grid__col"> <div class="grid__col">
{% for link in site.data.menus.footer %} {% for link in site.data.menus.secondary %}
{% assign active = nil %} {% assign active = nil %}
{% if page.url contains link.url %} {% if page.url contains link.url %}
@ -26,6 +36,35 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="list-unstyled grid__col">
{% for link in site.data.menus.community %}
{% assign active = nil %}
{% if page.url contains link.url %}
{% assign active = 'active' %}
{% endif %}
<a class="menu__link {{ active }} js-tracking-menu" href="{{ link.url }}">{{ link.title }}</a>
{% endfor %}
</div> </div>
</div>
<small class="footer__copyright">
&copy; {{ site.time | date: "%Y" }} ascribe GmbH
{% for link in site.data.menus.legal %}
{% assign active = nil %}
{% if page.url contains link.url %}
{% assign active = 'active' %}
{% endif %}
<a class="menu__link {{ active }} js-tracking-menu" href="{{ link.url }}">{{ link.title }}</a>
{% endfor %}
</small>
</nav> </nav>

View File

@ -1,7 +1,7 @@
<nav class="menu menu--main"> <nav class="menu menu--main">
<div class="row row--wide"> <div class="row row--wide">
<div class="grid grid--full grid-medium--columns grid--center"> <div class="grid grid--full grid-medium--columns grid--top">
<div class="grid__col grid__col--1"> <div class="grid__col grid__col--1">
<a class="menu__logo" href="/"> <a class="menu__logo" href="/">
<svg class="logo logo--sm logo--white--green" aria-labelledby="title"> <svg class="logo logo--sm logo--white--green" aria-labelledby="title">

View File

@ -43,7 +43,7 @@ layout: base
</section> </section>
<section class="section section-contact"> <section class="section section-contact">
<div class="row"> <div class="row row--narrow">
<header class="section-header"> <header class="section-header">
<h1 class="section-title">Get In Touch</h1> <h1 class="section-title">Get In Touch</h1>
</header> </header>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB