This commit is contained in:
xomimishka committed 2026-06-18 13:55:46 +03:00
1 parent a600e91744
commit 84d6f88535
7 files changed
+12 -11

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ export function useWpMainPageData() {
useEffect(() => {
// Заменяй slug на нужный слаг твоей главной страницы в WP
fetch("https://test.skbkit.ru/wp-json/wp/v2/pages?slug=mainpage&_fields=acf")
fetch("http://192.168.100.215/wp-json/wp/v2/pages?slug=main")
.then((res) => res.json())
.then((data: WpPage[]) => {
if (data && data.length > 0) {
+3 -2
View File
@@ -75,6 +75,7 @@ const mockContacts: ContactsType = {
function Footer({ links = mockLinks, contacts = mockContacts }: FooterProps) {
// TODO: добавить setMediaList
const [mediaList] = useState(links);
const currentYear = new Date().getFullYear();
return (
<footer id="footer">
@@ -82,7 +83,7 @@ function Footer({ links = mockLinks, contacts = mockContacts }: FooterProps) {
<div className="logo-container" style={{ alignItems: 'flex-start' }}>
<img className="logo" alt="logo" src={logo} />
</div>
<label style={{ color: 'white', fontSize: '14px', alignItems: 'flex-end', lineHeight: 'none' }}>©СКБ «КИТ» 2015 – 2025</label>
<label style={{ color: 'white', fontSize: '14px', alignItems: 'flex-end', lineHeight: 'none' }}>©СКБ «КИТ» 2015 – {currentYear}</label>
</div>
<div className="footer-links-container">
<div className="footer-links">
@@ -109,7 +110,7 @@ function Footer({ links = mockLinks, contacts = mockContacts }: FooterProps) {
<a className="copyright" style={{ color: 'white', fontSize: '14px', lineHeight: 'none' }} target="_blank" rel="noopener noreferrer" href="https://www.study.sfedu.ru/privacypolicy?ysclid=m8anp507sz44008873">Политика конфиденциальности</a>
<div className="copyright">
©СКБ «КИТ» 2015 – 2025
©СКБ «КИТ» 2015 – {currentYear}
</div>
</footer >
);
+1 -1
View File
@@ -202,7 +202,7 @@
display: block;
width: 100%;
padding: 16px 24px;
margin: 20px auto 0;
margin: 20px auto 100px;
border-radius: 8px;
border: none;
font-size: 20px;
+1 -1
View File
@@ -1,5 +1,5 @@
import "./Numbers.styles.scss";
import { Illustration, Illustration2 } from '@/shared/assets/images/numbers';
import { Illustration } from '@/shared/assets/images/numbers';
import { useState } from 'react';
const Numbers = () => {
+2 -2
View File
@@ -24,7 +24,7 @@ export default function WpPost({
const title = post.title;
const customComponent = getCustomProject(categories);
const isSpecialTitle = title === "Программно-аппаратный комплекс для мониторинга управления мусорных контейнеров";
const isSpecialTitle = title === "Программно-аппаратный комплекс для мониторинга управления мусорных контейнеров" || title === "Цифровой двойник расстановщика SMD-компонентов" || title === "Робот-балансир" || title === "SKB Racing" || title === "Раннер" || title === "Контроллер автоматизированного управления рольставнями";
return (
<div className={categories.includes("projects") ? "project" : ""}>
@@ -39,7 +39,7 @@ export default function WpPost({
post.content.map((el, index) => {
if (el.type === "mediablock") {
const media = <MediaBlock key={index} images={el.value} />;
return isSpecialTitle ? media : (
return (
<PageContent key={index} className="content">
{media}
</PageContent>