404 sayfası eklendi

This commit is contained in:
Yusuf İpek
2021-08-13 16:24:25 +03:00
parent 2f74cdf1f1
commit 87bb65e089
10 changed files with 144 additions and 77 deletions
+27
View File
@@ -0,0 +1,27 @@
import Link from "next/link";
import Head from "next/head";
import { useEffect } from "react";
import { useRouter } from "next/router";
export default function NotFound() {
const router = useRouter();
useEffect(() => {
setTimeout(() => {
router.push("/");
}, 3000);
}, []);
return (
<div className="not-found">
<Head>
<title>404</title>
</Head>
<h1 className="heading-1">404</h1>
<h2 className="heading-2">Aradığınız sayfa bulunamadı!</h2>
<p>
Sizi <Link href="/">anasayfaya</Link> yönlendiriyorum.
</p>
</div>
);
}