mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-23 02:58:09 +09:00
27 lines
518 B
Vue
27 lines
518 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 "calckey-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>
|