generic reusable header

This commit is contained in:
Jörn-Michael Miehe 2019-05-08 21:34:50 +02:00
parent 86a20f2982
commit 4b6b5f339f
3 changed files with 27 additions and 14 deletions

View file

@ -0,0 +1,16 @@
<template>
<v-flex mb-4>
<h1 class="display-2 font-weight-bold mb-3">
Hello World!
</h1>
<p class="subheading font-weight-regular">
App under development, please don't submit any valuable data!
</p>
</v-flex>
</template>
<script>
export default {
name: "Header"
}
</script>

View file

@ -1,11 +1,7 @@
<template>
<v-container>
<v-flex mb-4>
<h1 class="display-2 font-weight-bold mb-3">Hello World!</h1>
<p class="subheading font-weight-regular">
App under development, please don't submit any valuable data!
</p>
</v-flex>
<Header />
<p>user session: {{ sessionID }}</p>
<v-btn @click.native="logout">Logout</v-btn>
</v-container>
@ -15,9 +11,15 @@
import * as Cookies from 'js-cookie'
import axios from '@/plugins/axios'
import Header from '@/components/Header.vue'
export default {
name: 'About',
components: {
Header
},
data: () => ({
sessionID: ''
}),

View file

@ -1,13 +1,6 @@
<template>
<v-container>
<v-flex mb-4>
<h1 class="display-2 font-weight-bold mb-3">
Hello World!
</h1>
<p class="subheading font-weight-regular">
App under development, please don't submit any valuable data!
</p>
</v-flex>
<Header />
<LoginForm />
<RegisterForm />
@ -18,6 +11,7 @@
import * as Cookies from 'js-cookie'
import axios from '@/plugins/axios'
import Header from '@/components/Header.vue'
import LoginForm from '@/components/forms/Login.vue'
import RegisterForm from '@/components/forms/Register.vue'
@ -31,6 +25,7 @@ export default {
},
components: {
Header,
LoginForm,
RegisterForm
},