diff --git a/app/components/Primitives/PageNotFoundTitle.tsx b/app/components/Primitives/PageNotFoundTitle.tsx new file mode 100644 index 0000000..919b691 --- /dev/null +++ b/app/components/Primitives/PageNotFoundTitle.tsx @@ -0,0 +1,10 @@ +import { FunctionComponent } from "react"; + +export const PageNotFoundTitle: FunctionComponent<{ className?: string }> = ({ + className, + children, +}) => { + return ( +

{children}

+ ); +}; diff --git a/app/routes/j/$id.tsx b/app/routes/j/$id.tsx index 236925c..01cbc3d 100644 --- a/app/routes/j/$id.tsx +++ b/app/routes/j/$id.tsx @@ -24,6 +24,9 @@ import { JsonTreeViewProvider } from "~/hooks/useJsonTree"; import { JsonSearchProvider } from "~/hooks/useJsonSearch"; import { LargeTitle } from "~/components/Primitives/LargeTitle"; import { Body } from "~/components/Primitives/Body"; +import { PageNotFoundTitle } from "~/components/Primitives/PageNotFoundTitle"; +import { SmallSubtitle } from "~/components/Primitives/SmallSubtitle"; +import { Logo } from "~/components/Icons/Logo"; export const loader: LoaderFunction = async ({ params, request }) => { invariant(params.id, "expected params.id"); @@ -171,8 +174,30 @@ export default function JsonDocumentRoute() { export function CatchBoundary() { const params = useParams(); return ( -
-

We couldn't find {params.id}

+
+
+
+
+ +
+ + 404 + +
+
+ + Oops, something went wrong! + + + We couldn't find the page 'https://jsonhero.io/j/{params.id}' + + + + +
+
); } diff --git a/tailwind.config.js b/tailwind.config.js index cf35692..690bc79 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -15,6 +15,8 @@ module.exports = { "5xl": "2rem", // 32px "6xl": ["2.625rem", "3rem"], // 42px "7xl": "4rem", // 64px + "8xl": "8rem", // 128px + }, extend: { height: {