1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-14 22:59:31 +09:00
MisskeyIO/packages/frontend/src/components/MkFeaturedPhotos.vue
2022-12-27 18:29:39 +09:00

23 lines
509 B
Vue

<template>
<div v-if="meta" class="xfbouadm" :style="{ backgroundImage: `url(${ meta.backgroundImageUrl })` }"></div>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
import * as Misskey from 'misskey-js';
import * as os from '@/os';
const meta = ref<Misskey.entities.DetailedInstanceMetadata>();
os.api('meta', { detail: true }).then(gotMeta => {
meta.value = gotMeta;
});
</script>
<style lang="scss" scoped>
.xfbouadm {
background-position: center;
background-size: cover;
}
</style>