From a7a44a847e4cef7fb27a8dbdd1adcbf6b6cd88c2 Mon Sep 17 00:00:00 2001 From: thilo Date: Sat, 21 Mar 2020 22:40:01 +0100 Subject: [PATCH] added basic help screen --- src/components/Question.vue | 2 +- src/router/index.js | 6 ++++++ src/views/HelpPage.vue | 5 ++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/Question.vue b/src/components/Question.vue index 0d6556b..4fc8f3e 100644 --- a/src/components/Question.vue +++ b/src/components/Question.vue @@ -28,7 +28,7 @@ v-for="answer in answers" v-on:click="answerQuestion(answer.value)">{{ answer.text }} - + diff --git a/src/router/index.js b/src/router/index.js index af30137..61e8fa9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -4,6 +4,7 @@ import Home from '../views/Home.vue' import Warning from '../views/Warning' import Questionnaire from "@/views/Questionnaire"; import Results from "@/views/Results"; +import HelpPage from "@/views/HelpPage"; Vue.use(VueRouter) @@ -23,6 +24,11 @@ const routes = [ name: 'Fragebogen', component: Questionnaire }, + { + path: '/questionnaire/help', + name: 'Hilfe', + component: HelpPage + }, { path: '/results', name: 'Ergebnisse', diff --git a/src/views/HelpPage.vue b/src/views/HelpPage.vue index a5a5723..ba349dc 100644 --- a/src/views/HelpPage.vue +++ b/src/views/HelpPage.vue @@ -1,6 +1,9 @@