Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Not Found Page #559

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

404 Not Found Page #559

wants to merge 2 commits into from

Conversation

Riddhi050803
Copy link
Contributor

@Riddhi050803 Riddhi050803 commented Nov 16, 2024

Description

This PR introduces a custom 404 Not Found Page along with a default route for the application. The 404 Not Found Page displays a visually appealing background, a prominent "Page Not Found" message, and a button that redirects users to the homepage when clicked. The default route ensures that all non-matching routes will be handled by this 404 page.

Related Issues

Resolves #558

Changes Proposed

  1. NotFoundPage Component: A React component was added for the 404 page. It includes:
    -A background image.
    -A "Page Not Found" message.
    -A "Go to Home" button that redirects the user to the homepage.

  2. Routing Updates:
    A default route (*) has been added to handle all non-existent routes, displaying the NotFoundPage for any unmatched URL.
    The previous default route for the homepage ("/") remains intact, and now it redirects users from invalid paths to the 404 page.

Checklist

  • I have read and followed the Contribution Guidelines.
  • All new and existing tests passed.
  • I have updated the documentation to reflect the changes I've made.
  • My code follows the code style of this project.
  • The title of my pull request is a short description of the requested changes.

Screenshots

image

Note to reviewers

Copy link

vercel bot commented Nov 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
devdisplay ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 16, 2024 8:35am

@Riddhi050803
Copy link
Contributor Author

@codeaashu Kindly review.

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.

[Feat]: Add a 404 Not Found Page
1 participant