feat(练习): 添加进度缓存和用户体验优化

- 使用 localStorage 缓存答题进度,支持切换页面后继续
- 修复暗色主题下输入框文字不可见问题
- 添加"想不起来"提示按钮,引导用户查看答案
- 添加清除进度按钮,方便重新开始练习

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>
This commit is contained in:
ittoview
2026-03-01 15:27:19 +00:00
parent a38e275642
commit 4b347be9f5
2 changed files with 67 additions and 4 deletions

View File

@@ -128,6 +128,7 @@ export function InputArea({
'w-10 h-12 text-center text-2xl font-medium',
'bg-transparent border-b-2 transition-all duration-200',
'focus:outline-none',
'text-gray-900 dark:text-gray-100',
isComposing && 'border-gray-300 dark:border-gray-600 opacity-70',
!isComposing && !char && 'border-gray-400 dark:border-gray-500',
!isComposing && isCorrect && 'border-green-500',