Skip to content

Commit

Permalink
feat: 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitgrace committed Sep 20, 2024
1 parent c4696ad commit f02b618
Show file tree
Hide file tree
Showing 2 changed files with 384 additions and 0 deletions.
28 changes: 28 additions & 0 deletions app/(routes)/(main)/blog/error.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'use client'

import IsometricHandler from "@/components/isometric-handler"
import Svg404 from '@/assets/svgs/404.svg'
import { usePathname } from "next/navigation"
import { Button } from "@/components/ui/button"
import PencilIcon from "@/components/icons/pencil"
import Link from "next/link"

export default function Error() {
const pathname = usePathname()

return (
<div className="size-full flex flex-col gap-5 justify-center">
<IsometricHandler svg={<Svg404 />} />
<div className="flex flex-col gap-2">
<h2 className="text-3xl font-bold">
Page not found
<span className="text-primary">.</span>
</h2>
<p className="text-muted-foreground">path: {pathname}</p>
<Link href="/blog">
<Button className="w-max gap-2">See all Posts <PencilIcon variant="solid" className="size-3" /></Button>
</Link>
</div>
</div>
)
}
356 changes: 356 additions & 0 deletions assets/svgs/404.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f02b618

Please sign in to comment.