Repository navigation
Landing page: try every kind of learning from the hero - #248
Merged
Merged
Conversation
HldBoard takes an optional onRunDone callback with the passed and total checks of each finished run, and the package exports HldBoard so a page can open one lab full screen. The landing page uses this to unlock its next step when a visitor passes the lab.
A short run through every kind of learning: a course question, a drag to order step, a quick Linux lab in a practice terminal behind Launch lab, and the real visual lab opened full screen. Each step opens the next one only on a right answer. Puzzles and voice tutors are listed as coming soon slots in the step list. Only the first step ships with the page. The other steps, the terminal and the visual lab board load when a visitor reaches or launches them. Order and visual steps work with a mouse, touch and the keyboard, focus moves to each new step, and motion stops under reduced motion.
… sections The hero now reads "The number one platform for" with the last words cycling, and the try-it panel replaces the single question. New sections after the courses story cover the three kinds of lab and the desktop app that runs the shell labs, with links to download it.
The words after "The #1 platform for" are now typed out, held and deleted with a blinking cursor instead of sliding in. With reduced motion they swap whole, with no typing and no cursor.
It used to stop after two rounds, which was easy to miss. It now runs six rounds, pauses while scrolled away or under a mouse, and no longer pauses on a tap.
The headline fits "The #1 platform for" on one line, the hero spacing and Dot are smaller so the first question shows on the first screen, the step list is one swipeable row that keeps the current step in view, and the new step scrolls into view after Next. The keyboard tip is hidden on touch screens, and the lab cards fit three across sooner.
Visitors are short on time, so each step gets one try. A wrong answer marks the right one with the reason, a wrong order is put right on screen, and Next appears either way. The Linux lab gets a Run it for me button and both labs can be skipped; any finished visual lab run opens the next step.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the Edorax landing page something you can try, not only read about.
What changes
try-it/steps.ts), ready for a component each.LAB_KINDS) and The desktop app (download link).packages/learning-ui:HldBoardgets an optionalonRunDonecallback and is exported, so a page can open one lab full screen and hear the result. Nothing changes for existing callers.Page speed
Only the first step ships with the page: about 3 to 4 KB gzipped more than today. The other steps load when a visitor reaches them (1.6 to 3 KB each). The visual lab board and its drawing library (about 75 KB gzipped) load only when someone presses Launch visual lab.
Checked
tsc --noEmit, eslint on the changed files andnext buildpass.Not merged: waiting for a go-ahead.