mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-17 07:27:36 -07:00
63 lines
897 B
Vue
63 lines
897 B
Vue
|
<template>
|
||
|
<figure>
|
||
|
<img :src="src" alt="">
|
||
|
<figcaption>
|
||
|
<h1><span>404</span></h1>
|
||
|
<p><span>{{ $t('page-not-found') }}</span></p>
|
||
|
</figcaption>
|
||
|
</figure>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import Vue from 'vue'
|
||
|
import i18n from '../../../i18n';
|
||
|
|
||
|
export default Vue.extend({
|
||
|
i18n: i18n('common/views/pages/404.vue'),
|
||
|
data() {
|
||
|
return {
|
||
|
src: '/assets/error.jpg'
|
||
|
}
|
||
|
},
|
||
|
created() {
|
||
|
this.$root.getMeta().then(meta => {
|
||
|
if (meta.errorImageUrl)
|
||
|
this.src = meta.errorImageUrl;
|
||
|
});
|
||
|
}
|
||
|
})
|
||
|
</script>
|
||
|
|
||
|
<style lang="stylus" scoped>
|
||
|
figure
|
||
|
align-items center
|
||
|
bottom 0
|
||
|
display flex
|
||
|
justify-content center
|
||
|
left 0
|
||
|
margin auto
|
||
|
position fixed
|
||
|
right 0
|
||
|
top 0
|
||
|
|
||
|
figcaption
|
||
|
margin 8px
|
||
|
|
||
|
h1,
|
||
|
p
|
||
|
color var(--text)
|
||
|
display flex
|
||
|
flex-flow column
|
||
|
|
||
|
*
|
||
|
position relative
|
||
|
width 100%
|
||
|
|
||
|
@media (max-width: 767px)
|
||
|
figure
|
||
|
flex-flow column
|
||
|
|
||
|
figcaption
|
||
|
text-align center
|
||
|
</style>
|