Files
lixiyu-net/pages/404.tsx

35 lines
1.2 KiB
TypeScript
Raw Normal View History

2024-08-16 10:41:36 +08:00
import { ContentContainer, Page } from "@/components/utils/Layout";
2024-01-08 20:26:32 +08:00
import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
2023-12-25 17:21:39 +08:00
import { Footer } from "@/components/utils/Footer";
import { NavBar } from "@/components/utils/NavBar";
import { TfiFaceSad } from "react-icons/tfi";
export default function NotFoundPage() {
const handleGoBack = () => {
if (window == null) return;
2023-12-25 17:21:39 +08:00
window.history.back();
};
return (
<Page>
<NavBar />
2023-12-25 17:21:39 +08:00
<ContentContainer>
<h2 className={"caption-font my-5 flex justify-center font-bold text-2xl"}>{"404 NOT FOUND"}</h2>
<Separator />
<div className="my-5 flex flex-col justify-center">
2023-12-25 17:21:39 +08:00
<TfiFaceSad className="mx-auto my-4" size={"6em"} />
<p className={"mx-auto my-3 text-center text-xl content-font"}>
2023-12-25 17:21:39 +08:00
{"This page does not exist for it might be removed or closed."}
</p>
<div className="my-5 flex justify-center">
2024-04-03 22:08:27 +08:00
<Button className="font-bold" onClick={handleGoBack}>
2023-12-25 17:21:39 +08:00
{"GO BACK"}
2024-01-08 20:26:32 +08:00
</Button>
2023-12-25 17:21:39 +08:00
</div>
</div>
</ContentContainer>
<Footer />
</Page>
);
}