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

Create 404 error page #185

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

dev129
Copy link
Contributor

@dev129 dev129 commented Oct 18, 2024

Here’s a generated Pull Request (PR) message based on your description for GitHub:


Pull Request: Custom 404 Page Implementation

Issue: #168


Description:

This Pull Request (PR) introduces a custom 404 "Not Found" page for the CodeIt application, enhancing the user experience when navigating to non-existent pages. The new design ensures a seamless and visually consistent experience.

Key Features:

  • User-Friendly Design:
    The custom 404 page presents a clear message indicating that the requested page could not be found. It includes suggestions for next steps, such as returning to the homepage or exploring other sections of the website.

  • Consistent Branding:
    The page follows the overall branding of CodeIt, maintaining aesthetic consistency throughout the application.

  • Dynamic Logo Display:
    The logo dynamically switches between light and dark modes, based on user preferences, by using the next-themes package. The appropriate logo is shown based on the active theme, ensuring a cohesive look.


Implementation Details:

  • The custom 404 page is located at /pages/error404.html and the css and js files are located in /resources/error404.css and /resources/error404.js.
  • The logos for light and dark mode are stored at /images/Nomenclature.png.
  • Theme detection is powered by the next-themes package, allowing the correct logo to be displayed in light or dark mode.
  • Routing logic has been updated to ensure all undefined routes redirect to this custom 404 page.
  • All assets and styling are designed to fit seamlessly within the Codecache application's overall user interface.

Testing:

  • The 404 page has been tested across multiple devices and browsers to ensure proper responsiveness and functionality.
  • Verified the logo dynamically changes based on the active theme (light/dark mode).
  • Routing to this error page on an error can be set only from the sever side using .htlaccess

Please review the changes and merge this PR at your earliest convenience.

Thank you!


This PR message is structured to explain the changes clearly for easy review and provides all necessary information for merging into the main branch.

This contains code for error 404 page.
Copy link

netlify bot commented Oct 18, 2024

Deploy Preview for codeittool ready!

Name Link
🔨 Latest commit e498721
🔍 Latest deploy log https://app.netlify.com/sites/codeittool/deploys/67122f0b35a5df0008adb167
😎 Deploy Preview https://deploy-preview-185--codeittool.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.

@dev129
Copy link
Contributor Author

dev129 commented Oct 18, 2024

Hi @multiverseweb , I have raised the PR, would you please approve my merge request ?

@multiverseweb multiverseweb merged commit 6c0e699 into multiverseweb:main Oct 18, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants