diff --git a/src/app/[locale]/statistics/page.tsx b/src/app/[locale]/statistics/page.tsx
index a4a2868..763bebf 100644
--- a/src/app/[locale]/statistics/page.tsx
+++ b/src/app/[locale]/statistics/page.tsx
@@ -4,11 +4,17 @@ import StatisticsTable from "@/widgets/tables/StatisticsTable/StatisticsTable";
import { Metadata } from "next";
import BreadCrumbs from "@/features/BreadCrumbs/BreadCrumbs";
-export const metadata: Metadata = {
- title: "KG ROAD | Статистика",
- description: "Страница статистики KG ROAD",
-};
-
+export async function generateMetadata({
+ searchParams,
+}: {
+ searchParams: { "поиск-населенного-пункта": string };
+}): Promise
{
+ return {
+ title: "KG ROAD | Статистика",
+ description: `Статистика по ${searchParams["поиск-населенного-пункта"]} KG ROAD`,
+ keywords: ["Бишкек", "Чуй", "Кыргызстан", "Дороги"],
+ };
+}
const Statistics = ({
searchParams,
}: {
diff --git a/src/app/[locale]/volunteers/page.tsx b/src/app/[locale]/volunteers/page.tsx
index 9f2c50e..d5ed4ac 100644
--- a/src/app/[locale]/volunteers/page.tsx
+++ b/src/app/[locale]/volunteers/page.tsx
@@ -6,7 +6,7 @@ import BreadCrumbs from "@/features/BreadCrumbs/BreadCrumbs";
export const metadata: Metadata = {
title: "KG ROAD | Волонтеры",
- description: "Страница волонтеров KG ROAD",
+ description: "Страница лучших волонтеров Кыргызской Республики!",
};
const Volunteers = () => {
diff --git a/src/app/[locale]/globals.scss b/src/app/globals.scss
similarity index 100%
rename from src/app/[locale]/globals.scss
rename to src/app/globals.scss
diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx
index 23405db..fd13021 100644
--- a/src/app/not-found.tsx
+++ b/src/app/not-found.tsx
@@ -1,12 +1,14 @@
"use client";
-import Error from "next/error";
+import NotFound from "@/widgets/NotFound/NotFound";
+import "./globals.scss";
+import "@/shared/fonts/fonts.scss";
-export default function NotFound() {
+export default function NotFoundPage() {
return (
-
+
);
diff --git a/src/entities/NewsCard/NewsCard.tsx b/src/entities/NewsCard/NewsCard.tsx
index 43ba62b..1d866d2 100644
--- a/src/entities/NewsCard/NewsCard.tsx
+++ b/src/entities/NewsCard/NewsCard.tsx
@@ -61,7 +61,7 @@ const NewsCard: React.FC = ({
diff --git a/src/features/BreadCrumbs/BreadCrumbs.tsx b/src/features/BreadCrumbs/BreadCrumbs.tsx
index d6ca14b..e421cb0 100644
--- a/src/features/BreadCrumbs/BreadCrumbs.tsx
+++ b/src/features/BreadCrumbs/BreadCrumbs.tsx
@@ -14,7 +14,7 @@ const BreadCrumbs: React.FC = ({
homeRequired,
}: IBreadcrumbsProps) => {
const pathname = usePathname();
- const query = useSearchParams().get("title");
+ const query = useSearchParams().get("новость");
const routes = pathname.split("/").filter((route) => route !== "");
const tRoutes: Record = {
"about-us": "О нас",
diff --git a/src/widgets/NotFound/NotFound.scss b/src/widgets/NotFound/NotFound.scss
new file mode 100644
index 0000000..8cfd3d5
--- /dev/null
+++ b/src/widgets/NotFound/NotFound.scss
@@ -0,0 +1,51 @@
+.not-found {
+ padding: 16px;
+ margin-bottom: 200px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+
+ img {
+ width: 100%;
+ height: 497px;
+ aspect-ratio: 1 / 1;
+ }
+
+ div {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 16px;
+ text-align: center;
+
+ h2 {
+ color: rgb(11, 31, 51);
+ font-size: 20px;
+ font-weight: 800;
+ line-height: 24px;
+ }
+
+ p {
+ color: rgb(131, 130, 130);
+ font-size: 20px;
+ font-weight: 400;
+ line-height: 24px;
+ }
+ }
+
+ a {
+ max-width: 320px;
+ width: 100%;
+ height: 55px;
+ margin-top: 62px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: rgb(255, 255, 255);
+ font-size: 20px;
+ font-weight: 800;
+ line-height: 24px;
+ border-radius: 13px;
+ background-color: rgb(57, 152, 232);
+ }
+}
diff --git a/src/widgets/NotFound/NotFound.tsx b/src/widgets/NotFound/NotFound.tsx
new file mode 100644
index 0000000..f4d3313
--- /dev/null
+++ b/src/widgets/NotFound/NotFound.tsx
@@ -0,0 +1,21 @@
+import Link from "next/link";
+import not_found from "./assets/not-found.svg";
+import "./NotFound.scss";
+
+const NotFound = () => {
+ return (
+
+
+
+
Страница не найдена (404)
+
+ Неправильно набран адрес или такой страницы не существует.
+
+
+
+
На главную
+
+ );
+};
+
+export default NotFound;
diff --git a/src/widgets/NotFound/assets/not-found.svg b/src/widgets/NotFound/assets/not-found.svg
new file mode 100644
index 0000000..5c5309a
--- /dev/null
+++ b/src/widgets/NotFound/assets/not-found.svg
@@ -0,0 +1,16 @@
+
diff --git a/src/widgets/forms/SignInForm/SignInForm.tsx b/src/widgets/forms/SignInForm/SignInForm.tsx
index 2f9b431..71a84a2 100644
--- a/src/widgets/forms/SignInForm/SignInForm.tsx
+++ b/src/widgets/forms/SignInForm/SignInForm.tsx
@@ -48,8 +48,6 @@ const SignInForm = () => {
setLoader(false);
- console.log(res);
-
if (res?.ok && !res.error) {
router.push("/profile/personal");
} else if (res?.status.toString().slice(0, 1) === "4") {