Skip to content
Snippets Groups Projects
Commit 6a4a7ade authored by TimFB's avatar TimFB
Browse files

add switch for hero/start page; add light theme toggle

parent 53a0a733
No related branches found
No related tags found
1 merge request!1Merge tim into master
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
<template>
<v-container class="d-flex" fill-height>
<v-row class="justify-center align-center">
<h1
align="center"
class="text-xs-h4 center text-sm-h2 text-lg-h1 font-weight-medium"
>
Spaß mit Wappen
</h1>
</v-row>
<v-row class="justify-center">
<v-btn
color="primary"
elevation="4"
x-large
dark
@click="$store.commit('setShowHero', false)"
>
Start
</v-btn>
</v-row>
</v-container>
</template>
<script>
export default {};
</script>
<style></style>
<template>
<v-container> </v-container>
</template>
<script>
export default {};
</script>
<style></style>
<template>
<v-app dark>
<v-btn text icon @click="toggleTheme">
<v-icon>mdi-theme-light-dark</v-icon>
</v-btn>
<v-main>
<nuxt />
</v-main>
<v-footer class="justify-center" app>
<span>
<v-footer app>
<v-flex text-center>
Diese Website steht in keiner Verbindung mit den abgebildeten Kommunen
</span>
</v-flex>
</v-footer>
</v-app>
</template>
<script>
export default {};
export default {
methods: {
toggleTheme() {
this.$vuetify.theme.dark = !this.$vuetify.theme.dark;
},
},
};
</script>
<template>
<v-container class="d-flex" fill-height>
<v-row class="justify-center align-center">
<h1 class="text-xs-h4 text-sm-h2 text-lg-h1 font-weight-medium">
Spaß mit Wappen
</h1>
</v-row>
<v-row class="justify-center">
<v-btn color="primary" dark>Start</v-btn>
</v-row>
<v-container v-if="$store.state.showHero" fill-height>
<Hero />
</v-container>
<v-container v-else fill-height> </v-container>
</template>
<script>
import Hero from "~/components/Hero.vue";
export default {
components: {},
components: {
Hero,
},
};
</script>
export const state = () => ({
showHero: true,
});
export const mutations = {
setShowHero(state, value) {
state.showHero = value;
},
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment