From 9fedebd42caad1ad822a2faf05f3d03d6dcc9a6f Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Thu, 4 Jun 2020 13:02:19 +0200 Subject: [PATCH] Update topic page --- client/src/layouts/DefaultLayout.vue | 5 +- client/src/pages/book.vue | 36 -------------- client/src/pages/topic.vue | 70 +++++++++++++++++----------- 3 files changed, 47 insertions(+), 64 deletions(-) delete mode 100644 client/src/pages/book.vue diff --git a/client/src/layouts/DefaultLayout.vue b/client/src/layouts/DefaultLayout.vue index fc3a7e9f..3d63e719 100644 --- a/client/src/layouts/DefaultLayout.vue +++ b/client/src/layouts/DefaultLayout.vue @@ -6,7 +6,10 @@ - + diff --git a/client/src/pages/book.vue b/client/src/pages/book.vue deleted file mode 100644 index eb510523..00000000 --- a/client/src/pages/book.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - diff --git a/client/src/pages/topic.vue b/client/src/pages/topic.vue index a1aae218..20130572 100644 --- a/client/src/pages/topic.vue +++ b/client/src/pages/topic.vue @@ -1,32 +1,38 @@ @@ -37,11 +43,13 @@ import BulbIcon from '@/components/icons/BulbIcon'; import TOPIC_QUERY from '@/graphql/gql/topicQuery.gql'; import me from '@/mixins/me'; + import BookTopicNavigation from '@/components/book-navigation/BookTopicNavigation'; export default { mixins: [me], components: { + BookTopicNavigation, ModuleTeaser, PlayIcon, BulbIcon @@ -90,6 +98,14 @@ @import "@/styles/_mixins.scss"; .topic { + display: grid; + padding: $large-spacing 0; + grid-template-columns: 300px 1fr; + + &__navigation { + padding: 0 $medium-spacing; + } + &__teaser { color: $color-charcoal-dark; width: 90%; @@ -133,7 +149,7 @@ grid-row-gap: $large-spacing; @include desktop { - grid-template-columns: repeat(3, 1fr); + grid-template-columns: repeat(3, minmax(auto, 380px)); } } }