Generalizado boton login

This commit is contained in:
Alejandro Tasistro 2025-02-10 22:37:02 -03:00
parent e9d33a6735
commit 91afeddc3d
5 changed files with 36 additions and 26 deletions

View file

@ -1,12 +0,0 @@
<template>
<div class="buttons is-right">
<a class="button is-danger is-light is-small" href="/admin">
<span class="icon">
<i class="fa fa-solid fa-user-check"></i>
</span>
<span>
Admin
</span>
</a>
</div>
</template>

View file

@ -0,0 +1,28 @@
<template>
<div class="buttons is-right">
<a class="button is-danger is-light is-small" :href="href">
<span class="icon">
<i class="fa fa-solid fa-user-check"></i>
</span>
<span>
{{ nombre }}
</span>
</a>
</div>
</template>
<script>
export default {
props: {
nombre: {
type: String,
required: true
},
href: {
type: String,
required: true
},
},
}
</script>

View file

@ -1,12 +0,0 @@
<template>
<div class="buttons is-right">
<a class="button is-warning is-light is-small" href="/">
<span class="icon">
<i class="fa fa-solid fa-user-check"></i>
</span>
<span>
Pedidos
</span>
</a>
</div>
</template>

View file

@ -10,7 +10,10 @@
<body> <body>
<section class="section"> <section class="section">
<div id="root" class="container"> <div id="root" class="container">
<pedidos-boton-login></pedidos-boton-login> <comunes-boton-login
href="/"
nombre="Pedidos"
></comunes-boton-login>
<h1 class="title has-text-white"> <h1 class="title has-text-white">
Administración de Pedidos MPS Administración de Pedidos MPS
</h1> </h1>

View file

@ -11,7 +11,10 @@
<body> <body>
<section class="section"> <section class="section">
<div id="root" class="container"> <div id="root" class="container">
<admin-boton-login></admin-boton-login> <comunes-boton-login
href="/admin"
nombre="Admin"
></comunes-boton-login>
<h1 class="title"> <h1 class="title">
Pedidos MPS Pedidos MPS
</h1> </h1>