Skip to main content

Module learn

Module learn 

Source
Expand description

The Learn Logic page: a roadmap through the curriculum, one lesson at a time.

The curriculum (assets/curriculum, via ContentEngine::shared) is laid out as a route: four eras, a stop for each module, a stop for each lesson. A lesson is a short teaching, two examples and one question. Answering it right, or asking to see the answer after a try, lets the learner move on; “More examples” and “More practice” are there for anyone who wants them. The rules live in crate::learn_state; this file renders them and records progress to UserProgress.

§Layout

  • Hero: the page title and how many lessons are done
  • Lesson: the open lesson, its examples and its question
  • Roadmap: every era, module and lesson; beside the lesson on wide screens, after it on phones

§Route

Accessed via Route::Learn. /learn#<module-id> opens that module’s first lesson not yet done.

Re-exports§

pub use Learn_completions::Component::Learn;
pub use LessonPanel_completions::Component::LessonPanel;

Structs§

LearnProps
Properties for the Learn component.
LessonPanelProps
Properties for the LessonPanel component.

Functions§

Learn
Props
LessonPanel
A lesson as the page draws it. on_next moves the learner on once its question is settled.