Skip to content

Commit 9da4c39

Browse files
committed
Added additional layout fixes and improvements
1 parent 3a7f2c0 commit 9da4c39

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

layouts/default.vue

+9-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</v-list-tile>
2424
</v-list>
2525
</v-navigation-drawer>
26-
<v-toolbar app fixed>
26+
<v-toolbar app >
2727
<v-btn
2828
icon
2929
@click.native.stop="drawer = !drawer">
@@ -64,12 +64,18 @@
6464
</v-menu>
6565
</div>
6666
</v-toolbar>
67+
<!-- <v-content>
68+
<v-container fluid>
69+
<router-view></router-view>
70+
</v-container>
71+
</v-content>
72+
-->
6773
<v-content>
6874
<v-container fluid>
6975
<nuxt />
7076
</v-container>
7177
</v-content>
72-
<v-footer :fixed="fixed" app>
78+
<v-footer app :fixed="fixed" class="justify-center px-4">
7379
<span>&copy; 2017</span>
7480
</v-footer>
7581
</v-app>
@@ -79,7 +85,7 @@
7985
export default {
8086
data () {
8187
return {
82-
drawer: true,
88+
drawer: null,
8389
fixed: false,
8490
items: [
8591
{ icon: 'home', title: 'Welcome', to: '/' },

pages/index.vue

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
<template>
2-
<v-layout text-xs-center>
3-
<v-flex xs12 md8 offset-md2>
4-
<div class="wrapper">
2+
<v-layout justify-center align-center>
3+
<v-flex xs12 sm8>
4+
<div class="mt-5">
55
<div v-if="!$store.state.user">
66
<login-form></login-form>
7-
<!-- <v-btn outline large flat nuxt @click="$router.push('/login')" primary>Sign In</v-btn> -->
87
</div>
9-
<div v-else class="flexWrapper">
8+
<div v-else class="flexWrapper align-center">
109
<h4 class="blue--text">You're logged in!</h4>
1110
<v-btn icon class="blue white--text">
1211
<v-icon>thumb_up</v-icon>
1312
</v-btn>
1413
</div>
1514
</div>
16-
</v-flex>
17-
</v-layout>
15+
</v-flex>
16+
</v-layout>
17+
1818
</template>
1919

2020
<script>
2121
import LoginForm from '~/components/LoginForm'
2222
2323
export default {
24-
components: {
25-
LoginForm
24+
components: {
25+
LoginForm
2626
}
2727
}
2828
</script>

0 commit comments

Comments
 (0)