Files
lixiyu-net/pages/404.tsx

34 lines
1.2 KiB
TypeScript
Raw Normal View History

import { ContentContainer, Page } from "@/components/layouts";
2024-01-08 20:26:32 +08:00
import { Button } from "@/components/ui/button";
2023-12-25 17:21:39 +08:00
import { Footer } from "@/components/utils/Footer";
import { NavBar } from "@/components/utils/NavBar";
2023-12-29 20:07:19 +08:00
import { fontSourceSerifScreenCN } from "@/styles/font";
2023-12-25 17:21:39 +08:00
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>
<div className="flex flex-col justify-center">
<TfiFaceSad className="mx-auto my-4" size={"6em"} />
<p className="mx-auto my-3 text-center text-2xl font-bold">{"404 NOT FOUND"}</p>
2023-12-29 20:07:19 +08:00
<p className={`${fontSourceSerifScreenCN.className} mx-auto my-3 text-center text-xl`}>
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-01-08 20:26:32 +08:00
<Button onClick={handleGoBack} className="font-bold">
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>
);
}