Skip to content

add 404 not found page and wired it into the router as a global catch…#734

Open
wenfeng110402 wants to merge 1 commit into
hackclub:cleanfrom
wenfeng110402:clean
Open

add 404 not found page and wired it into the router as a global catch…#734
wenfeng110402 wants to merge 1 commit into
hackclub:cleanfrom
wenfeng110402:clean

Conversation

@wenfeng110402

Copy link
Copy Markdown

Description

Added a custom 404 (Not Found) page matching the Hackpad design style and configured it as a global catch-all route (path: "*") in the router. This ensures that any unknown or invalid paths will now gracefully redirect to this matching 404 component instead of crashing or showing a blank page.

Changes

  • Created website/src/pages/NotFound.tsx with a retro Hackpad-themed 404 UI (including Home, Guide, and Gallery quick links).
  • Updated website/src/main.tsx to wire the NotFound component into the browser router.

…-all route so unknown paths now show a matching hackpad-style 404 page
@wenfeng110402

Copy link
Copy Markdown
Author
image

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