|
1 | 1 | import type { FC } from "react"; |
2 | | -import { Link } from "react-router-dom"; |
| 2 | +import { Link, useLocation } from "react-router-dom"; |
3 | 3 | import { usePageTitle } from "../lib/usePageTitle"; |
4 | 4 |
|
5 | 5 | export const NotFoundPage: FC = () => { |
| 6 | + const { pathname } = useLocation(); |
6 | 7 | usePageTitle("not found"); |
7 | 8 | return ( |
8 | | - <div className="mx-auto max-w-md rounded-lg border border-coder-smoke bg-coder-cinder p-8 text-center"> |
9 | | - <div className="font-mono text-5xl font-semibold text-coder-neutral-200"> |
| 9 | + <div className="mx-auto flex max-w-xl flex-col items-center gap-6 rounded-lg border border-coder-smoke bg-coder-cinder p-10 text-center"> |
| 10 | + <div className="font-mono text-7xl font-semibold tracking-tight text-coder-neutral-200"> |
10 | 11 | 404 |
11 | 12 | </div> |
12 | | - <p className="mt-3 text-sm text-coder-neutral-400"> |
13 | | - That path doesn't exist in this report. |
14 | | - </p> |
15 | | - <div className="mt-4 flex flex-col items-center gap-2 text-sm"> |
| 13 | + <div className="space-y-2"> |
| 14 | + <h1 className="text-xl font-semibold tracking-tight text-coder-neutral-100"> |
| 15 | + That page isn't part of this scan report. |
| 16 | + </h1> |
| 17 | + <p className="text-sm text-coder-neutral-400"> |
| 18 | + We couldn't find{" "} |
| 19 | + <span className="rounded bg-coder-smoke/60 px-1.5 py-0.5 font-mono text-xs text-coder-neutral-200"> |
| 20 | + {pathname} |
| 21 | + </span> |
| 22 | + . It may have moved, been renamed, or never existed. |
| 23 | + </p> |
| 24 | + </div> |
| 25 | + <div className="flex flex-wrap items-center justify-center gap-x-5 gap-y-2 text-sm"> |
16 | 26 | <Link to="/" className="text-coder-sky hover:underline"> |
17 | | - Back to the latest scan |
| 27 | + Latest scan |
18 | 28 | </Link> |
19 | | - <Link |
20 | | - to="/history" |
21 | | - className="text-xs text-coder-neutral-400 hover:text-coder-neutral-100" |
22 | | - > |
23 | | - or browse the scan history |
| 29 | + <Link to="/history" className="text-coder-sky hover:underline"> |
| 30 | + Scan history |
24 | 31 | </Link> |
| 32 | + <a |
| 33 | + href={`${import.meta.env.BASE_URL}latest.json`} |
| 34 | + className="text-coder-sky hover:underline" |
| 35 | + > |
| 36 | + Raw JSON |
| 37 | + </a> |
| 38 | + <a |
| 39 | + href="https://github.com/coder/coder-skill-scanner" |
| 40 | + className="text-coder-sky hover:underline" |
| 41 | + rel="noopener noreferrer" |
| 42 | + target="_blank" |
| 43 | + > |
| 44 | + Source |
| 45 | + </a> |
25 | 46 | </div> |
26 | 47 | </div> |
27 | 48 | ); |
|
0 commit comments