- 恢复 variables.css 完整的 ClassicDark/ModernDark 等主题定义 - 恢复 nuxt.config.ts 的主题系统逻辑(默认改为 ClassicLight,保留切换能力) - 修复 BackupManager / VotersModal / ProfileForm / LyricsModal / RequestForm / SongList / ScheduleList / StatsSlide / ArtistSlide 等数十处组件内部硬编码深色(#1a1a1a / #040e15 等)绕过主题的问题,全部改为使用 CSS 变量 (var(--bg-primary) 等) - 这样实现了:在浅色模式下,所有页面均正确显示浅色;在深色模式下,又能正常呈现深色设计,且恢复了右上角的深浅色切换能力
141 lines
2.7 KiB
Vue
141 lines
2.7 KiB
Vue
<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, #000, 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>
|