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

Added a custom 404 not found page #210

Merged
merged 3 commits into from
Oct 12, 2023

Conversation

parthrc
Copy link
Contributor

@parthrc parthrc commented Oct 12, 2023

Description

Added a custom "404 page not found" page. Issue #209. No dependencies required.

Fixes #209

Type of change

  • New feature (non-breaking change which adds functionality)

@netlify
Copy link

netlify bot commented Oct 12, 2023

Deploy Preview for fossc ready!

Name Link
🔨 Latest commit bb8c276
🔍 Latest deploy log https://app.netlify.com/sites/fossc/deploys/6527e91aecb9b1000824636d
😎 Deploy Preview https://deploy-preview-210--fossc.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 🙏🏻 for contributing to progress-tracker by @FOSS-Community. Looking Forward for more contributions.

Copy link
Member

@Mr-Sunglasses Mr-Sunglasses left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @parthrc , Thanks for the PR, there is an issue, the 404 Error Image is not rendering.
Screenshot 2023-10-12 at 5 25 45 PM

<div className="flex text-white flex-col items-center justify-center p-10">
<img
className="w-96 mx-auto "
src="src\assets\img\page_not_found_img\404-error.png"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change it to src="src/assets/img/page_not_found_img/404-error.png" to fix this error

@parthrc
Copy link
Contributor Author

parthrc commented Oct 12, 2023

@Mr-Sunglasses Hey, i did the changes.

@@ -0,0 +1,23 @@
import { Link } from "react-router-dom";

Copy link
Member

@Mr-Sunglasses Mr-Sunglasses Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we need to import the image to render it instead of passing it directly to src
use this
import logo_404 from "./assets/img/page_not_found_img/error.png"

<div className="flex text-white flex-col items-center justify-center p-10">
<img
className="w-96 mx-auto "
src="src/assets/img/page_not_found_img/error.png"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change it to src={logo_404}

@parthrc
Copy link
Contributor Author

parthrc commented Oct 12, 2023

@Mr-Sunglasses seems to be fixed now, also working on netlify deploy preview

Copy link
Member

@Mr-Sunglasses Mr-Sunglasses left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work @parthrc , 🍻 Thanks for solving this major issue 🙏🏻

@Mr-Sunglasses Mr-Sunglasses merged commit 1a776e2 into FOSS-Community:main Oct 12, 2023
9 checks passed
@parthrc
Copy link
Contributor Author

parthrc commented Oct 12, 2023

@Mr-Sunglasses , thank you so much for the oppurtunity, this is my first ever open source contribution, hopefully many more to come 💯

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.

[Feature] Add a custom 404 not found page.
2 participants