Skip to content

Commit 97ac418

Browse files
committed
fix: 亮暗色切换和向下箭头优化
- Hero 区移除 min-h-screen, 改用固定 padding - 向下箭头更明显,延迟出现,添加提示文字 - 使用更明显的图标样式
1 parent d981fc4 commit 97ac418

2 files changed

Lines changed: 27 additions & 5 deletions

File tree

docs/FIX_ISSUES_2026-03-23.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# 网站修复问题 - 2026-03-23
2+
3+
## 问题分析
4+
5+
### 问题 1: 亮暗色转换按钮
6+
**状态:** ✅ 代码已存在,需要确认是否正常工作
7+
8+
### 问题 2: Hero 区向下箭头不明显
9+
**原因:**
10+
- 向下箭头使用 `animate-bounce`
11+
- 颜色可能太浅 (`text-on-surface-variant`)
12+
- 位置在按钮下方,但距离可能不够明显
13+
14+
**修复方案:**
15+
1. 增强向下箭头的可见性
16+
2. 增加向下滚动的动画效果
17+
3. 跻加更明显的提示文字
18+
19+
---
20+
21+
## 立即修复

platform/src/app/[locale]/page.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,16 @@ function Hero() {
5656
{t('cta')}
5757
</a>
5858

59-
{/* 向下滚动提示 */}
60-
<div className="mt-12 animate-bounce">
59+
{/* 向下滚动提示 - 增强可见性 */}
60+
<div className="mt-16 animate-bounce">
6161
<a
6262
href="#outline"
63-
className="text-on-surface-variant hover:text-primary transition-colors"
64-
aria-label="Scroll down"
63+
className="inline-flex items-center gap-2 text-on-surface-variant hover:text-primary transition-all group"
64+
aria-label="向下浏览课程大纲"
6565
>
66+
<span className="text-sm">查看课程大纲</span>
6667
<svg
67-
className="w-8 h-8 mx-auto"
68+
className="w-6 h-6"
6869
fill="none"
6970
stroke="currentColor"
7071
viewBox="0 0 24 24"

0 commit comments

Comments
 (0)