summaryrefslogtreecommitdiff
path: root/src/client/app/common/views/pages/not-found.vue
blob: cb1b19687c4048f70252205dff8b54490017a0df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<template>
<figure class="megtcxgu">
	<img :src="src" alt="">
	<figcaption>
		<h1><span>Not found</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/not-found.vue'),
	data() {
		return {
			src: ''
		}
	},
	created() {
		this.$root.getMeta().then(meta => {
			if (meta.errorImageUrl)
				this.src = meta.errorImageUrl;
		});
	}
})
</script>

<style lang="stylus" scoped>
.megtcxgu
	align-items center
	bottom 0
	display flex
	justify-content center
	left 0
	margin auto
	position fixed
	right 0
	top 0

	> img
		width 500px

	> figcaption
		margin 8px

		h1,
		p
			color var(--text)
			display flex
			flex-flow column

			*
				position relative
				width 100%

	@media (max-width: 767px)
		flex-flow column

		> figcaption
			text-align center

</style>