feat: 404 page

This commit is contained in:
afiqzudinhadi 2025-06-10 09:51:12 +08:00
parent a91b923c88
commit 114a998719

28
app/routes/$slug.tsx Normal file
View file

@ -0,0 +1,28 @@
export default function NotFound() {
return (
<div
style={{
minHeight: "100vh",
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
background: "#f8fafc",
color: "#1e293b",
}}
>
<h1 style={{ fontSize: "4rem", fontWeight: "bold" }}>404</h1>
<p style={{ fontSize: "1.5rem" }}>Page Not Found</p>
<a
href="/"
style={{
marginTop: "2rem",
color: "#2563eb",
textDecoration: "underline",
}}
>
Go back home
</a>
</div>
);
}