Generalizado boton login
This commit is contained in:
parent
e9d33a6735
commit
91afeddc3d
5 changed files with 36 additions and 26 deletions
|
@ -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>
|
|
28
resources/js/components/comunes/BotonLogin.vue
Normal file
28
resources/js/components/comunes/BotonLogin.vue
Normal 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>
|
|
@ -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>
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue