Skip to content

Commit daee95f

Browse files
feat(ui): polish error page when 404 (#943)
Adding link to home when it's 404 error. ![Capture d’écran](https://github.com/user-attachments/assets/9a748d33-5135-4100-978a-f30d3067fcac)
1 parent 9bc0ead commit daee95f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

frontend/routes/_error.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,18 @@ export default function Error({ error }: { error: unknown }) {
1717
/>
1818
<div class="w-full overflow-x-hidden relative flex justify-between flex-col flex-wrap">
1919
<div class="flex-top">
20-
<header class="text-center px-8 py-[10vh]">
20+
<header class="text-center px-8 py-[15vh]">
2121
<h1 class="font-extrabold text-5xl leading-10 tracking-tight text-gray-900">
2222
{error.status}
2323
</h1>
2424
<h2 class="mt-4 sm:mt-5 font-light text-2xl text-center leading-tight text-gray-900">
2525
{error.message}
2626
</h2>
27+
{error.status === 404 && (
28+
<a class="button-primary mt-4" href="/">
29+
Get back to safety
30+
</a>
31+
)}
2732
</header>
2833
</div>
2934
</div>

0 commit comments

Comments
 (0)