From 10ed3e863002e2fe6f7c59eb906359c794b24085 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 27 Feb 2019 16:18:33 +0100 Subject: [PATCH] Add new news styling --- client/src/components/NewsTeaser.vue | 45 ++++++++++--------- client/src/components/SectionBlock.vue | 14 +++--- .../illustrations/PortfolioIllustration.vue | 1 - .../illustrations/RoomsIllustration.vue | 1 - client/src/layouts/BlankLayout.vue | 2 - client/src/pages/start.vue | 43 ++++++++++++++---- client/src/styles/_variables.scss | 11 +++++ 7 files changed, 77 insertions(+), 40 deletions(-) diff --git a/client/src/components/NewsTeaser.vue b/client/src/components/NewsTeaser.vue index e8d69de5..aac08c28 100644 --- a/client/src/components/NewsTeaser.vue +++ b/client/src/components/NewsTeaser.vue @@ -1,18 +1,17 @@ @@ -21,21 +20,23 @@ @import "@/styles/_functions.scss"; .news-teaser { - display: block; - @supports (display: grid) { - display: grid; - } - grid-template-columns: 1fr 2fr; - grid-column-gap: 10px; - - &__image { - width: 100px; - } + display: flex; + border-left: 1px solid $color-lightgrey-2; + padding-left: $medium-spacing; + flex-direction: column; } .teaser { - &__date > p { - color: $color-text-gray; + &__title { + color: $color-white; + font-family: $sans-serif-font-family; + font-weight: $font-weight-bold; + line-height: $default-line-height; + margin-bottom: $small-spacing; + } + + &__date { + color: $color-white; font-family: $sans-serif-font-family; font-size: toRem(14px); } diff --git a/client/src/components/SectionBlock.vue b/client/src/components/SectionBlock.vue index 72a9f29a..be7260fb 100644 --- a/client/src/components/SectionBlock.vue +++ b/client/src/components/SectionBlock.vue @@ -1,13 +1,17 @@ @@ -69,8 +73,11 @@ @import "@/styles/_mixins.scss"; .start-page { - - margin: 0 30px; + display: grid; + grid-template-rows: auto 1fr auto; + min-height: 100vh; + box-sizing: border-box; + padding-top: 2*$large-spacing; &__title { color: $color-brand; @@ -95,6 +102,7 @@ } .start-sections { + margin: 0 30px; @include desktop { padding-left: 120px; padding-right: 120px; @@ -114,18 +122,35 @@ } .news { + background-color: $color-darkgrey-1; + color: $color-white; + padding-top: $large-spacing; + padding-bottom: $large-spacing; + display: grid; + grid-template-columns: repeat(5, 1fr); + @include desktop { - padding-left: 120px; - padding-right: 120px; + /*padding-left: 120px;*/ + /*padding-right: 120px;*/ } &__title { - font-family: $serif-font-family; + font-family: $sans-serif-font-family; + font-weight: $font-weight-bold; text-transform: uppercase; font-size: 2.1875rem; padding-bottom: 24px; text-align: center; - border-bottom: 1px solid $color-lightgrey-2; + color: inherit; + } + + &__more { + color: $color-white; + font-family: $sans-serif-font-family; + border-left: 1px solid $color-lightgrey-2; + line-height: $default-line-height; + padding-left: $medium-spacing; + font-weight: $font-weight-bold; } &__teasers { diff --git a/client/src/styles/_variables.scss b/client/src/styles/_variables.scss index 92484050..ca2cd89b 100644 --- a/client/src/styles/_variables.scss +++ b/client/src/styles/_variables.scss @@ -57,3 +57,14 @@ $modal-input-width: 560px; $default-padding: 30px; + +$small-spacing: 10px; +$medium-spacing: 20px; +$large-spacing: 30px; + + +$font-weight-bold: 700; +$font-weight-semibold: 600; +$font-weight-regular: 500; + +$default-line-height: 1.5;