This commit is contained in:
Alibek 2024-02-19 17:20:52 +06:00
parent 76b7a8e6b4
commit d77846bbbb
13 changed files with 72 additions and 9 deletions

View File

@ -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 (

View File

@ -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"),

BIN
src/app/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -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<{

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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 (

View File

@ -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 (

View File

@ -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,

View File

@ -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 (

View File

@ -35,9 +35,9 @@ const MapSection: React.FC<IMapSectionProps> = 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) {