wip migration
This commit is contained in:
63
layouts/error.vue
Normal file
63
layouts/error.vue
Normal file
@@ -0,0 +1,63 @@
|
||||
<template>
|
||||
<div class="main">
|
||||
<div class="error-message">
|
||||
<FormHeader v-if="error.statusCode === 404" :title="error.message" />
|
||||
<FormHeader v-else title="¡Uy! Algo no ha ido bien" />
|
||||
<p>
|
||||
Inténtalo de nuevo y, si el problema persiste,
|
||||
<a href="mailto:info@latienda.coop">contáctanos</a> para resolverlo
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
error: {
|
||||
type: Object,
|
||||
default: () => ({}),
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.main {
|
||||
height: 50vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
@include mobile {
|
||||
margin-top: 5rem;
|
||||
}
|
||||
}
|
||||
.error-message {
|
||||
text-align: center;
|
||||
width: 45vw;
|
||||
|
||||
h1 {
|
||||
font-size: $xxl;
|
||||
font-weight: $bold;
|
||||
color: $color-navy;
|
||||
margin-bottom: 15px;
|
||||
@include mobile {
|
||||
font-size: $xl;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
font-size: $m;
|
||||
@include mobile {
|
||||
font-size: $s;
|
||||
}
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user