2018-12-11 20:19:13 +09:00
|
|
|
<template>
|
2018-12-11 21:17:57 +09:00
|
|
|
<figure class="megtcxgu">
|
|
|
|
<img :src="src" alt="">
|
|
|
|
<figcaption>
|
|
|
|
<h1><span>Not found</span></h1>
|
|
|
|
<p><span>{{ $t('page-not-found') }}</span></p>
|
|
|
|
</figcaption>
|
2018-12-11 20:19:13 +09:00
|
|
|
</figure>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue'
|
|
|
|
import i18n from '../../../i18n';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
2018-12-27 20:22:54 +09:00
|
|
|
i18n: i18n('common/views/pages/not-found.vue'),
|
2018-12-11 20:19:13 +09:00
|
|
|
data() {
|
|
|
|
return {
|
2018-12-11 21:17:57 +09:00
|
|
|
src: ''
|
2018-12-11 20:19:13 +09:00
|
|
|
}
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
this.$root.getMeta().then(meta => {
|
|
|
|
if (meta.errorImageUrl)
|
|
|
|
this.src = meta.errorImageUrl;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
2018-12-11 21:17:57 +09:00
|
|
|
.megtcxgu
|
2018-12-11 20:19:13 +09:00
|
|
|
align-items center
|
|
|
|
bottom 0
|
|
|
|
display flex
|
|
|
|
justify-content center
|
|
|
|
left 0
|
|
|
|
margin auto
|
|
|
|
position fixed
|
|
|
|
right 0
|
|
|
|
top 0
|
|
|
|
|
2018-12-11 21:17:57 +09:00
|
|
|
> img
|
|
|
|
width 500px
|
|
|
|
|
|
|
|
> figcaption
|
2018-12-11 20:19:13 +09:00
|
|
|
margin 8px
|
|
|
|
|
|
|
|
h1,
|
|
|
|
p
|
|
|
|
color var(--text)
|
|
|
|
display flex
|
|
|
|
flex-flow column
|
|
|
|
|
|
|
|
*
|
|
|
|
position relative
|
|
|
|
width 100%
|
|
|
|
|
2018-12-11 21:17:57 +09:00
|
|
|
@media (max-width: 767px)
|
2018-12-11 20:19:13 +09:00
|
|
|
flex-flow column
|
|
|
|
|
2018-12-11 21:17:57 +09:00
|
|
|
> figcaption
|
|
|
|
text-align center
|
|
|
|
|
2018-12-11 20:19:13 +09:00
|
|
|
</style>
|