1
0
Fork 0

feat: 404 page

fix-1
Paul Makles 2023-07-25 12:50:47 +01:00
parent 91e58d42f2
commit f499c0179e
No known key found for this signature in database
GPG Key ID: 5059F398521BB0F6
3 changed files with 30 additions and 0 deletions

16
app/not-found.tsx Normal file
View File

@ -0,0 +1,16 @@
import { NavigateBack } from "@/components/common/NavigateBack";
import Image from "next/image";
export default function NotFound() {
return (
<div className="flex flex-col justify-center items-center gap-4 h-[480px]">
<Image
width={240}
height={120}
src="/404.jpg"
alt="pinkie pie: http error 404 page not found"
/>
<NavigateBack />
</div>
);
}

View File

@ -0,0 +1,14 @@
"use client";
import { useRouter } from "next/navigation";
import { Button } from "../ui/button";
export function NavigateBack() {
const router = useRouter();
return (
<Button variant="secondary" onClick={() => router.back()}>
Go back
</Button>
);
}

BIN
public/404.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB