Repository navigation
Trial a softer, more visual lesson design on Advanced Algorithms - #70
Merged
Merged
Conversation
Purple section headings with a short bar, purple lead-in labels (via a small rehype plugin), softer equations, and a roomier hash table and hash functions table. Part of STACK-42#65
Shared building blocks: rounded cards with a soft stage behind each picture, the step caption in a purple-edged bubble, pill buttons with a purple Play, quieter legends and stats, bigger array cells with soft colour fills, and lighter graph labels. Across the Advanced Algorithms visualizers: no heavy bold, rounded corners, bigger cells and tree nodes. Part of STACK-42#65
Callouts, practical application cards, model answers and quizzes get rounded corners, lighter tints and no all-caps labels. Quiz options get A/B/C badges that turn into a tick or cross once answered. Part of STACK-42#65
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.
Hi Ahmed,
This is a design trial I tried on the Advanced Algorithms course. Have a look, and if you like it, we can bring it to the other courses. If something doesn't work for you, tell me and I'll adjust it or drop it.
The goal: lessons that are easier to scan, and visualizers and boxes that feel lighter and friendlier instead of small and heavy.
What changed
Lesson text
src/lib/rehypeLeadIn.ts, with a test) marks these, because CSS can't tell whether bold text starts a paragraph.#72428a) instead of the bright#6600ff, which was hard on the eyes on the cream background. Dark mode is unchanged.Visualizers
Lesson boxes
Where to look
/courses/advanced-algorithms/collision-resolution: headings, purple labels, the hash table/courses/advanced-algorithms/divide-and-conquer: equationsCheck both light and dark mode.
Heads-up
The headings, the plum colour, the visualizer building blocks and the lesson boxes are shared, so Algorithm Design, Theory of Computation and a few Computer Architecture widgets also pick up the new look. I didn't design for those courses specifically. If you'd rather review it on Advanced Algorithms only first, I can limit it to this course.
Checks
lesson-preview.test.ts, which already fail onmain.