what-is and tools sections

This commit is contained in:
María
2025-07-30 13:43:34 +02:00
committed by María
parent 5b176816f6
commit 240c4c6a95
26 changed files with 449 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
<template>
<main v-if="landingComponents" class="min-h-screen relative">
<main v-if="landingComponents" class="min-h-screen relative mx-8">
<template v-for="(component, index) in landingComponents" :key="`component-${component.component}-${index}`">
<component
:is="component.component"
@@ -17,9 +17,13 @@
<script>
import { mapGetters, mapActions } from 'vuex';
import HeroHome from '~/components/HeroHome.vue';
import WhatIs from '../../components/WhatIs.vue';
import SectionWithCards from '../../components/SectionWithCards.vue';
export default {
components: {
HeroHome,
WhatIs,
SectionWithCards
},
data() {
return {
@@ -46,13 +50,13 @@ export default {
];
}
},
methods: {
...mapActions(['setLangcode']),
// changeLang() {
// const newLang = this.langcode === 'es' ? 'cat' : 'es';
// this.setLangcode(newLang);
// this.$router.push({ path: `/${newLang}` });
// }
}
// methods: {
// ...mapActions(['setLangcode']),
// changeLang() {
// const newLang = this.langcode === 'es' ? 'cat' : 'es';
// this.setLangcode(newLang);
// this.$router.push({ path: `/${newLang}` });
// }
// }
}
</script>