Skip to content

Show 'Lesson not found' for unknown addresses; 24px tap targets - #12

Merged
romanzdk merged 1 commit into
mainfrom
fix/not-found-tap-targets
Nov 27, 2026
Merged

romanzdk merged 1 commit into
mainfrom
fix/not-found-tap-targets

Conversation

@romanzdk

Copy link
Copy Markdown
Owner
  • An unknown address such as #/neco now shows a short "Lesson not found" page with a button back to the start page. Before, it silently showed the start page. An empty hash still shows the start page.
  • Inline text links on the start page (hero, "how it works" card, tools line, footer, sidebar footer) get padding-block: 4px. Vertical padding on an inline link grows its tap area but does not move any text, so the page looks the same.

Checks

What Result
Links/buttons on the start page smaller than 24 px (Playwright, getBoundingClientRect, 390 px and 1280 px wide) Before: 9 (390 px), 11 (1280 px). After: 0 and 0
Full-page screenshots before vs after, pixel diff (390 px and 1280 px) Identical (no changed pixels)
Lighthouse target-size audit, mobile, live site before the change Already passing (score 1); this change only enlarges the boxes
#/neco Before: start page. After: "Lesson not found · Rust for Pythonistas" page
#/, #/tours, #/errors still open the right page Pass
node --check app.js, node scripts/build-pages.mjs Pass, 31 pages

Before / after

#/neco, before: the start page. After:

Lesson not found
There is no lesson at #/neco.
[← Back to the start page]

Footer link "Source on GitHub", before: 117×17 px. After: 117×25 px, same look.

@romanzdk
romanzdk merged commit 15d8c7f into main Nov 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant