From 16a63001f0edc83f5d458bdf13dfbe9f6cce014e Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 15 Jun 2017 19:16:45 +0200 Subject: [PATCH] eliminate community page --- .../{page-community.js => page-getstarted.js} | 50 ++++++++++--------- _src/_assets/javascripts/page-start.js | 14 ------ ...e-community.scss => _page-getstarted.scss} | 10 +--- _src/_assets/styles/_page-start.scss | 5 -- _src/_assets/styles/bigchain.scss | 3 +- _src/_data/menus.yml | 10 ++-- _src/community.html | 48 ------------------ _src/start.html | 42 ++++++++++++++-- 8 files changed, 73 insertions(+), 109 deletions(-) rename _src/_assets/javascripts/{page-community.js => page-getstarted.js} (57%) delete mode 100644 _src/_assets/javascripts/page-start.js rename _src/_assets/styles/{_page-community.scss => _page-getstarted.scss} (96%) delete mode 100644 _src/_assets/styles/_page-start.scss delete mode 100644 _src/community.html diff --git a/_src/_assets/javascripts/page-community.js b/_src/_assets/javascripts/page-getstarted.js similarity index 57% rename from _src/_assets/javascripts/page-community.js rename to _src/_assets/javascripts/page-getstarted.js index 1411d04..2ce5ce7 100644 --- a/_src/_assets/javascripts/page-community.js +++ b/_src/_assets/javascripts/page-getstarted.js @@ -1,52 +1,56 @@ - -//=include is-in-viewport/lib/isInViewport.js +//=include bigchain/smoothscroll.js //=include bigchain/newsletter.js -//=include bigchain/testimonials.js +//=include is-in-viewport/lib/isInViewport.js jQuery(function($) { + // + // init modules + // Newsletter.init() - Testimonials.init() + + // + // Wrigley + // var wrigley = $('#wrigley'), wrigleyArm = wrigley.find('#arm'), wrigleyHead = wrigley.find('#head'), - wrigleyEye = wrigley.find('#eye'); + wrigleyEye = wrigley.find('#eye') var wrigleyAnimationStart = function() { // set utility classes if (wrigley.is( ':in-viewport( -180 )' ) ) { - wrigley.addClass('is-ready'); + wrigley.addClass('is-ready') // toggle paused class so the :hover interaction can fire animation again wrigleyArm.on('animationend webkitAnimationEnd oAnimationEnd', function(e) { - wrigleyArm.addClass('paused'); - wrigleyHead.addClass('paused'); + wrigleyArm.addClass('paused') + wrigleyHead.addClass('paused') wrigley.on('mouseover', function() { - wrigleyArm.removeClass('paused'); - wrigleyHead.removeClass('paused'); - }); + wrigleyArm.removeClass('paused') + wrigleyHead.removeClass('paused') + }) // fire eye blinking once other animations have finished - wrigleyEye.addClass('is-ready'); + wrigleyEye.addClass('is-ready') wrigleyEye.on('animationend webkitAnimationEnd oAnimationEnd', function(e) { - wrigleyEye.removeClass('is-ready'); - }); + wrigleyEye.removeClass('is-ready') + }) } - ); + ) } else { - wrigley.removeClass('is-ready').removeClass('paused'); - wrigleyArm.removeClass('paused'); - wrigleyHead.removeClass('paused'); - wrigleyEye.removeClass('is-ready').removeClass('paused'); + wrigley.removeClass('is-ready').removeClass('paused') + wrigleyArm.removeClass('paused') + wrigleyHead.removeClass('paused') + wrigleyEye.removeClass('is-ready').removeClass('paused') } } // fire all the viewport things - wrigleyAnimationStart(); - $(window).on('load resize scroll', wrigleyAnimationStart); - -}); + wrigleyAnimationStart() + $(window).on('load resize scroll', wrigleyAnimationStart) +}) diff --git a/_src/_assets/javascripts/page-start.js b/_src/_assets/javascripts/page-start.js deleted file mode 100644 index bfea3a7..0000000 --- a/_src/_assets/javascripts/page-start.js +++ /dev/null @@ -1,14 +0,0 @@ - -//=include bigchain/smoothscroll.js -//=include bigchain/github.js -//=include bigchain/meetup.js -//=include bigchain/newsletter.js - -jQuery(function($) { - - // - // init modules - // - Newsletter.init() - -}); diff --git a/_src/_assets/styles/_page-community.scss b/_src/_assets/styles/_page-getstarted.scss similarity index 96% rename from _src/_assets/styles/_page-community.scss rename to _src/_assets/styles/_page-getstarted.scss index 0f1956e..5198c54 100644 --- a/_src/_assets/styles/_page-community.scss +++ b/_src/_assets/styles/_page-getstarted.scss @@ -1,15 +1,10 @@ // -// Page: Community +// Page: Get started // --- // bigchaindb.com // -.page-community { - .header { - background-position: center top; - } -} -.section-community { +.section--community { text-align: center; position: relative; // make room for wrigely @@ -33,7 +28,6 @@ .icon { @include transition; } - display: inline-block; box-shadow: none; padding: $btn-padding-y-sm $btn-padding-x-sm; diff --git a/_src/_assets/styles/_page-start.scss b/_src/_assets/styles/_page-start.scss deleted file mode 100644 index 9fa3907..0000000 --- a/_src/_assets/styles/_page-start.scss +++ /dev/null @@ -1,5 +0,0 @@ -// -// Page: Get started -// --- -// bigchaindb.com -// diff --git a/_src/_assets/styles/bigchain.scss b/_src/_assets/styles/bigchain.scss index cfd9ede..040f72a 100644 --- a/_src/_assets/styles/bigchain.scss +++ b/_src/_assets/styles/bigchain.scss @@ -49,14 +49,13 @@ // specific page styles @import 'page-front'; -@import 'page-start'; +@import 'page-getstarted'; @import 'page-whitepaper'; @import 'page-404'; @import 'page-styleguide'; @import 'page-about'; @import 'page-features'; @import 'page-usecases'; -@import 'page-community'; @import 'page-contact'; @import 'page-cla'; @import 'page-partners'; diff --git a/_src/_data/menus.yml b/_src/_data/menus.yml index a9ff378..30aff37 100644 --- a/_src/_data/menus.yml +++ b/_src/_data/menus.yml @@ -14,20 +14,22 @@ main: secondary: - title: Whitepaper url: "/whitepaper/" + - title: Blog + url: https://blog.bigchaindb.com - title: About url: "/about/" - title: Contact url: "/contact/" - - title: Blog - url: https://blog.bigchaindb.com community: + - title: Gitter + url: https://gitter.im/bigchaindb/bigchaindb - title: GitHub url: https://github.com/bigchaindb - title: Twitter url: https://twitter.com/BigchainDB - - title: Gitter - url: https://gitter.im/bigchaindb/bigchaindb + - title: Meetup + url: https://www.meetup.com/BigchainDB-IPDB-Meetup legal: - title: Terms diff --git a/_src/community.html b/_src/community.html deleted file mode 100644 index 740b203..0000000 --- a/_src/community.html +++ /dev/null @@ -1,48 +0,0 @@ ---- -layout: page - -title: Community -tagline: "Get Involved" -description: 'There are many ways you can contribute to the BigchainDB project, some very easy and others more involved.' - -image: photo2.jpg - -js: page-community.min.js -quotes: set3 ---- - -
-
-
-

There are many ways you can contribute to the BigchainDB project, some very easy and others more involved. We welcome all potential contributors, so we ask that everyone participating abide by some simple guidelines.

- - Read The Guidelines -
- -
-
-

Follow

-

Follow us for the latest updates

- - {% for link in site.social %} - - {% endfor %} - -
-
- -
- - {% include svg/wrigley-with-stage.svg %} - -
- -{% include sections/section-newsletter.html %} - -{% include sections/section-testimonials.html %} diff --git a/_src/start.html b/_src/start.html index 2166843..50c7043 100644 --- a/_src/start.html +++ b/_src/start.html @@ -4,7 +4,10 @@ layout: page title: Get started description: "" -js: page-start.min.js +js: page-getstarted.min.js + +redirect_from: + - /community/ ---
@@ -31,26 +34,55 @@ js: page-start.min.js -
+
-
+
-
+
-
+
+
+

Get Involved

+

There are many ways you can contribute to the BigchainDB project, some very easy and others more involved. We welcome all potential contributors, so we ask that everyone participating abide by some simple guidelines.

+ + Read The Guidelines +
+ +
+
+

Follow

+

Follow us for the latest updates

+ + {% for link in site.social %} + + {% endfor %} + +
+
+ + {% include svg/wrigley-with-stage.svg %} +
+ +{% include sections/section-newsletter.html %}