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> <template>
<v-flex mb-4> <v-toolbar app>
<h1 class="display-2 font-weight-bold mb-3"> <v-toolbar-title class="headline text-uppercase">
Hello World! <span>Yavook</span>
</h1> <span class="font-weight-light">!FFTCG</span>
<p class="subheading font-weight-regular"> </v-toolbar-title>
App under development, please don't submit any valuable data! <v-spacer></v-spacer>
</p> <slot />
</v-flex> </v-toolbar>
</template> </template>
<script> <script>

View file

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

View file

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

View file

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