From deb3eab4c11a8d7de7d1b6f5626c2820c807722b Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 5 Apr 2018 15:08:48 +0200 Subject: [PATCH] cta section for end of features page --- _src/_assets/styles/_page-features.scss | 7 +++++++ _src/_includes/sections/section-cta.html | 16 +++++----------- _src/features.html | 8 +++++++- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/_src/_assets/styles/_page-features.scss b/_src/_assets/styles/_page-features.scss index b1466b7..114c042 100644 --- a/_src/_assets/styles/_page-features.scss +++ b/_src/_assets/styles/_page-features.scss @@ -1,3 +1,10 @@ +.page-features { + .section-cta { + background: url('../img/nosprite/starbase-drivers.svg') no-repeat center bottom; + background-size: contain; + } +} + .feature { display: flex; margin-bottom: $spacer * 2; diff --git a/_src/_includes/sections/section-cta.html b/_src/_includes/sections/section-cta.html index 1c93de0..d99ff40 100644 --- a/_src/_includes/sections/section-cta.html +++ b/_src/_includes/sections/section-cta.html @@ -1,18 +1,12 @@ -{% if layout %} - {% assign context = layout %} -{% else %} - {% assign context = page %} -{% endif %} - -
+
-

{{ context.cta.title }}

-

{{ context.cta.description }}

+

{{ page.cta.title }}

+

{{ page.cta.description }}

- - {{ context.cta.button }} + + {{ page.cta.button }}
diff --git a/_src/features.html b/_src/features.html index 621d472..8beff24 100644 --- a/_src/features.html +++ b/_src/features.html @@ -38,6 +38,12 @@ features: text: "Roll out your own public or private networks for specific industry use cases." icon: "icon-lock" +cta: + title: Get started + description: Explore drivers, tools & documentation + button: Get started + button_link: /developers/getstarted + quotes: set2 js: page-features.min.js --- @@ -182,4 +188,4 @@ js: page-features.min.js
-{% include sections/section-newsletter.html %} +{% include sections/section-cta.html %}