File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+ import { useRouter } from "next/router" ;
3+ import ArrowUturnLeftIcon from "@heroicons/react/24/solid/ArrowUturnLeftIcon" ;
4+ import HomeModernIcon from "@heroicons/react/24/solid/HomeModernIcon" ;
5+
6+ import { Page } from "@/types/page" ;
7+ import LinkButton from "@/components/controls/LinkButton" ;
8+ import Button from "@/components/controls/Button" ;
9+
10+ const NotFound : Page = ( { } ) => {
11+ const router = useRouter ( ) ;
12+
13+ return (
14+ < >
15+ < main className = "flex items-center justify-center flex-1 w-full" aria-labelledby = "not-found" >
16+ < div className = "flex flex-col gap-2 p-4 text-center rounded-md shadow shadow-black/25 bg-primary/25" >
17+ < h1 id = "not-found" className = "text-5xl text-secondary" > Not Found.</ h1 >
18+ < p > There are no commits to be found here!</ p >
19+ < div className = "grid grid-cols-2 gap-2 mt-4" >
20+ < LinkButton href = "/" color = "secondary" >
21+ < HomeModernIcon className = "w-4" />
22+ Home
23+ </ LinkButton >
24+ < Button onClick = { ( ) => router . back ( ) } color = "secondary" >
25+ < ArrowUturnLeftIcon className = "w-4" />
26+ Back
27+ </ Button >
28+ </ div >
29+ </ div >
30+ </ main >
31+ </ >
32+ ) ;
33+ } ;
34+
35+ export default NotFound ;
You can’t perform that action at this time.
0 commit comments