31 lines
600 B
Vue
31 lines
600 B
Vue
<script setup lang="ts">
|
|
import { useNowUser } from '@/stores/now-user.js'
|
|
import { computed } from 'vue'
|
|
import { useHead } from '@unhead/vue'
|
|
|
|
useHead({
|
|
title: '总览',
|
|
})
|
|
|
|
const NOWUSER = useNowUser()
|
|
|
|
const backgroundUrl = computed(() => `url("${NOWUSER.background_url}")`)
|
|
</script>
|
|
|
|
<template>
|
|
<div class="overview"></div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
div.overview {
|
|
width: 100%;
|
|
height: 300px;
|
|
border-radius: 6px;
|
|
background-color: #ddfbff;
|
|
background-image: v-bind(backgroundUrl);
|
|
background-size: cover;
|
|
background-position: top;
|
|
background-repeat: no-repeat;
|
|
}
|
|
</style>
|