diff --git a/design-refs/mockup/components-page-1.png b/design-refs/mockup/components-page-1.png index 0ada3b5..ce7c97c 100644 Binary files a/design-refs/mockup/components-page-1.png and b/design-refs/mockup/components-page-1.png differ diff --git a/design-refs/mockup/components-page-4.png b/design-refs/mockup/components-page-4.png index b92b97b..2b97507 100644 Binary files a/design-refs/mockup/components-page-4.png and b/design-refs/mockup/components-page-4.png differ diff --git a/design-refs/mockup/components-page-5.png b/design-refs/mockup/components-page-5.png index e500afe..85dfbbe 100644 Binary files a/design-refs/mockup/components-page-5.png and b/design-refs/mockup/components-page-5.png differ diff --git a/design-refs/mockup/components.html b/design-refs/mockup/components.html index 0e7ca7a..970475d 100644 --- a/design-refs/mockup/components.html +++ b/design-refs/mockup/components.html @@ -139,7 +139,13 @@ display: flex; flex-direction: column; gap: 5px; width: 262px; } - .ccard .icorow { display: flex; justify-content: space-between; align-items: flex-start; } + .ccard .icorow { display: flex; align-items: center; gap: 8px; } + .ccard .zone { + width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; + background: #f7f7f5; border: 1px solid #ececea; + display: flex; align-items: center; padding: 10px 12px; + font-size: 11px; color: #8a8a8a; line-height: 1.5; + } .ccard .ttl { font-size: 13.5px; font-weight: 700; color: #1a1a1a; margin: 0; } .ccard .dsc { font-size: 11px; line-height: 1.4; color: #8a8a8a; margin: 0; flex: 1; } .ccard .btm { display: flex; align-items: center; justify-content: space-between; } @@ -227,8 +233,8 @@
| Prop | 类型 | 说明 |
|---|---|---|
title | string | 章节名(分类 label) |
desc | string | 预期结果一句话 |
done | boolean | true → ✓ 胶囊 + ✓ 钮 |
prerequisites | string[] | 前置章节 → 实线 chip + 图中实线边 |
related | string[] | 关联章节 → 虚线 chip + 图中虚线边 |
icon / tint | emoji / hex | IconTile 底色与图标 |
href | string | 章节分类索引路由 |
title | string | 章节名 |
desc | string | 预期一句话(16:9 区) |
done | boolean | ✓ 胶囊 / Upcoming |
prerequisites | string[] | 前置 → 实线 chip + 图边 |
related | string[] | 关联 → 虚线 chip + 图边 |
icon / tint | emoji / hex | 图标与淡彩底 |
href | string | 章节路由 |
flipInterval | ms | 翻转周期,默认 8000 |
| 项 | 规格 |
|---|---|
| 翻转周期 | desc 8s ⇄ GIF 8s(flipInterval 可配);GIF 内部循环 |
| 播放钮 | 黑 #111 圆形 · 卡内 44px / 展示 56px · 阴影 0 4px 14px |
| ⏱ 胶囊 | 右上 GIF loop · 左下成果字幕,白底描边胶囊 |
| GIF | 640×360 · loop=0 · ≤300KB · hover 时才挂载 |
| 设备 / 输入 | 行为 |
|---|---|
| 桌面 · 鼠标 hover | 白卡 → 媒体卡播放预览;点击卡片进入章节。 |
| 桌面 · 鼠标 hover | 即时翻转并锁定 GIF;点击卡片进入章节。 |
| 键盘 · Tab focus | 与 hover 同态(可访问性),Enter 进入章节。 |
| 触屏 · 无 hover | 不做预览态;首次点击直接进入章节,避免误触耗流量。 |
| 减弱动效偏好 | prefers-reduced-motion 时显示静帧,不自动播放。 |
| 触屏 · 无 hover | 不自动翻转;点击直接进入章节,避免误触耗流量。 |
| 减弱动效偏好 | prefers-reduced-motion 时不自动翻转,仅显示 desc。 |