feat: Add Playful Custom 404 Page Not Found Component#632
Conversation
- Created a new NotFound component in src/pages/NotFound/NotFound.tsx - Used framer-motion to add animated ghost illustration and pulsating shadow - Designed the page using Tailwind CSS for a playful and modern aesthetic - Imported and configured the NotFound component as a wildcard catch-all route (*) in Router.tsx to handle all invalid URLs
❌ Deploy Preview for github-spy failed.
|
|
Warning Review limit reached
More reviews will be available in 28 minutes and 18 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. 📝 WalkthroughWalkthroughThis PR implements a custom 404 page for the application. A new Changes404 Page with Router Integration
🎯 2 (Simple) | ⏱️ ~12 minutes Possibly Related PRs
Suggested Labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🎉 Thank you @manishworkss for your contribution. Please make sure your PR follows https://github.com/GitMetricsLab/github_tracker/blob/main/CONTRIBUTING.md#-pull-request-guidelines
|
🎉🎉 Thank you for your contribution! Your PR #632 has been merged! 🎉🎉 |
Related Issue
Description
Previously, if a user navigated to an invalid or broken URL, the application lacked a fallback route, resulting in a poor user experience. This PR introduces a dedicated, fully responsive 404 component to gracefully handle these edge cases. To make it more engaging for users, I utilized
framer-motionfor a subtle ghost animation and designed the layout with Tailwind CSS to match the project's overall aesthetic, complete with dark mode support. A "Teleport Back Home" button was also added to seamlessly route users back to the dashboard.How Has This Been Tested?
npm run dev.http://127.0.0.1:5173/ghost-town).react-router-domcorrectly redirects back to the root/path.Screenshots (if applicable)
Type of Change
Summary by CodeRabbit