From f31823803d1ebe47797f661fe625ee1fd70b5ce9 Mon Sep 17 00:00:00 2001 From: Adrian Thompson Date: Tue, 1 Sep 2020 13:24:42 +0200 Subject: [PATCH 1/6] add routes in header --- src/ui/Banner.vue | 46 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/src/ui/Banner.vue b/src/ui/Banner.vue index e4759e8..44e5f8f 100644 --- a/src/ui/Banner.vue +++ b/src/ui/Banner.vue @@ -2,6 +2,11 @@
knowit logo +
+ + {{route.name}} + +

{{ pad(days) }}: @@ -28,7 +33,29 @@ export default { enabled: false, code: "38384040373937396665", codeDone: "", - interval: null + interval: null, + routes: [ + { + name: "Dagens viner", + route: "/dagens/" + }, + { + name: "History", + route: "/history/" + }, + { + name: "Lotteriet", + route: "/lottery/game/" + }, + // { + // name: "Foreslå vin", + // route: "/request" + // }, + // { + // name: "Foreslåtte viner", + // route: "/all-requested-wines" + // }, + ] }; }, mounted() { @@ -115,7 +142,7 @@ export default { this.initialize(); } this.interval = setTimeout(this.countdown, 500); - } + }, } }; @@ -126,6 +153,8 @@ export default { .link { text-decoration: none; + color: #333333; + } .top-banner { @@ -142,12 +171,25 @@ export default { -moz-box-shadow: 0px 0px 22px -8px rgba(0, 0, 0, 0.65); box-shadow: 0px 0px 22px -8px rgba(0, 0, 0, 0.65); + .__routes{ + text-decoration: none; + color: #333333; + + @include mobile { + display: none; + } + } + @include mobile { padding: 0px 40px; > img { height: 23px; } + + // .__routes{ + // display: none; + // } } } From e86f956b0358fd612fee499e312d5fb6d594ff4b Mon Sep 17 00:00:00 2001 From: Adrian Thompson Date: Tue, 1 Sep 2020 14:04:41 +0200 Subject: [PATCH 2/6] add mobile-banner component and conditional render on window-width --- src/Vinlottis.vue | 16 ++++-- src/ui/Banner.vue | 16 ------ src/ui/MobileBanner.vue | 108 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 121 insertions(+), 19 deletions(-) create mode 100644 src/ui/MobileBanner.vue diff --git a/src/Vinlottis.vue b/src/Vinlottis.vue index 23eb18e..af8aea7 100644 --- a/src/Vinlottis.vue +++ b/src/Vinlottis.vue @@ -1,6 +1,7 @@