feat(练习): 添加进度缓存和用户体验优化
- 使用 localStorage 缓存答题进度,支持切换页面后继续 - 修复暗色主题下输入框文字不可见问题 - 添加"想不起来"提示按钮,引导用户查看答案 - 添加清除进度按钮,方便重新开始练习 via [HAPI](https://hapi.run) Co-Authored-By: HAPI <noreply@hapi.run>
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user