From ebf2d18969cb3817ced0c702c3e5d1d718834ae1 Mon Sep 17 00:00:00 2001 From: Damjan Savic Date: Sun, 25 Jan 2026 06:33:39 +0100 Subject: [PATCH] auto-claude: subtask-1-1 - Update not-found.tsx to use next-intl and match design system - Add next-intl internationalization support - Use translation keys from pages.notfound (title, description, backHome) - Change button from blue to white/zinc design system colors - Link to default locale homepage - Convert component to async for getTranslations Co-Authored-By: Claude Sonnet 4.5 --- src/app/not-found.tsx | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index 046a3f7..d1a796c 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -1,23 +1,25 @@ import Link from 'next/link'; +import { getTranslations } from 'next-intl/server'; +import { defaultLocale } from '@/i18n/config'; + +export default async function NotFound() { + const t = await getTranslations('pages.notfound'); -export default function NotFound() { return ( - - -
-

404

-

Page Not Found

-

- The page you are looking for does not exist or has been moved. -

- - Go to Homepage - -
- - +
+
+

404

+

{t('title')}

+

+ {t('description')} +

+ + {t('backHome')} + +
+
); }