Files
BYW-VoiceHub/app/components/year-review/ArtistSlide.vue
T
Henry_Du 1106aeea6c feat: 迁移自定义功能至 1.5.9.9 版本
包含音乐源限制、CI 防 OOM 优化、数据库连接池优化、管理端权限及 UI 细节定制等功能
2026-09-12 19:26:42 +08:00

141 lines
2.8 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<div v-if="data.topArtist" class="slide-container">
<!-- Background Gradients -->
<div class="bg-overlay" />
<div class="animated-bg" />
<Transition name="entry" appear>
<div v-show="active" class="content">
<div class="label">特别偏爱</div>
<p class="text-intro">你的年度歌手是</p>
<div class="artist-container">
<div class="artist-bg-blur" />
<h2 class="artist-name">{{ data.topArtist }}</h2>
</div>
<p class="text-desc">Ta 的声音似乎特别吸引你,<br >陪伴了你无数个日夜。</p>
</div>
</Transition>
</div>
</template>
<script setup>
defineProps({
data: Object,
active: Boolean
})
</script>
<style scoped>
.slide-container {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
background-color: var(--surface-primary, var(--bg-primary, #1a0b2e));
}
.bg-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top, var(--bg-primary, #111111), transparent, transparent);
opacity: 0.8;
z-index: 10;
}
.animated-bg {
position: absolute;
top: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, #581c87, #000);
opacity: 0.5;
animation: pulse 8s infinite;
}
.content {
z-index: 20;
width: 100%;
padding: 1.5rem;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.label {
color: #d8b4fe; /* purple-300 */
letter-spacing: 0.3em;
text-transform: uppercase;
margin-bottom: 1.5rem;
font-size: 0.875rem;
font-weight: 700;
border-bottom: 1px solid rgba(168, 85, 247, 0.3);
padding-bottom: 0.5rem;
}
.text-intro {
font-size: 1.5rem;
color: #d1d5db;
font-weight: 300;
margin-bottom: 3rem;
}
.artist-container {
position: relative;
width: 100%;
}
.artist-bg-blur {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 120%;
height: 120%;
background: rgba(168, 85, 247, 0.2);
filter: blur(60px);
border-radius: 50%;
}
.artist-name {
position: relative;
font-size: 5rem;
font-weight: 900;
font-style: italic;
letter-spacing: -0.05em;
background-image: linear-gradient(to bottom right, #e9d5ff, #f472b6, #fb923c);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
word-break: break-word;
padding: 0 0.5rem;
}
.text-desc {
margin-top: 3rem;
color: #9ca3af;
max-width: 24rem;
margin-left: auto;
margin-right: auto;
line-height: 1.625;
font-size: 1rem;
}
@media (max-width: 768px) {
.artist-name {
font-size: 3rem;
}
.text-intro {
font-size: 1.25rem;
margin-bottom: 2rem;
}
}
</style>