Compare commits
2 Commits
difusion
...
carruselCool
| Author | SHA1 | Date | |
|---|---|---|---|
| 673ff9c7fc | |||
| ed8b3618db |
+26
-10
@@ -6,7 +6,17 @@
|
|||||||
data-ride="carousel"
|
data-ride="carousel"
|
||||||
>
|
>
|
||||||
<div class="carousel-inner">
|
<div class="carousel-inner">
|
||||||
<div class="carousel-item active">
|
<div class="carousel-item "
|
||||||
|
v-bind:key="libro.id"
|
||||||
|
v-for="(libro,idx) in Libros"
|
||||||
|
:class="{ active: idx==0 }">
|
||||||
|
<img
|
||||||
|
:src= libro.img
|
||||||
|
class="d-block w-100 img-fluid"
|
||||||
|
alt="img"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<!-- <div class="carousel-item">
|
||||||
<img
|
<img
|
||||||
src="https://www.unam.mx/sites/default/files/images/carrusel/bannermxok.jpg"
|
src="https://www.unam.mx/sites/default/files/images/carrusel/bannermxok.jpg"
|
||||||
class="d-block w-100 img-fluid"
|
class="d-block w-100 img-fluid"
|
||||||
@@ -19,14 +29,7 @@
|
|||||||
class="d-block w-100 img-fluid"
|
class="d-block w-100 img-fluid"
|
||||||
alt="img"
|
alt="img"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div> -->
|
||||||
<div class="carousel-item">
|
|
||||||
<img
|
|
||||||
src="https://www.unam.mx/sites/default/files/images/carrusel/bannermxok.jpg"
|
|
||||||
class="d-block w-100 img-fluid"
|
|
||||||
alt="img"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<a
|
<a
|
||||||
class="carousel-control-prev"
|
class="carousel-control-prev"
|
||||||
@@ -51,7 +54,20 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {};
|
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data(){
|
||||||
|
return{
|
||||||
|
Libros:[
|
||||||
|
{id:0, img:"https://www.unam.mx/sites/default/files/images/carrusel/bannermxok.jpg"},
|
||||||
|
{id:1, img:"https://www.unam.mx/sites/default/files/images/carrusel/bannermxok.jpg"},
|
||||||
|
{id:2, img:"https://www.unam.mx/sites/default/files/images/carrusel/bannermxok.jpg"}
|
||||||
|
]
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
+3
-2
@@ -5,7 +5,8 @@ import difusion from "./view/difusion.vue";
|
|||||||
|
|
||||||
export const routes = [
|
export const routes = [
|
||||||
{ path: "/", component: home, name: "form" },
|
{ path: "/", component: home, name: "form" },
|
||||||
{ path: "/panelAdmin", component: login, name: "Login" },
|
{ path: "/login", component: login, name: "Login" },
|
||||||
{ path: "/desc", component: libroDescripcion, name: "LibroDesc" },
|
{ path: "/desc", component: libroDescripcion, name: "LibroDesc" },
|
||||||
{ path: "/difusion", component: difusion, name: "difusion" }
|
{ path: "/difusion", component: difusion, name: "difusion" },
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -0,0 +1,42 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<Header></Header>
|
||||||
|
<h1 class="my-5">Inicia Sesion</h1>
|
||||||
|
<div class="row d-flex justify-content-center">
|
||||||
|
<div class="col-12 col-md-8 col-lg-6 col-xl-6">
|
||||||
|
<form class="row d-flex justify-content-center">
|
||||||
|
<input type="text" v-model="data.email" id="login" class="form-control col-8" name="login" placeholder="Usuario">
|
||||||
|
<input type="password" v-model="data.password" id="password" class="form-control col-8 my-3" name="login" placeholder="Contraseña">
|
||||||
|
<input type="button" @click="login" class="btn bg-primary text-white col-5" value="Ingresar">
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
import Header from "./../components/header.vue";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data(){
|
||||||
|
return{
|
||||||
|
data:{
|
||||||
|
email:'',
|
||||||
|
password:''
|
||||||
|
}}
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
login(){
|
||||||
|
alert(this.data.email)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
Header
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user