mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-15 15:56:25 +01:00
c2370a1be6
* chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
27 lines
620 B
Vue
27 lines
620 B
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
|
|
<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>
|