refactoring with vuetify

This commit is contained in:
les
2020-07-31 01:03:19 +02:00
parent 24a99d0eb0
commit 3f49c915ab
25 changed files with 686 additions and 1071 deletions

View File

@@ -5,7 +5,7 @@
Nav
v-main(app)
v-scroll-y-transition(hide-on-leave)
v-fade-transition(hide-on-leave)
nuxt
Footer
@@ -26,6 +26,7 @@ export default {
created () {
this.$vuetify.theme.dark = this.settings['theme.is_dark']
this.$vuetify.theme.themes.dark.primary = this.settings['theme.primary']
this.$vuetify.theme.themes.light.primary = this.settings['theme.primary']
}
}
</script>

View File

@@ -1,7 +1,7 @@
<template lang='pug'>
v-container.p-4.text-center#error
h1(v-if="error.statusCode === 404") <i class='el-icon-warning'></i> {{error.message}}
h1(v-else) <i name='el-icon-warning'></i> An error occurred: {{error.message}}
v-container.p-4.text-center
v-alert(v-if="error.statusCode === 404") ¯\_()_/¯ {{error.message}}
v-calert(v-else) <i>warning</i> An error occurred: {{error.message}}
nuxt-link(to='/') Back to home
</template>
@@ -16,10 +16,3 @@ export default {
}
}
</script>
<style lang="less">
#error {
margin-top: 20px;
color: orange;
i { color: orangered }
}
</style>