Renombrado
This commit is contained in:
parent
7a4aa6d7a0
commit
b4458862f4
2 changed files with 24 additions and 27 deletions
24
resources/js/components/login/LoginTitulos.vue
Normal file
24
resources/js/components/login/LoginTitulos.vue
Normal 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>
|
|
@ -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>
|
Loading…
Add table
Reference in a new issue