Renombrado

This commit is contained in:
Alejandro Tasistro 2025-06-13 19:27:15 -03:00
parent 7a4aa6d7a0
commit b4458862f4
2 changed files with 24 additions and 27 deletions

View file

@ -0,0 +1,24 @@
<script>
import { mapGetters } from "vuex";
export default {
name: "LoginTitulos",
computed: {
...mapGetters("login", ["textos", "estilos"]),
}
};
</script>
<template>
<div class="block">
<h1 class="title" :class="estilos.texto">{{ textos.titulo }}</h1>
<p class="subtitle" :class="estilos.texto">
{{ `Bienvenidx a la ${textos.subtitlo} del ` }}
<strong :class="estilos.texto">Mercado Popular de Subistencia</strong>
</p>
</div>
</template>
<style scoped>
</style>

View file

@ -1,27 +0,0 @@
<script>
import { mapGetters } from "vuex";
export default {
name:'LoginTitulos',
computed: {
...mapGetters('login',["titulos", "urlRol"]),
whiteText() {
console.log(this.urlRol);
return this.urlRol === 'admin';
}
}
};
</script>
<template>
<div class="block">
<h1 class="title" :class="{'has-text-white': whiteText}">{{ titulos.titulo }}</h1>
<p class="subtitle" :class="{'has-text-white': whiteText}">
{{ `Bienvenidx a la ${titulos.subtitlo} del ` }}<strong :class="{'has-text-white': whiteText}">Mercado Popular de Subistencia</strong>
</p>
</div>
</template>
<style scoped>
</style>