diff --git a/package-lock.json b/package-lock.json
index 468ec67..e84b169 100755
--- a/package-lock.json
+++ b/package-lock.json
@@ -37,6 +37,7 @@
"react-chartjs-2": "^5.2.0",
"react-dom": "^18.3.1",
"react-fast-marquee": "^1.6.5",
+ "react-helmet": "^6.1.0",
"react-hook-form": "^7.54.2",
"react-modal": "^3.16.3",
"react-router": "^7.1.1",
@@ -55,6 +56,7 @@
"@types/lodash": "^4.17.16",
"@types/react": "^18.3.6",
"@types/react-dom": "^18.3.0",
+ "@types/react-helmet": "^6.1.11",
"@types/react-modal": "^3.16.3",
"@types/react-router-hash-link": "^2.4.9",
"@types/sass-loader": "^8.0.8",
@@ -2201,6 +2203,15 @@
"@types/react": "^18.0.0"
}
},
+ "node_modules/@types/react-helmet": {
+ "version": "6.1.11",
+ "resolved": "https://registry.npmjs.org/@types/react-helmet/-/react-helmet-6.1.11.tgz",
+ "integrity": "sha512-0QcdGLddTERotCXo3VFlUSWO3ztraw8nZ6e3zJSgG7apwV5xt+pJUS8ewPBqT4NYB1optGLprNQzFleIY84u/g==",
+ "dev": true,
+ "dependencies": {
+ "@types/react": "*"
+ }
+ },
"node_modules/@types/react-modal": {
"version": "3.16.3",
"resolved": "https://registry.npmjs.org/@types/react-modal/-/react-modal-3.16.3.tgz",
@@ -7912,6 +7923,11 @@
"react": "^18.3.1"
}
},
+ "node_modules/react-fast-compare": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz",
+ "integrity": "sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ=="
+ },
"node_modules/react-fast-marquee": {
"version": "1.6.5",
"resolved": "https://registry.npmjs.org/react-fast-marquee/-/react-fast-marquee-1.6.5.tgz",
@@ -7922,6 +7938,20 @@
"react-dom": ">= 16.8.0 || ^18.0.0"
}
},
+ "node_modules/react-helmet": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/react-helmet/-/react-helmet-6.1.0.tgz",
+ "integrity": "sha512-4uMzEY9nlDlgxr61NL3XbKRy1hEkXmKNXhjbAIOVw5vcFrsdYbH2FEwcNyWvWinl103nXgzYNlns9ca+8kFiWw==",
+ "dependencies": {
+ "object-assign": "^4.1.1",
+ "prop-types": "^15.7.2",
+ "react-fast-compare": "^3.1.1",
+ "react-side-effect": "^2.1.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.3.0"
+ }
+ },
"node_modules/react-hook-form": {
"version": "7.56.1",
"resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.56.1.tgz",
@@ -8050,6 +8080,14 @@
"react-router-dom": ">=4"
}
},
+ "node_modules/react-side-effect": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/react-side-effect/-/react-side-effect-2.1.2.tgz",
+ "integrity": "sha512-PVjOcvVOyIILrYoyGEpDN3vmYNLdy1CajSFNt4TDsVQC5KpTijDvWVoR+/7Rz2xT978D8/ZtFceXxzsPwZEDvw==",
+ "peerDependencies": {
+ "react": "^16.3.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
"node_modules/react-transition-group": {
"version": "4.4.5",
"resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz",
diff --git a/package.json b/package.json
index edcbaa0..aa00298 100755
--- a/package.json
+++ b/package.json
@@ -39,6 +39,7 @@
"react-chartjs-2": "^5.2.0",
"react-dom": "^18.3.1",
"react-fast-marquee": "^1.6.5",
+ "react-helmet": "^6.1.0",
"react-hook-form": "^7.54.2",
"react-modal": "^3.16.3",
"react-router": "^7.1.1",
@@ -57,6 +58,7 @@
"@types/lodash": "^4.17.16",
"@types/react": "^18.3.6",
"@types/react-dom": "^18.3.0",
+ "@types/react-helmet": "^6.1.11",
"@types/react-modal": "^3.16.3",
"@types/react-router-hash-link": "^2.4.9",
"@types/sass-loader": "^8.0.8",
diff --git a/src/pages/AboutUs/AboutUs.tsx b/src/pages/AboutUs/AboutUs.tsx
index c9b8a9d..bab3bd3 100644
--- a/src/pages/AboutUs/AboutUs.tsx
+++ b/src/pages/AboutUs/AboutUs.tsx
@@ -1,11 +1,26 @@
import { CategoryPage } from "@/widgets/CategoryPage/CategoryPage";
import Team from "@/widgets/Team";
import PhotoGallery from "@/widgets/PhotoGallery";
+import { Helmet } from "react-helmet";
export default function AboutUs() {
- return <>
-
- < Team />
- < PhotoGallery />
- >
+ return (
+ <>
+
+ О нас | СКБ "Компьютерное инновационное творчество"
+
+
+
+
+
+
+
+ >
+ );
}
diff --git a/src/pages/Contact/Contact.tsx b/src/pages/Contact/Contact.tsx
index a34aa2e..4aff8ae 100644
--- a/src/pages/Contact/Contact.tsx
+++ b/src/pages/Contact/Contact.tsx
@@ -1,4 +1,5 @@
import { YMaps, Map, Placemark } from "@pbe/react-yandex-maps";
+import { Helmet } from "react-helmet";
import "./Contact.styles.scss";
import ContactForm from "@/widgets/ContactForm";
@@ -6,6 +7,18 @@ import ContactForm from "@/widgets/ContactForm";
function Contact() {
return (
+
+ Контакты | СКБ "Компьютерное инновационное творчество"
+
+
+
+
Контакты
diff --git a/src/pages/MainPage/ui/MainPage/MainPage.tsx b/src/pages/MainPage/ui/MainPage/MainPage.tsx
index 09eef6c..c3d9500 100644
--- a/src/pages/MainPage/ui/MainPage/MainPage.tsx
+++ b/src/pages/MainPage/ui/MainPage/MainPage.tsx
@@ -5,12 +5,8 @@ import { RootContext } from "@/app/Layout/Root";
import Partners from "@/widgets/Partners";
import Gallery from "@/pages/MainPage/ui/components/Gallery";
import ContactUs from "@/widgets/ContactUs";
-
-import {
- LabsList,
- NewsList,
- ProjectsList,
-} from "@/widgets/CardList/CardList";
+import { Helmet } from "react-helmet";
+import { LabsList, NewsList, ProjectsList } from "@/widgets/CardList/CardList";
import Numbers from "@/widgets/Numbers";
const MainPage = () => {
@@ -30,6 +26,19 @@ const MainPage = () => {
}, []);
return (
+
+ СКБ "Компьютерное инновационное творчество"
+
+
+
+
+
setRef(element)}>
Думай иначе, будь креативным!
diff --git a/src/pages/NewsItem/NewsItem.tsx b/src/pages/NewsItem/NewsItem.tsx
index 4c9818d..e50e24b 100644
--- a/src/pages/NewsItem/NewsItem.tsx
+++ b/src/pages/NewsItem/NewsItem.tsx
@@ -1,8 +1,9 @@
import { useParams } from "react-router-dom";
+import { Helmet } from "react-helmet";
import extLink from "@/shared/assets/images/extLink.svg";
import views from "@/shared/assets/images/views.svg";
-import {SkeletonPost} from "@/shared/Components/SkeletonPost/SkeletonPost";
+import { SkeletonPost } from "@/shared/Components/SkeletonPost/SkeletonPost";
import "./NewsItem.styles.scss";
import { useNewsById } from "@/modules/news/hooks/useNewsById";
@@ -31,7 +32,19 @@ function NewsItem() {
))}
);
- if (isError) return
Ошибка при загрузке новости;
+ if (isError)
+ return (
+ <>
+
+
+ Ошибка загрузки новости | СКБ "Компьютерное инновационное
+ творчество"
+
+
+
+
Ошибка при загрузке новости
+ >
+ );
const newsUrl = `${vkWallUrl}_${newsID}`;
@@ -39,6 +52,26 @@ function NewsItem() {
<>
{news && (
<>
+
+
+ {news.heading || "Новость"} | СКБ "Компьютерное инновационное
+ творчество"
+
+ ]*>/g, "").slice(0, 160) ||
+ "Новость СКБ 'Компьютерное инновационное творчество' ИКТИБ ЮФУ"
+ }
+ />
+
+
+
{news.heading}
diff --git a/src/pages/NotFound/NotFoundPage.tsx b/src/pages/NotFound/NotFoundPage.tsx
index 18a570a..a5ddaa9 100644
--- a/src/pages/NotFound/NotFoundPage.tsx
+++ b/src/pages/NotFound/NotFoundPage.tsx
@@ -1,3 +1,19 @@
+import { Helmet } from "react-helmet";
+
export const NotFoundPage = () => {
- return
Такой страницы нету
;
+ return (
+ <>
+
+
+ Страница не найдена | СКБ "Компьютерное инновационное творчество"
+
+
+
+
+
Такой страницы нету
+ >
+ );
};
diff --git a/src/pages/WpPostPage/WpPostPage.tsx b/src/pages/WpPostPage/WpPostPage.tsx
index 9206adb..219aca4 100644
--- a/src/pages/WpPostPage/WpPostPage.tsx
+++ b/src/pages/WpPostPage/WpPostPage.tsx
@@ -3,6 +3,7 @@ import { WpPost } from "@/widgets/WpPost";
import { useParams } from "react-router-dom";
import { ProjectsList } from "@/widgets/CardList/CardList";
import { SkeletonPost } from "@/shared/Components/SkeletonPost/SkeletonPost";
+import { Helmet } from "react-helmet";
function WpPostPage() {
const params = useParams();
@@ -11,7 +12,17 @@ function WpPostPage() {
const { data: post, isLoading, isError } = usePostById(postId || -1);
if (!postId) {
- return
Не указан ID поста
;
+ return (
+ <>
+
+
+ Пост не найден | СКБ "Компьютерное инновационное творчество"
+
+
+
+
Не указан ID поста
+ >
+ );
}
if (isLoading) {
@@ -25,17 +36,50 @@ function WpPostPage() {
}
if (isError) {
- return
Ошибка при загрузке данных;
- }
- console.log('post', post);
- return (<>
- {post &&
+ return (
<>
-
- {post?.categories?.includes("labs") &&
}
+
+
+ Ошибка загрузки | СКБ "Компьютерное инновационное творчество"
+
+
+
+
Ошибка при загрузке данных
>
- }
- >);
+ );
+ }
+
+ return (
+ <>
+ {post && (
+ <>
+
+
+ {post.title || "Пост"} | СКБ "Компьютерное инновационное
+ творчество"
+
+
+
+
+
+
+ {post?.categories?.includes("labs") && (
+
+ )}
+ >
+ )}
+ >
+ );
}
export default WpPostPage;
diff --git a/src/widgets/Slider/Slider.tsx b/src/widgets/Slider/Slider.tsx
index b5bc1a8..906ad9c 100644
--- a/src/widgets/Slider/Slider.tsx
+++ b/src/widgets/Slider/Slider.tsx
@@ -7,7 +7,7 @@ import { SkeletonSlider } from "@/shared/Components/SkeletonSlider/SkeletonSlide
import "./Slider.styles.scss";
import { SliderContext, SliderProps } from "@/widgets/Slider/context";
-function Slider({
+function Slider({
autoPlay = false,
autoPlayTime = 3000,
images,