Files
servicio_social_front/layouts/error.vue
T

62 lines
1.3 KiB
Vue
Raw Normal View History

2020-12-28 09:48:14 -06:00
<template>
<section class="hero is-light is-bold is-fullheight">
<div class="container hero-body">
2020-12-29 00:23:39 -06:00
<transition name="slide-fade" appear>
<div class="container columns">
<div class="column animate__animated animate__fadeIn animate__slow">
2020-12-28 09:48:14 -06:00
<b-image
class="image"
:src="require('@/assets/404.webp')"
alt="404 image"
></b-image>
2020-12-29 00:23:39 -06:00
</div>
<div class="column">
2021-05-13 14:22:56 -05:00
<h1 class="title">ERROR 404 LA PÁGINA NO HA SIDO ENCONTRADA</h1>
2021-01-05 02:26:47 -06:00
<b-button class="is-dark" outlined @click="cerrarSesion()"
>Ir a la página principal
</b-button>
2020-12-29 00:23:39 -06:00
</div>
2020-12-28 09:48:14 -06:00
</div>
2020-12-29 00:23:39 -06:00
</transition>
2020-12-28 09:48:14 -06:00
</div>
</section>
</template>
<script>
export default {
2021-05-13 14:22:56 -05:00
layout: 'login',
2021-01-05 02:26:47 -06:00
methods: {
cerrarSesion() {
2021-05-13 14:22:56 -05:00
localStorage.clear()
2021-01-05 02:26:47 -06:00
2021-05-13 14:22:56 -05:00
this.$router.push('/')
2021-01-05 02:26:47 -06:00
},
},
2021-05-13 14:22:56 -05:00
}
2020-12-28 09:48:14 -06:00
</script>
<style scoped>
.image {
height: 100%;
width: 100%;
}
2021-05-13 14:22:56 -05:00
2020-12-28 09:48:14 -06:00
.title {
margin-top: 40%;
}
2021-05-13 14:22:56 -05:00
2020-12-28 09:48:14 -06:00
.slide-fade-enter-active {
transition: all 2s ease;
}
2021-05-13 14:22:56 -05:00
2020-12-28 09:48:14 -06:00
.slide-fade-leave-active {
transition: all 0.8s cubic-bezier(1, 0.5, 0.8, 1);
}
2021-05-13 14:22:56 -05:00
2020-12-28 09:48:14 -06:00
.slide-fade-enter, .slide-fade-leave-to
/* .slide-fade-leave-active below version 2.1.8 */ {
transform: translateX(10px);
opacity: 0;
}
</style>