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

[Feature]: Add No Results Found Page for Unsuccessful Searches #450

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RachitSahu26
Copy link
Contributor

@RachitSahu26 RachitSahu26 commented Oct 27, 2024

Description

fixed:#419

This PR introduces a No Results Found page to handle cases where a search yields no results. The new component provides a user-friendly message, actionable buttons to navigate back or reload, and aligns with the structure and styling of similar components within the project.

Related Issues

Changes Proposed

New Component:

Created a NoResultFound.jsx component that displays:
A sad face icon using react-icons.
User-friendly text for search failures.
Two action buttons: Go Back and Search Again.
Routing & Functionality:

Integrated Next.js useRouter to navigate back with the Go Back button.
Implemented window.location.reload() to reload the page via Search Again button.
Styling:

Used a flex layout for alignment and spacing consistency.
Added hover effects to buttons for better UX.

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

notty.found.mp4

Note to reviewers

Copy link

vercel bot commented Oct 27, 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 Oct 27, 2024 7:33am

Copy link

netlify bot commented Oct 27, 2024

Deploy Preview for devdisplay failed.

Name Link
🔨 Latest commit ecab5dd
🔍 Latest deploy log https://app.netlify.com/sites/devdisplay/deploys/671decbeb1f4ac00085925da

@RachitSahu26
Copy link
Contributor Author

hey @codeaashu please help me little bit why is this happening

@codeaashu
Copy link
Owner

hey @RachitSahu26
leave that
focus on this issue #475 (comment)

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.

2 participants