From 81de0b4355fc10f95006dbdcc8033ef45c7a376c Mon Sep 17 00:00:00 2001 From: Gerald Leban Date: Mon, 5 Oct 2026 16:17:44 +0200 Subject: [PATCH] feat(errors): redesign 404 page with neobrutalism style --- inertia/pages/errors/not_found.tsx | 40 +++++++++++++++--------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/inertia/pages/errors/not_found.tsx b/inertia/pages/errors/not_found.tsx index 2957f1a..44b587e 100644 --- a/inertia/pages/errors/not_found.tsx +++ b/inertia/pages/errors/not_found.tsx @@ -1,5 +1,6 @@ import BaseLayout from '~/layouts/base' import { Link } from '@adonisjs/inertia/react' +import { Button } from '~/components/ui/button' interface NotFoundProps { handle?: string @@ -9,28 +10,27 @@ export default function NotFound({ handle }: NotFoundProps) { const displayHandle = handle ? (handle.startsWith('@') ? handle : `@${handle}`) : null return ( -
-
-
- - 404 - +
+
+
+ 404
-
- {displayHandle ? 'Nobody by that name' : 'Not found.'} - {!displayHandle && That route hasn't been built yet.} +
+

+ {displayHandle ? 'Nobody by that name' : 'Not found'} +

+

+ {displayHandle + ? `${displayHandle} does not resolve to an account. The handle may be mistyped, or its owner may have changed it.` + : "The page you tried to reach doesn't exist. Check the URL or head back home."} +

+
+ +
-

- {displayHandle - ? `${displayHandle} does not resolve to an account. The handle may be mistyped, or its owner may have changed it.` - : "The page you tried to reach doesn't exist. Check the URL or head back home."} -

-
- - Back to the feed - -
-
+
) } -- 2.54.0