Skip to content

feat: 扁平化 UI 重构 + 天气/名言/笑话卡片 - #9

Closed
chicogong wants to merge 11 commits into
masterfrom
ui/flat-design-refactor
Closed

feat: 扁平化 UI 重构 + 天气/名言/笑话卡片#9
chicogong wants to merge 11 commits into
masterfrom
ui/flat-design-refactor

Conversation

@chicogong

Copy link
Copy Markdown
Owner

改动

扁平化设计重构(11 个 commit):新增天气、名言、笑话卡片与词典查询,优化搜索框/倒计时卡片,天气 API 改用免 key 的 wttr.in。原远程分支曾被删除,本次重新推送保留。

🤖 Generated with Claude Code

- Replace gradient backgrounds with solid colors
- Remove Neumorphism shadows and effects
- Use Tailwind CSS color palette (gray-50, gray-100, etc.)
- Simplify light theme with white cards and subtle borders
- Dark mode uses pure #111827 background
- Reduce visual complexity for cleaner look
- Update accent colors to standard blue (#3b82f6)

🤖 Generated with [CodeBuddy Code]

Co-Authored-By: CodeBuddy Code
包含新旧设计的 dark/light 模式截图用于 PR 对比展示

🤖 Generated with [CodeBuddy Code]

Co-Authored-By: CodeBuddy Code
- 背景改为纯白色 (#fff)
- 卡片使用浅灰底色 (#fafafa) 配浅边框
- 时钟使用浅灰色作为装饰元素
- 更新背景选项为更柔和的配色

🤖 Generated with [CodeBuddy Code]

Co-Authored-By: CodeBuddy Code
- 页面背景从纯白 (#fff) 改为暖白色 (#fffbf5)
- 更柔和舒适的视觉效果

🤖 Generated with [CodeBuddy Code]

Co-Authored-By: CodeBuddy Code
- light-1 默认为暖白色 (#fffbf5)
- light-2 改为纯白色 (#fff)
- JS 和 CSS 背景色配置保持一致

🤖 Generated with [CodeBuddy Code]

Co-Authored-By: CodeBuddy Code
- initBg() 现在会自动检测主题和背景是否匹配
- Light 模式下如果背景是深色,自动切换为 light-1
- Dark 模式下如果背景是浅色,自动切换为 gradient-1

🤖 Generated with [CodeBuddy Code]

Co-Authored-By: CodeBuddy Code
- 将时间从页面中央移到左上角 header 区域
- 时间、问候语、日期、搜索框排列在一行
- 移除独立的 hero 区域,页面更紧凑
- dashboard 区域获得更多可用空间

🤖 Generated with [CodeBuddy Code]

Co-Authored-By: CodeBuddy Code
搜索框:
- 改为圆角胶囊形状 (border-radius: 20px)
- 移除边框,使用半透明背景
- 聚焦时显示蓝色光晕效果

倒计时:
- 从列表布局改为网格卡片布局
- 每个倒计时是独立的圆角小卡片 (border-radius: 16px)
- 卡片垂直排列:节日名称、日期、天数
- 紧急/即将到来的事件有不同背景色

🤖 Generated with [CodeBuddy Code]

Co-Authored-By: CodeBuddy Code
- Increase modal border-radius to 24px for softer appearance
- Update form inputs, buttons, todo items to use 12px radius
- Improve todo tabs with larger padding and rounded container
- Enhance vocab stat cards and display area with consistent radius
- Increase settings action buttons and export options to 12px
- Background color options now use 12px radius (was 6px)
- Scrollbar thumb increased to 6px width with 3px radius
- Add hover effects to scrollbar and modal close button
- Slightly increase padding throughout for better touch targets

🤖 Generated with [CodeBuddy Code]

Co-Authored-By: CodeBuddy Code
New features powered by free APIs:
- Weather card (OpenWeatherMap): Shows current weather, temperature,
  humidity, wind speed with emoji icons. Requires API key in settings.
- Daily Quote card (Quotable API): Displays inspiring quotes with
  author attribution. Has offline fallback quotes.
- Joke card (JokeAPI): Shows programming jokes with reveal-on-click
  punchlines. Has offline fallback jokes.
- Dictionary lookup (Free Dictionary API): Added to vocab card,
  shows phonetics with audio playback and definitions.

Technical changes:
- Added weatherApiKey to data model for persistent storage
- Settings modal now includes API key configuration
- All API calls have error handling and fallback content
- Responsive 3-column grid layout for new cards

🤖 Generated with [CodeBuddy Code]

Co-Authored-By: CodeBuddy Code
Replace OpenWeatherMap with wttr.in for weather data:
- No API key registration required
- Auto-detects location via IP
- Supports Chinese weather descriptions
- Removed weatherApiKey from settings and data model
- Simplified weather fetch logic

🤖 Generated with [CodeBuddy Code]

Co-Authored-By: CodeBuddy Code
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@chicogong

Copy link
Copy Markdown
Owner Author

仓库收口:该 PR 已长期没有当前 Owner、里程碑或与默认分支一致的验收证据,不再作为待合并工作。关闭只改变 PR 状态,不删除分支或提交;若产品重新启用,应从当前默认分支开新分支,选择性迁移仍有效改动并重新跑安全、CI 与真实环境门禁。

@chicogong chicogong closed this Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant