-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a07c40c
commit c0d1094
Showing
2 changed files
with
28 additions
and
0 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
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,23 @@ | ||
import { useEffect } from "react"; | ||
import { Link } from "react-router-dom"; | ||
|
||
const NotFound = () => { | ||
useEffect(() => { | ||
document.getElementsByTagName("title")[0].innerText = "404 - Nkhili CSS"; | ||
}, []); | ||
|
||
return ( | ||
<div className="flex justify-center items-center flex-column h-screen capitalize gap-10"> | ||
<h1 className="text-9xl text-white">404</h1> | ||
<span className="text-light-periwinkle">page not found</span> | ||
<Link | ||
className="px-4 text-black py-2 bg-primary rounded font-medium" | ||
to="/" | ||
> | ||
go home | ||
</Link> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NotFound; |