AOSSIE-Org / website

AOSSIE Offical Website
https://aossie-org.github.io/website/
MIT License
24 stars 151 forks source link

Feature: Added custom 404 page (#299) #305

Open VisheshGrg opened 4 days ago

VisheshGrg commented 4 days ago

Related Issue:

Closes #299

Description:

This PR resolves the issue of the default Next.js 404 page appearing whenever a user enters a non-existent URL. Additionally, as the website supports dark/light mode, the default 404 page contains text that is not visible in light mode. A responsive custom 404 page has been created to address these issues, supporting both dark and light modes in Next.js.

Changes made:

  1. Made a new 404.jsx file in the pages folder to render a custom 404 message for invalid URLs.
  2. Tailwind CSS is used to make the page responsive.

Testing:

Verified the page changes well on different screen size.

Additional notes:

Feedback and suggestions are welcome.

vercel[bot] commented 4 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2024 5:49am