Loading...
Loading...
Compare original and translation side by side
| Step | What Happens | Component |
|---|---|---|
| Orient | What you'll learn in 5-10 min | Heading + learning objective |
| Attempt | Learner predicts/answers/edits first | QuickCheck, CodePlayground, ParameterDock |
| Feedback | Immediate + specific response | Feedback surface (green/red panel) |
| Explain | Short explanation anchored to their attempt | Callout, WorkedExample |
| Extend | Variation, edge case, or transfer task | BeforeAfterSplit, ConceptExplorer |
| Checkpoint | Quick recall question | QuickCheck with ConfidenceRating |
| Reflect | "What changed in your understanding?" | Optional text input or self-rating |
| 步骤 | 内容 | 组件 |
|---|---|---|
| 定位 | 5-10分钟内你将学到的内容 | 标题 + 学习目标 |
| 尝试 | 学习者先进行预测/作答/编辑 | QuickCheck、CodePlayground、ParameterDock |
| 反馈 | 即时且具体的回应 | 反馈区域(绿/红面板) |
| 讲解 | 结合学习者尝试的简短解释 | Callout、WorkedExample |
| 拓展 | 变体、边缘情况或迁移任务 | BeforeAfterSplit、ConceptExplorer |
| 检查点 | 快速回忆问题 | 带ConfidenceRating的QuickCheck |
| 反思 | “你的理解有什么变化?” | 可选文本输入或自我评分 |
| Pattern | How It Works | When to Use |
|---|---|---|
| Prediction Gap | "What do you think happens if...?" then reveal | Before introducing a concept |
| Contrast Pair | Two near-identical cases with different outcomes | Clarifying subtle distinctions |
| Slider to Failure | Let learner push a parameter until it breaks | Understanding boundaries/limits |
| Time Travel | Scrub algorithm step-by-step, watch invariants | Algorithms, state machines |
| Misconception Trap | Tempting wrong option, then explain why wrong | Common errors in a domain |
| 模式 | 工作原理 | 使用场景 |
|---|---|---|
| 预测差距 | “你认为如果...会发生什么?”然后揭晓答案 | 引入概念之前 |
| 对比配对 | 两个近乎相同但结果不同的案例 | 澄清细微差别 |
| 滑块至失效 | 让学习者调整参数直到功能失效 | 理解边界/限制 |
| 时光回溯 | 逐步浏览算法,观察不变量 | 算法、状态机 |
| 误解陷阱 | 设置诱人的错误选项,然后解释错误原因 | 领域内的常见错误 |
| Signal | Color Token | Hex | Usage |
|---|---|---|---|
| Correct | green-700 | | Success feedback, completed steps |
| Incorrect | red-700 | | Error feedback, failed checks |
| Hint/Caution | amber-700 | | Hints, warnings, "watch out" |
| Info/Definition | blue-700 | | Definitions, current step, links |
| Default | gray-400 | | Everything else: borders, muted text |
| Progress done | green-700 dot | | Completed step indicator |
| Progress current | blue-700 ring | | Current step focus state |
| Progress pending | gray-400 dot | | Upcoming steps |
| 信号 | 颜色令牌 | 十六进制值 | 用途 |
|---|---|---|---|
| 正确 | green-700 | | 成功反馈、已完成步骤 |
| 错误 | red-700 | | 错误反馈、未通过检查 |
| 提示/警告 | amber-700 | | 提示、警告、“注意” |
| 信息/定义 | blue-700 | | 定义、当前步骤、链接 |
| 默认 | gray-400 | | 其他所有内容:边框、弱化文本 |
| 已完成进度 | green-700 点 | | 已完成步骤指示器 |
| 当前进度 | blue-700 环 | | 当前步骤聚焦状态 |
| 待完成进度 | gray-400 点 | | 即将进行的步骤 |
<LessonShell /><ProgressRail /><StepFlow /><CheckpointCard /><ResumeBanner /><LessonShell /><ProgressRail /><StepFlow /><CheckpointCard /><ResumeBanner /><ParameterDock /><LiveOutputPanel /><ConceptExplorer /><InteractiveDiagram /><BeforeAfterSplit /><TimelineExplorer /><ConceptMap /><ParameterDock /><LiveOutputPanel /><ConceptExplorer /><InteractiveDiagram /><BeforeAfterSplit /><TimelineExplorer /><ConceptMap /><CodePlayground /><DiffEditor /><TaskRunner /><SnippetCopy /><CodePlayground /><DiffEditor /><TaskRunner /><SnippetCopy /><QuickCheck /><ConfidenceRating /><HintLadder /><MistakeAnalyzer /><QuickCheck /><ConfidenceRating /><HintLadder /><MistakeAnalyzer /><GlossaryPopover /><Callout /><WorkedExample /><GlossaryPopover /><Callout /><WorkedExample />| Element | What It Means | Style |
|---|---|---|
| Big heading | "What you're doing" | |
| Small label | "Where you are" | |
| Mono | "What the computer sees" | |
| Body | Reading content | |
| 元素 | 含义 | 样式 |
|---|---|---|
| 大标题 | “你正在做什么” | |
| 小标签 | “你所处位置” | |
| 等宽文本 | “计算机看到的内容” | |
| 正文 | 阅读内容 | |
| Context | Max Width | Structure |
|---|---|---|
| Reading content | | Single column, comfortable line length |
| Interactive lab | | Two panels: explanation + playground |
| Full explorer | | Three zones: nav + content + lab panel |
| 场景 | 最大宽度 | 结构 |
|---|---|---|
| 阅读内容 | | 单列,舒适行宽 |
| 交互式实验室 | | 双面板:讲解 + 实验区 |
| 全功能探索器 | | 三区域:导航 + 内容 + 实验面板 |
/ → Landing / course picker
/learn → Course catalog + resume
/learn/[courseSlug] → Course overview, modules, progress
/learn/[courseSlug]/[moduleSlug] → Module overview
/learn/[courseSlug]/[moduleSlug]/[lessonSlug] → Lesson shell/ → 首页 / 课程选择器
/learn → 课程目录 + 继续学习
/learn/[courseSlug] → 课程概览、模块、进度
/learn/[courseSlug]/[moduleSlug] → 模块概览
/learn/[courseSlug]/[moduleSlug]/[lessonSlug] → 课程外壳content/courses/<courseSlug>/course.json → Metadata, module order
content/courses/<courseSlug>/<module>/<lesson>.mdx → Lesson content
components/learning/ → Reusable learning components
lib/learning/progress.ts → Schema + storage adapters
lib/learning/grading.ts → Quiz validation, code tests
lib/learning/spaced.ts → Review schedulingcontent/courses/<courseSlug>/course.json → 元数据、模块顺序
content/courses/<courseSlug>/<module>/<lesson>.mdx → 课程内容
components/learning/ → 可复用学习组件
lib/learning/progress.ts → 模式 + 存储适配器
lib/learning/grading.ts → 测验验证、代码测试
lib/learning/spaced.ts → 复习调度references/lesson-shell.mdreferences/explorable-explanations.mdreferences/code-learning.mdreferences/quiz-assessment.mdreferences/reading-support.mdreferences/pedagogical-framework.mdreferences/architecture.mdreferences/progress-state.mdreferences/learning-animations.mdreferences/lesson-shell.mdreferences/explorable-explanations.mdreferences/code-learning.mdreferences/quiz-assessment.mdreferences/reading-support.mdreferences/pedagogical-framework.mdreferences/architecture.mdreferences/progress-state.mdreferences/learning-animations.md