From 04931886e3863897908a4744d1531195beeb05e1 Mon Sep 17 00:00:00 2001 From: wswidzinski Date: Wed, 10 Jan 2018 01:18:16 +0100 Subject: [PATCH] Add introduction section for tablet --- src/hbs/partials/components/introduction.hbs | 13 ++++-- src/images/introduction.svg | 17 ++++++++ src/styles/components/_introduction.scss | 42 +++++++++++++++----- 3 files changed, 59 insertions(+), 13 deletions(-) create mode 100644 src/images/introduction.svg diff --git a/src/hbs/partials/components/introduction.hbs b/src/hbs/partials/components/introduction.hbs index bd7efde..f0ba913 100644 --- a/src/hbs/partials/components/introduction.hbs +++ b/src/hbs/partials/components/introduction.hbs @@ -9,9 +9,15 @@
- {{#each introduction.content as |paragraph|}} -

{{paragraph}}

- {{/each}} +
+ {{#each introduction.content as |paragraph|}} +

{{paragraph}}

+ {{/each}} +
+ +
+ {{svg 'images/introduction.svg' }} +
@@ -28,6 +34,5 @@ {{introduction.nextSectionLink}}
- diff --git a/src/images/introduction.svg b/src/images/introduction.svg new file mode 100644 index 0000000..bba3457 --- /dev/null +++ b/src/images/introduction.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + diff --git a/src/styles/components/_introduction.scss b/src/styles/components/_introduction.scss index b10e677..2b55d06 100644 --- a/src/styles/components/_introduction.scss +++ b/src/styles/components/_introduction.scss @@ -1,4 +1,6 @@ .introduction { + display: flex; + align-items: center; color: white; background-color: $color-black; @@ -6,36 +8,58 @@ @include container; } + &__img { + display: none; + + @media #{$screen-sm} { + display: block; + } + } + &__header { margin: 30px 0; font-family: 'Rubik Mono One', sans-serif; font-size: 26px; font-weight: 400; + + @media #{$screen-sm} { + font-size: 52px; + } } - &__subheader, - &__content, - &__link { - font-family: $base-font-family; + &__content { + display: flex; } - &__subheader, - &__content, - &__button, - &__link { + &__button { margin-bottom: 30px; } &__subheader { font-size: 22px; + + @media #{$screen-sm} { + font-size: 26px; + } } - &__content { + &__paragraph { font-size: 18px; + + @media #{$screen-sm} { + font-size: 20px; + } } &__link { font-size: 12px; text-transform: uppercase; } + + &__subheader, + &__paragraph, + &__link { + margin-bottom: 30px; + font-family: $base-font-family; + } }