forked from administration/panel
feat: 404 page
parent
91e58d42f2
commit
f499c0179e
|
@ -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>
|
||||
);
|
||||
}
|
|
@ -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>
|
||||
);
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Loading…
Reference in New Issue