Layout with toolbar

This commit is contained in:
Jörn-Michael Miehe 2019-05-27 12:10:50 +02:00
parent d9bd46b287
commit d912b83608
4 changed files with 33 additions and 23 deletions

View file

@ -1,12 +1,12 @@
<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>
<v-toolbar app>
<v-toolbar-title class="headline text-uppercase">
<span>Yavook</span>
<span class="font-weight-light">!FFTCG</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<slot />
</v-toolbar>
</template>
<script>

View file

@ -1,6 +1,6 @@
<template>
<v-dialog v-model="dialog">
<v-btn slot="activator">
<v-btn flat slot="activator">
{{ buttonText }}
</v-btn>

View file

@ -1,10 +1,16 @@
<template>
<v-content>
<v-container>
<Header />
<Header>
<LoginForm />
<RegisterForm />
</Header>
<p class="subheading font-weight-regular">
App under development, please don't submit any valuable data!
</p>
</v-container>
</v-content>
</template>
<script>

View file

@ -1,15 +1,17 @@
<template>
<v-content>
<v-container>
<Header />
<Header>
<v-btn flat @click.native="logout">Logout</v-btn>
</Header>
<template v-if="user">
<p>user logged in: {{ user.login }}</p>
<DeckList />
<v-btn @click.native="logout">Logout</v-btn>
</template>
</v-container>
</v-content>
</template>
<script>
@ -27,6 +29,8 @@ export default {
DeckList
},
data: () => ({}),
methods: {
goHome() {
Cookies.remove('session')