Skip to content

Feature/404 page#715

Open
masterking008 wants to merge 2 commits intowagtail:mainfrom
masterking008:feature/404-page
Open

Feature/404 page#715
masterking008 wants to merge 2 commits intowagtail:mainfrom
masterking008:feature/404-page

Conversation

@masterking008
Copy link
Copy Markdown
Contributor

Title: Improve 404 error page

  • Replace bare 404 template with a design-consistent error page
  • Add CSS for the 404 page using existing CSS variables

Fixes #...

Description

The 404 page was bare — just two plain headings with no styling.

  • templates/404.html: Replaced with a structured error page showing a large styled "404" number, a clear message, and links back to the homepage and search page.
  • static/css/main.css: Added responsive CSS for the 404 page using existing design tokens (--orange, --grey, --font--primary) with no new variables introduced.

AI usage

Used Amazon Q Developer (AI assistant in IDE) to implement the changes. Manually reviewed the existing templates and CSS patterns to ensure consistency with the project's design system before submitting.

- Add RecipePage to native DB search fallback in search/views.py
- Replace datetime.now() with timezone.localtime() in LocationPage.is_open()
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