2018-09-23 03:55:15 -07:00
|
|
|
<template>
|
|
|
|
<div class="nhasjydimbopojusarffqjyktglcuxjy" v-if="meta">
|
|
|
|
<div class="banner" :style="{ backgroundImage: meta.bannerUrl ? `url(${meta.bannerUrl})` : null }"></div>
|
|
|
|
|
|
|
|
<h1>{{ meta.name }}</h1>
|
2018-11-08 10:44:35 -08:00
|
|
|
<p v-html="meta.description || this.$t('@.about')"></p>
|
|
|
|
<router-link to="/">{{ $t('start') }}</router-link>
|
2018-09-23 03:55:15 -07:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-11-08 10:44:35 -08:00
|
|
|
import i18n from '../../../i18n';
|
2018-09-23 03:55:15 -07:00
|
|
|
|
|
|
|
export default Vue.extend({
|
2018-11-08 10:44:35 -08:00
|
|
|
i18n: i18n('common/views/components/instance.vue'),
|
2018-09-23 03:55:15 -07:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
meta: null
|
|
|
|
}
|
|
|
|
},
|
|
|
|
created() {
|
2018-11-08 15:13:34 -08:00
|
|
|
this.$root.getMeta().then(meta => {
|
2018-09-23 03:55:15 -07:00
|
|
|
this.meta = meta;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
2018-09-27 07:02:59 -07:00
|
|
|
.nhasjydimbopojusarffqjyktglcuxjy
|
|
|
|
color var(--text)
|
|
|
|
background var(--face)
|
2018-09-23 03:55:15 -07:00
|
|
|
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>
|