2025-06-07 16:27:10 +03:30
|
|
|
import routeFactory from '@/assets/constants/routeFactory';
|
|
|
|
|
import images from '@/assets/images/images';
|
|
|
|
|
import Button from '@/components/uikit/button';
|
2025-06-07 16:36:59 +03:30
|
|
|
import { ILayoutLocaleParams } from '@/models/layout';
|
|
|
|
|
import { getTranslations } from 'next-intl/server';
|
|
|
|
|
|
|
|
|
|
export default async function NotFound({
|
|
|
|
|
params,
|
|
|
|
|
}: {
|
|
|
|
|
params: ILayoutLocaleParams;
|
|
|
|
|
}) {
|
|
|
|
|
const t = await getTranslations({ locale: params.locale });
|
|
|
|
|
const routes = routeFactory(t, params.locale);
|
2025-06-07 16:27:10 +03:30
|
|
|
|
|
|
|
|
return (
|
2025-06-08 09:25:38 +03:30
|
|
|
<div className="container mx-auto flex h-svh flex-col items-center justify-center gap-6">
|
2025-06-07 16:27:10 +03:30
|
|
|
<h2 className="text-center text-4xl md:text-[5rem]">
|
2025-06-07 16:36:59 +03:30
|
|
|
{t('pages_notFound_title')}
|
2025-06-07 16:27:10 +03:30
|
|
|
</h2>
|
|
|
|
|
<p className="text-center text-xl text-gray-300 md:text-2xl">
|
2025-06-07 16:36:59 +03:30
|
|
|
{t('pages_notFound_description')}
|
2025-06-07 16:27:10 +03:30
|
|
|
</p>
|
|
|
|
|
<div>
|
|
|
|
|
<img
|
|
|
|
|
alt="404 page"
|
|
|
|
|
src={images.notFound.src}
|
|
|
|
|
className="aspect-square"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2025-06-07 16:36:59 +03:30
|
|
|
<Button link={routes.home.route()} endIcon="showMore" className="w-fit">
|
|
|
|
|
{t('pages_notFound_button')}
|
2025-06-07 16:27:10 +03:30
|
|
|
</Button>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|