From fecbba5b0b138d9c9539ecf8b53ab9cef62de228 Mon Sep 17 00:00:00 2001 From: Tim Ktitarev Date: Sat, 21 Mar 2020 21:48:37 +0100 Subject: [PATCH] Updated CSS to work on phones Homescreen adjusted Warning adjusted Question component (not Questionnaire) adjusted Fixed questionmaire typo --- src/App.vue | 24 +++++++++++---- src/assets/welcome.png | Bin 51812 -> 46591 bytes src/components/Question.vue | 21 ++++++++++--- src/router/index.js | 6 ++-- src/store/index.js | 2 +- src/views/Home.vue | 58 ++++++++++++++++++++++++++---------- src/views/Questionnaire.vue | 2 +- src/views/Warning.vue | 39 ++++++++++++++++-------- 8 files changed, 108 insertions(+), 44 deletions(-) diff --git a/src/App.vue b/src/App.vue index 139b475..a80cac9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,9 +9,13 @@ + @@ -16,6 +32,3 @@ } - diff --git a/src/router/index.js b/src/router/index.js index 8fa89ff..ec883aa 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,8 +1,8 @@ import Vue from 'vue' import VueRouter from 'vue-router' import Home from '../views/Home.vue' -import Warning from '../views/Warning' -import Questionnaire from "@/views/Questionnaire"; +import Warning from '../views/Warning.vue' +import Questionnaire from "@/views/Questionnaire.vue"; Vue.use(VueRouter) @@ -18,7 +18,7 @@ const routes = [ component: Warning }, { - path: '/questionmaire', + path: '/questionnaire', name: 'Fragebogen', component: Questionnaire } diff --git a/src/store/index.js b/src/store/index.js index 650df02..356dfc8 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -8,7 +8,7 @@ export default new Vuex.Store({ currentQuestion: 0, answers: [], questions: [{ - question: "Test", + question: "Mit wie vielen Menschen haben Sie täglich Kontakt?", answers: ["Answer 1", "Answer 2", "Answer 3"] }] }, diff --git a/src/views/Home.vue b/src/views/Home.vue index ba47046..f7a2056 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,12 +1,47 @@ + + @@ -21,12 +56,3 @@ export default { } } - - diff --git a/src/views/Questionnaire.vue b/src/views/Questionnaire.vue index ab7c33a..3d40ca0 100644 --- a/src/views/Questionnaire.vue +++ b/src/views/Questionnaire.vue @@ -1,5 +1,5 @@