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 @@ </template> <style> + /* Import Open Sans from Google Fonts */ + @import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap'); + h1 { font-size: 1.2em; line-height: 1em; + color: #23286B; } img { @@ -27,17 +31,25 @@ color: #2779E1; } + p { + color: #333333; + } + button { background: #23286B; - box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.25); - border-radius: 20px; + color: #FFFFFF; + + box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.25); + border-radius: 15px; + padding: 0.4em 1.4em; + margin-left: 5%; + margin-right: 5%; + border: none; + font-family: Open Sans,sans-serif; font-style: normal; font-weight: normal; - font-size: 1em; - padding: 0.7em 1em; - - color: #FFFFFF; + font-size: 0.9em; } button.alert { diff --git a/src/assets/welcome.png b/src/assets/welcome.png index d9b52ae..346daea 100644 Binary files a/src/assets/welcome.png and b/src/assets/welcome.png differ diff --git a/src/components/Question.vue b/src/components/Question.vue index b454e1a..97fbe51 100644 --- a/src/components/Question.vue +++ b/src/components/Question.vue @@ -1,3 +1,17 @@ +<style scoped> + .question { + padding: 0.5em; + } + + button { + display: block; + width: 80%; + margin: 0 auto; + margin-bottom: 5%; + } + +</style> + <template> <div class="question"> <p>{{ question }}</p> diff --git a/src/router/index.js b/src/router/index.js index f8265d3..af30137 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -19,7 +19,7 @@ const routes = [ component: Warning }, { - path: '/questionmaire', + path: '/questionnaire', name: 'Fragebogen', component: Questionnaire }, 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 @@ +<style scoped> + .home { + display: flex; + flex-flow: column; + justify-content: center; + padding: 0.5em; + } + + #welcome-image { + margin-left: auto; + margin-right: auto; + width: 85%; + } + + p { + display: block; + margin-left: auto; + margin-right: auto; + width: 85%; + } + + #information { + display: block; + margin: 0 auto; + padding: 5%; + font-size: 0.8em; + } + + #title { + font-size: 1.2em; + color: #23286B; + } +</style> + <template> <div class="home"> - <img alt="Vue logo" src="../assets/welcome.png"> - <!-- <HelloWorld msg="Welcome to Your Vue.js App"/> --> - <h1>COVIDassist</h1> - <p>Die COVID-19 Verhaltensdiagnose, die Ihre Daten respektiert.</p> - <router-link to="/warning"><button>Selbsttest starten</button></router-link> - <a href="/">Informationen zu COVID-19</a> - <small><a href="/">Imprint</a></small> + <img id="welcome-image" alt="Welcome" src="../assets/welcome.png"> + <div> + <p id="title"><b>COVID</b>assist</p> + <p>Die COVID-19 Verhaltensdiagnose, die keine Daten speichert.</p> + <router-link style="text-decoration:none" to="/warning"><button>Infektionsrisiko ermitteln</button></router-link> + </div> + + <a id="information" href="https://www.rki.de/SharedDocs/FAQ/NCOV2019/FAQ_Liste.html"><b>Informationen zu COVID-19</b></a> </div> </template> @@ -21,12 +56,3 @@ export default { } } </script> - -<style> - .home { - display: flex; - flex-flow: column; - justify-content: center; - padding: 0.5em; - } -</style> diff --git a/src/views/Warning.vue b/src/views/Warning.vue index 3f8357a..9b0f2a1 100644 --- a/src/views/Warning.vue +++ b/src/views/Warning.vue @@ -1,16 +1,29 @@ -<template> - <div class="about"> - <h1>Warnhinweis</h1> - <p>Dieser Test geht auf Ihr Verhalten ein und gibt Ihnen Tipps, wie Sie eine Infektion vermeiden können. Wenn Sie vermuten, dass Sie bereits infiziert sind, rufen Sie den ärztlichen Bereitschaftsdienst an:</p> - <p class="number">116117</p> - <router-link to="/questionmaire"><button>Fortfahren</button></router-link> - </div> -</template> +<style scoped> + .warning { + display: flex; + flex-flow: column; + justify-content: center; + padding: 1em; + } -<style> - .number { - font-family: sans-serif; - color: #E94A47; - font-size: 1.6em; + h1, p { + display: block; + margin-left: auto; + margin-right: auto; } </style> + +<template> + <div class="warning"> + <div> + <h1>Hinweis</h1> + <p> + Dieser Test geht auf Ihr Verhalten ein und gibt Ihnen Tipps, + wie Sie eine Infektion vermeiden können. Wenn Sie vermuten, + dass Sie bereits infiziert sind, rufen Sie den ärztlichen + Bereitschaftsdienst unter 116117 an. + </p> + </div> + <router-link style="text-decoration:none" to="/questionnaire"><button>Ich möchte weiter zum Test</button></router-link> + </div> +</template>