Build a pricing table that holds up at any width
You build a pricing table of three plans that holds its shape from a 360px phone up to a wide screen. The aim is to let it wrap because the content is cramped, without writing a single @media rule.
A course is for reading in order and taking in; a project is for building one thing all the way through. Rather than handing you the requirements and walking off, each one carries the steps, a worked answer and the places people get stuck.
9 in total · Beginner → intermediate → advanced
You build a pricing table of three plans that holds its shape from a 360px phone up to a wide screen. The aim is to let it wrap because the content is cramped, without writing a single @media rule.
Labels, how errors are conveyed, where focus goes. Make it something you can finish with the keyboard alone and it becomes a faster form for sighted people too.
One long URL and the card breaks out of its box, and the phone gets a sideways scroll. Measuring the overflow as you go, you fix wrapping, min-width: 0 in flex, minmax(0, 1fr) in grid, images and the "…" truncation, and keep a check that lists the elements that stick out.
An old response overwrites a newer one, a double click sends the order twice, and a failure vanishes without a word. You stop bugs that never raise an error and only ever show up as a screen that is out of step.
You fix a search screen that stutters on every keystroke. Before adding any memo, you count how many times each component redraws. Once you count, the first thing you find is not a re-render at all.
You fix a bug where the display simply freezes, with no error and no warning. By counting redraws and watch triggers, you check one place at a time to find where the link between ref/reactive and the screen broke.
A booking shows a day early, a month-end billing date skips a month, and a day lasts 25 hours when summer time ends. You reproduce date bugs that appear for some readers and not others, using UTC and named time zones, then fix them with functions that keep dates as strings and pin them with tests.
One family emoji counts as 8 characters, a pasted "が" counts as 2, and cutting a long name leaves a "�" at the end. You count four ways (length, code points, graphemes, bytes) to see the difference, then fix it with functions that normalize first and count and cut by grapheme, pinned by tests.
Someone added "if it fails, try again at once" to a flaky API. The outage ended after 3 seconds, yet 60 seconds later nobody was getting through. With a fake clock and a fake server you count the requests, then fix it with backoff and jitter, retry rules, timeouts and an idempotency key.