-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Saasfy/global-not-found
feat: add global not-found page
- Loading branch information
Showing
3 changed files
with
73 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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,19 @@ | ||
import Link from 'next/link'; | ||
import { Button } from '@saasfy/ui/button'; | ||
|
||
export default function Component() { | ||
return ( | ||
<div className="flex flex-col items-center justify-center min-h-[30rem]"> | ||
<div className="max-w-md mx-auto text-center"> | ||
<h1 className="text-6xl font-extrabold text-gray-800 dark:text-white">404</h1> | ||
<h2 className="mt-4 text-3xl font-bold text-gray-800 dark:text-white">Page not found</h2> | ||
<p className="mt-4 text-gray-600 dark:text-gray-400"> | ||
Unfortunately, the page you are looking for does not exist. | ||
</p> | ||
<Button asChild className="mt-4"> | ||
<Link href="/">Go back to home</Link> | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains 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
This file contains 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,19 @@ | ||
import Link from 'next/link'; | ||
import { Button } from '@saasfy/ui/button'; | ||
|
||
export default function Component() { | ||
return ( | ||
<div className="flex flex-col items-center justify-center min-h-screen"> | ||
<div className="max-w-md mx-auto text-center"> | ||
<h1 className="text-6xl font-extrabold text-gray-800 dark:text-white">404</h1> | ||
<h2 className="mt-4 text-3xl font-bold text-gray-800 dark:text-white">Page not found</h2> | ||
<p className="mt-4 text-gray-600 dark:text-gray-400"> | ||
Unfortunately, the page you are looking for does not exist. | ||
</p> | ||
<Button asChild className="mt-4"> | ||
<Link href="/">Go back to home</Link> | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
} |