diff --git a/src/app/about-us/page.tsx b/src/app/about-us/page.tsx index 3f4925e..f5cf9f5 100644 --- a/src/app/about-us/page.tsx +++ b/src/app/about-us/page.tsx @@ -2,6 +2,13 @@ import Typography from "@/shared/ui/components/Typography/Typography"; import "./AboutUs.scss"; import Image from "next/image"; import header from "./assets/header.svg"; +import { Metadata } from "next"; + +export const metadata: Metadata = { + title: "KG ROAD | О нас", + description: + 'Страница "О Нас" Kyrgyzstan Transperency International', +}; const AboutUs = () => { return ( diff --git a/src/app/create-report/page.tsx b/src/app/create-report/page.tsx index ad5c67e..6dfba99 100644 --- a/src/app/create-report/page.tsx +++ b/src/app/create-report/page.tsx @@ -1,6 +1,13 @@ import Typography from "@/shared/ui/components/Typography/Typography"; import "./CreateReport.scss"; import dynamic from "next/dynamic"; +import { Metadata } from "next"; + +export const metadata: Metadata = { + title: "KG ROAD | Написать обращение", + description: + "Написать обращение Kyrgyzstan Transperency International", +}; const DynamicForm = dynamic( () => import("@/widgets/ReportForm/ReportForm"), diff --git a/src/app/favicon.ico b/src/app/favicon.ico new file mode 100644 index 0000000..c886e26 Binary files /dev/null and b/src/app/favicon.ico differ diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 42310dd..9bec346 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -6,11 +6,6 @@ import { Providers } from "./Providers"; import Navbar from "@/widgets/Navbar/Navbar"; import Footer from "@/widgets/Footer/Footer"; -export const metadata: Metadata = { - title: "Kg Road", - description: "Road in KR", -}; - export default function RootLayout({ children, }: Readonly<{ diff --git a/src/app/news/page.tsx b/src/app/news/page.tsx index 36d7d34..7bda94b 100644 --- a/src/app/news/page.tsx +++ b/src/app/news/page.tsx @@ -3,6 +3,13 @@ import Typography from "@/shared/ui/components/Typography/Typography"; import { apiInstance } from "@/shared/config/apiConfig"; import { INewsList } from "@/shared/types/news-type"; import NewsList from "@/widgets/NewsList/NewsList"; +import { Metadata } from "next"; + +export const metadata: Metadata = { + title: "KG ROAD | Новости", + description: + "Страница новостей Kyrgyzstan Transperency International", +}; const News = ({ searchParams, diff --git a/src/app/page.tsx b/src/app/page.tsx index 297f68f..19fa2ef 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,9 +1,15 @@ -import dynamic from "next/dynamic"; import Header from "@/widgets/Header/Header"; import StatisticsSection from "@/widgets/StatisticsSection/StatisticsSection"; import RatingSection from "@/widgets/RatingSection/RatingSection"; import NewsSection from "@/widgets/NewsSection/NewsSection"; import MapSection from "@/widgets/MapSection/MapSection"; +import { Metadata } from "next"; + +export const metadata: Metadata = { + title: "KG ROAD | Главная", + description: + "Главная страница Kyrgyzstan Transperency International", +}; const Home = async ({ searchParams, diff --git a/src/app/profile/layout.tsx b/src/app/profile/layout.tsx index e155759..0ff7938 100644 --- a/src/app/profile/layout.tsx +++ b/src/app/profile/layout.tsx @@ -7,6 +7,13 @@ import { apiInstance } from "@/shared/config/apiConfig"; import { getServerSession } from "next-auth"; import { authConfig } from "@/shared/config/authConfig"; import { IProfile } from "@/shared/types/profile-type"; +import { Metadata } from "next"; + +export const metadata: Metadata = { + title: "KG ROAD | Профиль", + description: + "Страница профиля Kyrgyzstan Transperency International", +}; const Profile = async ({ children, diff --git a/src/app/report/[id]/page.tsx b/src/app/report/[id]/page.tsx index 80cedd6..831d3da 100644 --- a/src/app/report/[id]/page.tsx +++ b/src/app/report/[id]/page.tsx @@ -12,6 +12,13 @@ import calendar from "./icons/calendar.svg"; import map_pin from "./icons/map-pin.svg"; import def_image from "./icons/def_image.svg"; import ReviewSection from "@/widgets/ReviewSection/ReviewSection"; +import { Metadata } from "next"; + +export const metadata: Metadata = { + title: "KG ROAD | Обращение", + description: + "Страница обращения Kyrgyzstan Transperency International", +}; const ReportDetails = async ({ params, diff --git a/src/app/sign-in/page.tsx b/src/app/sign-in/page.tsx index 837f527..f510e01 100644 --- a/src/app/sign-in/page.tsx +++ b/src/app/sign-in/page.tsx @@ -3,6 +3,12 @@ import Image from "next/image"; import sign_in_icon from "./icons/sign-in_icon.svg"; import SignInForm from "@/widgets/SignInForm/SignInForm"; import Link from "next/link"; +import { Metadata } from "next"; + +export const metadata: Metadata = { + title: "KG ROAD | Вход", + description: "Страница входа Kyrgyzstan Transperency International", +}; const SignIn = () => { return ( diff --git a/src/app/sign-up/page.tsx b/src/app/sign-up/page.tsx index 80b3e4d..121ad7c 100644 --- a/src/app/sign-up/page.tsx +++ b/src/app/sign-up/page.tsx @@ -3,6 +3,13 @@ import Image from "next/image"; import flag from "./icons/flag.svg"; import Link from "next/link"; import SignUpForm from "@/widgets/SignUpForm/SignUpForm"; +import { Metadata } from "next"; + +export const metadata: Metadata = { + title: "KG ROAD | Регистрация", + description: + "Страница регистрации Kyrgyzstan Transperency International", +}; const SignUp = () => { return ( diff --git a/src/app/statistics/page.tsx b/src/app/statistics/page.tsx index 105cd74..fc86ca7 100644 --- a/src/app/statistics/page.tsx +++ b/src/app/statistics/page.tsx @@ -4,6 +4,13 @@ import { apiInstance } from "@/shared/config/apiConfig"; import { IStatistics } from "@/shared/types/statistics-type"; import { AxiosError } from "axios"; import StatisticsTable from "@/widgets/StatisticsTable/StatisticsTable"; +import { Metadata } from "next"; + +export const metadata: Metadata = { + title: "KG ROAD | Статистика", + description: + "Страница статистики Kyrgyzstan Transperency International", +}; const Statistics = ({ searchParams, diff --git a/src/app/volunteers/page.tsx b/src/app/volunteers/page.tsx index 6fb084c..82fff0b 100644 --- a/src/app/volunteers/page.tsx +++ b/src/app/volunteers/page.tsx @@ -1,6 +1,13 @@ import Typography from "@/shared/ui/components/Typography/Typography"; import "./Volunteers.scss"; import VolunteersTable from "@/widgets/VolunteersTable/VolunteersTable"; +import { Metadata } from "next"; + +export const metadata: Metadata = { + title: "KG ROAD | Волонтеры", + description: + "Страница волонтеров Kyrgyzstan Transperency International", +}; const Volunteers = () => { return ( diff --git a/src/widgets/MapSection/MapSection.tsx b/src/widgets/MapSection/MapSection.tsx index 5131691..27cea8d 100644 --- a/src/widgets/MapSection/MapSection.tsx +++ b/src/widgets/MapSection/MapSection.tsx @@ -35,9 +35,9 @@ const MapSection: React.FC = async ({ return res.data; }; - const data = await getReports( - searchParams["тип-дороги"] || "1,2,3,4,5,6" - ); + const data = + (await getReports(searchParams["тип-дороги"] || "1,2,3,4,5,6")) || + []; const setCategories = (category: string) => { if (searchParams["тип-дороги"] === undefined) {