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 "./AboutUs.scss";
import Image from "next/image"; import Image from "next/image";
import header from "./assets/header.svg"; import header from "./assets/header.svg";
import { Metadata } from "next";
export const metadata: Metadata = {
title: "KG ROAD | О нас",
description:
'Страница "О Нас" Kyrgyzstan Transperency International',
};
const AboutUs = () => { const AboutUs = () => {
return ( return (

View File

@ -1,6 +1,13 @@
import Typography from "@/shared/ui/components/Typography/Typography"; import Typography from "@/shared/ui/components/Typography/Typography";
import "./CreateReport.scss"; import "./CreateReport.scss";
import dynamic from "next/dynamic"; import dynamic from "next/dynamic";
import { Metadata } from "next";
export const metadata: Metadata = {
title: "KG ROAD | Написать обращение",
description:
"Написать обращение Kyrgyzstan Transperency International",
};
const DynamicForm = dynamic( const DynamicForm = dynamic(
() => import("@/widgets/ReportForm/ReportForm"), () => 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 Navbar from "@/widgets/Navbar/Navbar";
import Footer from "@/widgets/Footer/Footer"; import Footer from "@/widgets/Footer/Footer";
export const metadata: Metadata = {
title: "Kg Road",
description: "Road in KR",
};
export default function RootLayout({ export default function RootLayout({
children, children,
}: Readonly<{ }: Readonly<{

View File

@ -3,6 +3,13 @@ import Typography from "@/shared/ui/components/Typography/Typography";
import { apiInstance } from "@/shared/config/apiConfig"; import { apiInstance } from "@/shared/config/apiConfig";
import { INewsList } from "@/shared/types/news-type"; import { INewsList } from "@/shared/types/news-type";
import NewsList from "@/widgets/NewsList/NewsList"; import NewsList from "@/widgets/NewsList/NewsList";
import { Metadata } from "next";
export const metadata: Metadata = {
title: "KG ROAD | Новости",
description:
"Страница новостей Kyrgyzstan Transperency International",
};
const News = ({ const News = ({
searchParams, searchParams,

View File

@ -1,9 +1,15 @@
import dynamic from "next/dynamic";
import Header from "@/widgets/Header/Header"; import Header from "@/widgets/Header/Header";
import StatisticsSection from "@/widgets/StatisticsSection/StatisticsSection"; import StatisticsSection from "@/widgets/StatisticsSection/StatisticsSection";
import RatingSection from "@/widgets/RatingSection/RatingSection"; import RatingSection from "@/widgets/RatingSection/RatingSection";
import NewsSection from "@/widgets/NewsSection/NewsSection"; import NewsSection from "@/widgets/NewsSection/NewsSection";
import MapSection from "@/widgets/MapSection/MapSection"; import MapSection from "@/widgets/MapSection/MapSection";
import { Metadata } from "next";
export const metadata: Metadata = {
title: "KG ROAD | Главная",
description:
"Главная страница Kyrgyzstan Transperency International",
};
const Home = async ({ const Home = async ({
searchParams, searchParams,

View File

@ -7,6 +7,13 @@ import { apiInstance } from "@/shared/config/apiConfig";
import { getServerSession } from "next-auth"; import { getServerSession } from "next-auth";
import { authConfig } from "@/shared/config/authConfig"; import { authConfig } from "@/shared/config/authConfig";
import { IProfile } from "@/shared/types/profile-type"; 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 ({ const Profile = async ({
children, children,

View File

@ -12,6 +12,13 @@ import calendar from "./icons/calendar.svg";
import map_pin from "./icons/map-pin.svg"; import map_pin from "./icons/map-pin.svg";
import def_image from "./icons/def_image.svg"; import def_image from "./icons/def_image.svg";
import ReviewSection from "@/widgets/ReviewSection/ReviewSection"; import ReviewSection from "@/widgets/ReviewSection/ReviewSection";
import { Metadata } from "next";
export const metadata: Metadata = {
title: "KG ROAD | Обращение",
description:
"Страница обращения Kyrgyzstan Transperency International",
};
const ReportDetails = async ({ const ReportDetails = async ({
params, params,

View File

@ -3,6 +3,12 @@ import Image from "next/image";
import sign_in_icon from "./icons/sign-in_icon.svg"; import sign_in_icon from "./icons/sign-in_icon.svg";
import SignInForm from "@/widgets/SignInForm/SignInForm"; import SignInForm from "@/widgets/SignInForm/SignInForm";
import Link from "next/link"; import Link from "next/link";
import { Metadata } from "next";
export const metadata: Metadata = {
title: "KG ROAD | Вход",
description: "Страница входа Kyrgyzstan Transperency International",
};
const SignIn = () => { const SignIn = () => {
return ( return (

View File

@ -3,6 +3,13 @@ import Image from "next/image";
import flag from "./icons/flag.svg"; import flag from "./icons/flag.svg";
import Link from "next/link"; import Link from "next/link";
import SignUpForm from "@/widgets/SignUpForm/SignUpForm"; import SignUpForm from "@/widgets/SignUpForm/SignUpForm";
import { Metadata } from "next";
export const metadata: Metadata = {
title: "KG ROAD | Регистрация",
description:
"Страница регистрации Kyrgyzstan Transperency International",
};
const SignUp = () => { const SignUp = () => {
return ( return (

View File

@ -4,6 +4,13 @@ import { apiInstance } from "@/shared/config/apiConfig";
import { IStatistics } from "@/shared/types/statistics-type"; import { IStatistics } from "@/shared/types/statistics-type";
import { AxiosError } from "axios"; import { AxiosError } from "axios";
import StatisticsTable from "@/widgets/StatisticsTable/StatisticsTable"; import StatisticsTable from "@/widgets/StatisticsTable/StatisticsTable";
import { Metadata } from "next";
export const metadata: Metadata = {
title: "KG ROAD | Статистика",
description:
"Страница статистики Kyrgyzstan Transperency International",
};
const Statistics = ({ const Statistics = ({
searchParams, searchParams,

View File

@ -1,6 +1,13 @@
import Typography from "@/shared/ui/components/Typography/Typography"; import Typography from "@/shared/ui/components/Typography/Typography";
import "./Volunteers.scss"; import "./Volunteers.scss";
import VolunteersTable from "@/widgets/VolunteersTable/VolunteersTable"; import VolunteersTable from "@/widgets/VolunteersTable/VolunteersTable";
import { Metadata } from "next";
export const metadata: Metadata = {
title: "KG ROAD | Волонтеры",
description:
"Страница волонтеров Kyrgyzstan Transperency International",
};
const Volunteers = () => { const Volunteers = () => {
return ( return (

View File

@ -35,9 +35,9 @@ const MapSection: React.FC<IMapSectionProps> = async ({
return res.data; return res.data;
}; };
const data = await getReports( const data =
searchParams["тип-дороги"] || "1,2,3,4,5,6" (await getReports(searchParams["тип-дороги"] || "1,2,3,4,5,6")) ||
); [];
const setCategories = (category: string) => { const setCategories = (category: string) => {
if (searchParams["тип-дороги"] === undefined) { if (searchParams["тип-дороги"] === undefined) {