summaryrefslogtreecommitdiff
path: root/src/client/app/common/views/components/instance.vue
blob: 497e4976f59b80f48aa25487f1530fd57ad13cd1 (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
<template>
<div class="nhasjydimbopojusarffqjyktglcuxjy" v-if="meta">
	<div class="banner" :style="{ backgroundImage: meta.bannerUrl ? `url(${meta.bannerUrl})` : null }"></div>

	<h1>{{ meta.name || 'Misskey' }}</h1>
	<p v-html="meta.description || this.$t('@.about')"></p>
	<router-link to="/">{{ $t('start') }}</router-link>
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import i18n from '../../../i18n';

export default Vue.extend({
	i18n: i18n('common/views/components/instance.vue'),
	data() {
		return {
			meta: null
		}
	},
	created() {
		this.$root.getMeta().then(meta => {
			this.meta = meta;
		});
	}
});
</script>

<style lang="stylus" scoped>
.nhasjydimbopojusarffqjyktglcuxjy
	color var(--text)
	background var(--face)
	text-align center

	> .banner
		height 100px
		background-position center
		background-size cover

	> h1
		margin 16px
		font-size 16px

	> p
		margin 16px
		font-size 14px

	> a
		display block
		padding-bottom 16px

</style>