From d70298aa23a70422398eb73f4d2b90046cbce7bb Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Tue, 1 Apr 2025 11:46:32 +0300 Subject: [PATCH] little fixes --- src/app/not-found.tsx | 13 +++++++++++++ src/app/page.tsx | 16 +++++++++------- 2 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 src/app/not-found.tsx diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx new file mode 100644 index 0000000..0188c28 --- /dev/null +++ b/src/app/not-found.tsx @@ -0,0 +1,13 @@ +'use client'; +import { useEffect } from 'react'; +import { useRouter } from 'next/navigation'; + +export default function Custom404() { + const router = useRouter(); + + useEffect(() => { + router.replace('/'); // Редирект на главную + }, []); + + return null; // Или можно вернуть лоадер +} diff --git a/src/app/page.tsx b/src/app/page.tsx index 5ec8d5a..6103576 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -15,18 +15,20 @@ export default function Home() {
-
-

+
+

Sergey Krylov

-

- Fronted Software Engineer +

+ Frontend Software Engineer

-

- @ksv741 -

+ +

+ @ksv741 +

+