nosotras page

This commit is contained in:
María
2025-08-04 10:38:36 +02:00
committed by María
parent 999b61e4af
commit e9e75a0839
15 changed files with 366 additions and 83 deletions

View File

@@ -6,6 +6,11 @@
<main class="min-h-dvh">
<slot />
<div class="fixed bottom-0 right-0 z-50 p-2">
<ButtonCTA @click="changeLang" >
Cambiar Idioma
</ButtonCTA>
</div>
</main>
<footer>
@@ -13,3 +18,21 @@
</footer>
</div>
</template>
<script>
import { mapGetters, mapActions } from 'vuex';
export default {
computed: {
...mapGetters(['langcode']),
},
methods: {
...mapActions(['setLangcode']),
changeLang() {
const newLang = this.langcode === 'es' ? 'cat' : 'es';
this.setLangcode(newLang);
this.$router.push({ path: `/${newLang}` });
}
}
}
</script>