Update layout
This commit is contained in:
9
components/FooterApp.vue
Normal file
9
components/FooterApp.vue
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
<v-footer app>
|
||||||
|
<v-row justify="center" no-gutters>
|
||||||
|
<v-col cols="12" class="text-center">
|
||||||
|
<span class="text-caption">© {{ new Date().getFullYear() }}</span>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-footer>
|
||||||
|
</template>
|
||||||
@@ -1,18 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-app dark>
|
<v-app dark>
|
||||||
<v-app-bar fixed app>
|
<NavigationDrawer ref="navDrawer" />
|
||||||
|
<v-app-bar app clipped-left>
|
||||||
|
<v-app-bar-nav-icon @click="toggleNavDrawer" />
|
||||||
<v-toolbar-title v-text="title" />
|
<v-toolbar-title v-text="title" />
|
||||||
<v-spacer />
|
<v-spacer />
|
||||||
<v-btn v-if="loggedIn" icon color="primary" @click="logout">
|
<v-btn icon @click="$vuetify.theme.dark = !$vuetify.theme.dark">
|
||||||
|
<v-icon>mdi-theme-light-dark</v-icon>
|
||||||
|
</v-btn>
|
||||||
|
<v-btn v-if="loggedIn" icon @click="logout">
|
||||||
<v-icon>mdi-logout-variant</v-icon>
|
<v-icon>mdi-logout-variant</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
<v-main>
|
<v-main>
|
||||||
<Nuxt />
|
<Nuxt />
|
||||||
</v-main>
|
</v-main>
|
||||||
<v-footer :absolute="!fixed" app>
|
<FooterApp />
|
||||||
<span>© {{ new Date().getFullYear() }}</span>
|
|
||||||
</v-footer>
|
|
||||||
<ToastComponent />
|
<ToastComponent />
|
||||||
</v-app>
|
</v-app>
|
||||||
</template>
|
</template>
|
||||||
@@ -34,6 +37,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
toggleNavDrawer () {
|
||||||
|
this.$refs.navDrawer.toggle()
|
||||||
|
},
|
||||||
logout () {
|
logout () {
|
||||||
signOut(this.$auth).then(() => {
|
signOut(this.$auth).then(() => {
|
||||||
// Sign-out successful
|
// Sign-out successful
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
<v-main>
|
<v-main>
|
||||||
<Nuxt />
|
<Nuxt />
|
||||||
</v-main>
|
</v-main>
|
||||||
|
<FooterApp />
|
||||||
|
<ToastComponent />
|
||||||
</v-app>
|
</v-app>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
{{ otherError }}
|
{{ otherError }}
|
||||||
</h1>
|
</h1>
|
||||||
<NuxtLink to="/"> Home page </NuxtLink>
|
<NuxtLink to="/"> Home page </NuxtLink>
|
||||||
|
<FooterApp />
|
||||||
</v-app>
|
</v-app>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
</v-card>
|
</v-card>
|
||||||
</v-container>
|
</v-container>
|
||||||
</v-main>
|
</v-main>
|
||||||
|
<FooterApp />
|
||||||
<ToastComponent />
|
<ToastComponent />
|
||||||
</v-app>
|
</v-app>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -6,16 +6,6 @@
|
|||||||
{{ id.toUpperCase() }} - {{ course.name }}
|
{{ id.toUpperCase() }} - {{ course.name }}
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" class="text-center">
|
|
||||||
<blockquote class="blockquote">
|
|
||||||
“First, solve the problem. Then, write the code.”
|
|
||||||
<footer>
|
|
||||||
<small>
|
|
||||||
<em>—John Johnson</em>
|
|
||||||
</small>
|
|
||||||
</footer>
|
|
||||||
</blockquote>
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-container>
|
</v-container>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ import {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'LoginPage',
|
name: 'LoginPage',
|
||||||
|
layout: 'empty',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
existingUser: true,
|
existingUser: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user