-
Notifications
You must be signed in to change notification settings - Fork 33
feat: Add Custom 404 Page (not-found.tsx) #102
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
Open
Atharva0506
wants to merge
1
commit into
StabilityNexus:main
Choose a base branch
from
Atharva0506:feat/custom-404-page
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| "use client" | ||
|
|
||
| import Link from "next/link" | ||
| import Footer from "@/components/footer" | ||
| import { Home } from "lucide-react" | ||
|
|
||
| export default function NotFound() { | ||
| return ( | ||
| <div className="min-h-screen bg-gradient-to-br from-green-50 via-yellow-50 to-[#FFC517]/10 flex flex-col"> | ||
| {/* Header */} | ||
| <header className="border-b border-gradient-to-r from-[#228B22]/20 to-[#FFBF00]/20 bg-white/90 backdrop-blur-sm sticky top-0 z-50 shadow-sm"> | ||
| <div className="max-w-6xl mx-auto px-4 py-4 md:py-6 flex flex-col sm:flex-row justify-between items-center gap-4"> | ||
| <div className="text-center sm:text-left"> | ||
| <Link href="/" className="hover:opacity-80 transition-opacity"> | ||
| <h1 className="text-3xl sm:text-4xl md:text-5xl font-bold font-playfair bg-gradient-to-r from-[#228B22] via-[#5A981A] via-[#91A511] via-[#ADAC0D] via-[#E4B905] to-[#FFBF00] bg-clip-text text-transparent drop-shadow-sm leading-tight pb-2"> | ||
|
Atharva0506 marked this conversation as resolved.
|
||
| Stable Viewpoints | ||
| </h1> | ||
| </Link> | ||
| <p className="text-gray-600 mt-1 md:mt-2 text-sm md:text-lg">Independent Articles about Stability</p> | ||
| </div> | ||
| <Link | ||
| href="/submit" | ||
| className="inline-flex items-center gap-2 bg-gradient-to-r from-[#228B22] to-[#91A511] hover:from-[#3E921E] hover:to-[#ADAC0D] text-white px-4 py-2 md:px-6 md:py-3 text-sm md:text-base font-semibold transition-all duration-300 shadow-lg hover:shadow-xl transform hover:-translate-y-0.5 whitespace-nowrap" | ||
| > | ||
| <span className="hidden sm:inline">Submit an Article</span> | ||
| <span className="sm:hidden">Submit</span> | ||
| </Link> | ||
| </div> | ||
| </header> | ||
|
|
||
| {/* Main Content */} | ||
| <main className="flex-grow flex items-center justify-center p-4"> | ||
| <div className="text-center space-y-6 max-w-lg mx-auto bg-white/60 backdrop-blur-md p-8 md:p-12 rounded-3xl shadow-xl border border-white/50 relative overflow-hidden"> | ||
| {/* Top accent line */} | ||
| <div className="absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-[#228B22] via-[#91A511] to-[#FFBF00]" /> | ||
|
|
||
| <div className="space-y-2"> | ||
| <h2 className="text-8xl md:text-9xl font-bold font-playfair bg-gradient-to-r from-[#228B22] to-[#FFBF00] bg-clip-text text-transparent drop-shadow-sm"> | ||
| 404 | ||
| </h2> | ||
| <h3 className="text-2xl md:text-3xl font-semibold text-gray-800"> | ||
| Page Not Found | ||
| </h3> | ||
|
Atharva0506 marked this conversation as resolved.
|
||
| </div> | ||
|
|
||
| <p className="text-gray-600 text-lg"> | ||
| Sorry, we couldn't find the page you're looking for. It might have been moved, renamed, or doesn't exist. | ||
| </p> | ||
|
|
||
| <div className="pt-6 flex justify-center"> | ||
| <Link | ||
| href="/" | ||
| className="inline-flex items-center gap-2 justify-center w-full sm:w-auto px-8 py-3 text-base font-bold text-white transition-all duration-300 bg-gradient-to-r from-[#228B22] to-[#91A511] hover:from-[#3E921E] hover:to-[#ADAC0D] rounded-lg shadow-md hover:shadow-lg transform hover:-translate-y-0.5 focus:outline-none focus:ring-2 focus:ring-[#228B22] focus:ring-offset-2" | ||
| > | ||
| <Home className="w-5 h-5" /> | ||
| <span>Go to Homepage</span> | ||
| </Link> | ||
| </div> | ||
| </div> | ||
| </main> | ||
|
|
||
| <Footer /> | ||
| </div> | ||
| ) | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.