From d54d8b01acaf07031a58121158a4d28a88b3be0c Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 24 Aug 2017 15:02:12 +0200 Subject: [PATCH] caretakers component --- _src/_assets/img/logo-bigchaindb.svg | 6 ++++ _src/_assets/img/logo-ipfs.svg | 10 ++++++ _src/_assets/img/logo-monax.svg | 9 +++++ _src/_assets/scss/_caretakers.scss | 33 +++++++++++++++++++ _src/_assets/scss/{_logos.scss => _logo.scss} | 8 ----- _src/_assets/scss/ipdb.scss | 3 +- _src/_data/caretakers.yml | 2 -- _src/_includes/caretakers.html | 19 +++++++++++ _src/_includes/section-caretakers.html | 9 ----- _src/foundation/index.md | 2 +- _src/index.html | 9 ++--- 11 files changed, 85 insertions(+), 25 deletions(-) create mode 100644 _src/_assets/img/logo-bigchaindb.svg create mode 100644 _src/_assets/img/logo-ipfs.svg create mode 100644 _src/_assets/img/logo-monax.svg create mode 100644 _src/_assets/scss/_caretakers.scss rename _src/_assets/scss/{_logos.scss => _logo.scss} (88%) create mode 100644 _src/_includes/caretakers.html delete mode 100644 _src/_includes/section-caretakers.html diff --git a/_src/_assets/img/logo-bigchaindb.svg b/_src/_assets/img/logo-bigchaindb.svg new file mode 100644 index 0000000..06c057a --- /dev/null +++ b/_src/_assets/img/logo-bigchaindb.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/_src/_assets/img/logo-ipfs.svg b/_src/_assets/img/logo-ipfs.svg new file mode 100644 index 0000000..1447f0d --- /dev/null +++ b/_src/_assets/img/logo-ipfs.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/_src/_assets/img/logo-monax.svg b/_src/_assets/img/logo-monax.svg new file mode 100644 index 0000000..5194234 --- /dev/null +++ b/_src/_assets/img/logo-monax.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/_src/_assets/scss/_caretakers.scss b/_src/_assets/scss/_caretakers.scss new file mode 100644 index 0000000..dac3e32 --- /dev/null +++ b/_src/_assets/scss/_caretakers.scss @@ -0,0 +1,33 @@ +.caretakers { + margin-top: $spacer; + margin-bottom: $spacer; +} + +.caretaker { + text-align: center; + display: block; + box-shadow: none; + max-width: 100px; + margin: auto; + transition: .25s ease-out; + + &:hover, + &:focus { + .logo-caretaker { + opacity: 1; + } + } +} + +.logo-caretaker { + fill: $brand-04; + color: $brand-04; + opacity: .6; + max-width: 100%; + height: 20px; // need to hardcode some size to overwrite browser's default 150px height for SVGs + transition: .25s ease-out; + + @media ($screen-sm) { + height: 30px; + } +} diff --git a/_src/_assets/scss/_logos.scss b/_src/_assets/scss/_logo.scss similarity index 88% rename from _src/_assets/scss/_logos.scss rename to _src/_assets/scss/_logo.scss index bedd219..3a41a1a 100644 --- a/_src/_assets/scss/_logos.scss +++ b/_src/_assets/scss/_logo.scss @@ -35,11 +35,3 @@ width: 75px; height: 17px; } - - -// -// Caretakers -// -.logo-caretaker { - -} diff --git a/_src/_assets/scss/ipdb.scss b/_src/_assets/scss/ipdb.scss index 3f45ea6..934946d 100644 --- a/_src/_assets/scss/ipdb.scss +++ b/_src/_assets/scss/ipdb.scss @@ -7,4 +7,5 @@ @import 'hero'; @import 'header'; @import 'menus'; -@import 'logos'; +@import 'logo'; +@import 'caretakers'; diff --git a/_src/_data/caretakers.yml b/_src/_data/caretakers.yml index 1513054..1851870 100644 --- a/_src/_data/caretakers.yml +++ b/_src/_data/caretakers.yml @@ -42,5 +42,3 @@ - name: CREATE-NET link: http://create-net.fbk.eu - - diff --git a/_src/_includes/caretakers.html b/_src/_includes/caretakers.html new file mode 100644 index 0000000..b3b8e17 --- /dev/null +++ b/_src/_includes/caretakers.html @@ -0,0 +1,19 @@ +
+ + {% assign caretakers = (site.data.caretakers | sort: 'date') %} + + {% for caretaker in caretakers %} + + {% assign slug = (caretaker.name | downcase | replace: ' ', '-') %} + + + + {% endfor %} +
diff --git a/_src/_includes/section-caretakers.html b/_src/_includes/section-caretakers.html deleted file mode 100644 index c2bf6eb..0000000 --- a/_src/_includes/section-caretakers.html +++ /dev/null @@ -1,9 +0,0 @@ -{% for caretaker in site.data.caretakers %} - -
- - {{ caretaker.name }} - -
- -{% endfor %} diff --git a/_src/foundation/index.md b/_src/foundation/index.md index 7d1e42c..6251ba2 100644 --- a/_src/foundation/index.md +++ b/_src/foundation/index.md @@ -13,7 +13,7 @@ IPDB is governed by IPDB Foundation consisting of caretakers and the board of di IPDB relies on caretakers to run the nodes that store and validate transactions sent to the network. The caretakers are members of the IPDB Foundation. -{% include section-caretakers.html %} +{% include caretakers.html %} # Board members diff --git a/_src/index.html b/_src/index.html index 51d506d..7751631 100644 --- a/_src/index.html +++ b/_src/index.html @@ -38,11 +38,12 @@ for the decentralized stack

IPDB Foundation: human-scale governance

IPDB relies on caretakers to run the BigchainDB nodes that store and validate transactions. The IPDB Caretakers are the members of the IPDB Foundation and … summarize Jurisdictional diversity & Not for profit

+ +
+ {% include caretakers.html %} +
-
-

Current Caretakers

-
- +
Learn about IPDB Foundation and its caretakers