implemented questionmair
This commit is contained in:
parent
2d012177be
commit
7f88fdcd6c
4 changed files with 43 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link href="https://fonts.googleapis.com/css?family=Zilla+Slab&display=swap" rel="stylesheet">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||
|
|
|
@ -40,6 +40,10 @@
|
|||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
button.alert {
|
||||
background-color: #E94A47;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #FCF7F8;
|
||||
color: #0B2545;
|
||||
|
|
21
src/components/Question.vue
Normal file
21
src/components/Question.vue
Normal file
|
@ -0,0 +1,21 @@
|
|||
<template>
|
||||
<div class="question">
|
||||
<p>{{ question }}</p>
|
||||
<button v-bind:key="answer" v-for="answer in answers">{{ answer }}</button>
|
||||
<router-link to="/questionmaire"><button class="alert">Ich brauche Hilfe zu dieser Frage</button></router-link>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "Question",
|
||||
props: {
|
||||
question: String,
|
||||
answers: Array
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
17
src/views/Questionnaire.vue
Normal file
17
src/views/Questionnaire.vue
Normal file
|
@ -0,0 +1,17 @@
|
|||
<template>
|
||||
<div class="questionmaire">
|
||||
<Question question="Frage" v-bind:answers="['Antwort 1', 'Antwort 2', 'Antwort 3']"></Question>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Question from "@/components/Question";
|
||||
export default {
|
||||
name: "Questionnaire",
|
||||
components: {Question}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
Loading…
Reference in a new issue