mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 08:23:08 +02:00
22 lines
509 B
Vue
22 lines
509 B
Vue
<template>
|
|
<div v-if="meta" :class="$style.root" :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" module>
|
|
.root {
|
|
background-position: center;
|
|
background-size: cover;
|
|
}
|
|
</style>
|