devdisplay / DevDisplay

DevDisplay is a global open source community platform that brings together all your tech needs in one place. 🌟 Join DevDisplay to Showcase your skills, connect globally, collaborate, build and promote.
https://www.devdisplay.org
MIT License
146 stars 290 forks source link

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

Open RachitSahu26 opened 1 month ago

RachitSahu26 commented 1 month ago

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

Screenshots

https://github.com/user-attachments/assets/111ed744-8e46-4bb1-9c8c-2e00ba99b652

Note to reviewers

vercel[bot] commented 1 month ago

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
netlify[bot] commented 1 month ago

Deploy Preview for devdisplay failed.

Name Link
Latest commit ecab5dd8526a479ebbc3acf66d5e249a4efcddd7
Latest deploy log https://app.netlify.com/sites/devdisplay/deploys/671decbeb1f4ac00085925da
RachitSahu26 commented 1 month ago

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

codeaashu commented 4 weeks ago

hey @RachitSahu26 leave that focus on this issue https://github.com/codeaashu/DevDisplay/issues/475#issue-2617410305