feat(about): 移除音乐模块并优化布局
- 删除音乐播放器相关HTML结构和CSS样式 - 移除APlayer库的引用和初始化代码 - 更新网格布局减少一行row定义 - 清理移动端FAB菜单中的音乐按钮 - 移除与音乐相关的国际化文本配置 - 优化导航激活状态下的背景色表现 - 隐藏操作按钮并调整其交互逻辑 - 修复文本渐变效果在不同浏览器下的兼容性问题 - 移除音乐模块后对浮动按钮功能进行相应调整 - 清理全局配置中不再使用的音乐播放列表设置
This commit is contained in:
@@ -321,12 +321,11 @@ body {
|
||||
gap: 24px;
|
||||
/* PC: 3 Col, 2 Row Main */
|
||||
grid-template-columns: 320px 1fr 260px;
|
||||
grid-template-rows: 240px 220px auto auto;
|
||||
grid-template-rows: 240px 220px auto;
|
||||
grid-template-areas:
|
||||
"profile bio stats"
|
||||
"profile bio mbti"
|
||||
"tech tech interests"
|
||||
"music music interests";
|
||||
"tech tech interests";
|
||||
}
|
||||
|
||||
/* --- Areas --- */
|
||||
@@ -353,7 +352,7 @@ body {
|
||||
.area-interests {
|
||||
grid-area: interests;
|
||||
}
|
||||
.area-music { grid-area: music; }
|
||||
/* music module removed */
|
||||
|
||||
.mobile-social {
|
||||
display: none;
|
||||
@@ -722,6 +721,8 @@ body {
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
-webkit-text-fill-color: transparent;
|
||||
text-decoration: none;
|
||||
pointer-events: none; /* 禁用鼠标事件避免干扰 */
|
||||
z-index: 10;
|
||||
}
|
||||
@@ -1199,17 +1200,17 @@ body {
|
||||
.nav-item.active {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.nav-item:active {
|
||||
color: var(--text-primary);
|
||||
background: rgba(108, 92, 231, 0.15);
|
||||
}
|
||||
|
||||
.action-btn .btn-text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
font-size: 1.2rem;
|
||||
padding: 8px;
|
||||
background: rgba(128, 128, 128, 0.08);
|
||||
border-radius: 12px;
|
||||
transition: all 0.2s ease;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.action-btn.is-active {
|
||||
@@ -1360,6 +1361,7 @@ body {
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
-webkit-text-fill-color: transparent;
|
||||
text-decoration: none;
|
||||
pointer-events: none;
|
||||
z-index: 10;
|
||||
}
|
||||
@@ -1578,29 +1580,10 @@ body {
|
||||
}
|
||||
.social-dock .s-icon { color: var(--text-primary); }
|
||||
.social-dock .s-icon i { background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; -webkit-text-fill-color: initial !important; color: currentColor !important; text-shadow: none !important; }
|
||||
.area-music { padding: 20px; display: flex; flex-direction: column; }
|
||||
.vinyl-player { position: relative; display: flex; align-items: center; gap: 16px; }
|
||||
.vinyl-disc { width: clamp(110px, 26vw, 160px); height: clamp(110px, 26vw, 160px); border-radius: 50%; background:
|
||||
radial-gradient(#222 0%, #111 30%, #000 60%, #111 100%),
|
||||
repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 2px, transparent 3px, transparent 6px),
|
||||
repeating-conic-gradient(from 0deg, rgba(255,215,0,0.05) 0deg, rgba(255,215,0,0.0) 8deg);
|
||||
box-shadow: inset 0 0 20px rgba(0,0,0,0.6), 0 8px 20px rgba(0,0,0,0.2);
|
||||
position: relative; }
|
||||
.vinyl-disc::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 32px; height: 32px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
|
||||
.vinyl-disc::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(108,92,231,0.15); animation: pulseWave 2.4s ease-out infinite; }
|
||||
.vinyl-arm { display: none !important; }
|
||||
.vinyl-info { display: flex; flex-direction: column; gap: 6px; }
|
||||
.vinyl-title { font-weight: 700; background: var(--gradient-4); -webkit-background-clip: text; background-clip: text; color: transparent; }
|
||||
.vinyl-status { font-size: 0.85rem; color: var(--text-secondary); }
|
||||
.spinning { animation: spinDisc 8s linear infinite; }
|
||||
@keyframes spinDisc { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
|
||||
.vinyl-lyrics { flex: 1; min-width: 160px; max-width: 240px; padding: 8px 12px; }
|
||||
.vinyl-lyrics #lyric-current { font-size: 0.95rem; line-height: 1.6; background: var(--gradient-3); -webkit-background-clip: text; background-clip: text; color: transparent; }
|
||||
@keyframes pulseWave { 0% { box-shadow: 0 0 0 2px rgba(108,92,231,0.0); } 50% { box-shadow: 0 0 0 10px rgba(108,92,231,0.25); } 100% { box-shadow: 0 0 0 2px rgba(108,92,231,0.0); } }
|
||||
.aplayer { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
|
||||
.mobile-fab { position: fixed; right: 16px; bottom: 88px; z-index: 1100; }
|
||||
.fab-main { display: flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; border: none; border-radius: 22px; padding: 10px 14px; box-shadow: 0 8px 18px rgba(0,0,0,0.25); }
|
||||
.fab-label { font-size: 12px; }
|
||||
.fab-menu { display: none; flex-direction: column; gap: 10px; margin-top: 10px; }
|
||||
.fab-item { display: flex; align-items: center; gap: 6px; background: var(--glass-bg); border-radius: 18px; padding: 8px 12px; border: var(--glass-border); box-shadow: var(--glass-shadow); }
|
||||
.fab-menu.open { display: flex; }
|
||||
.fab-menu.open { display: flex; }
|
||||
/* music module removed */
|
||||
Reference in New Issue
Block a user