mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 01:39:45 +00:00
ip
This commit is contained in:
1 parent
a600e91744
commit
84d6f88535
7 files changed
+12
-11
No files matched your search
Generated
+3
-3
@@ -2791,9 +2791,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/bootstrap": {
|
||||
"version": "5.3.5",
|
||||
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.5.tgz",
|
||||
"integrity": "sha512-ct1CHKtiobRimyGzmsSldEtM03E8fcEX4Tb3dGXz1V8faRwM50+vfHwTzOxB3IlKO7m+9vTH3s/3C6T2EAPeTA==",
|
||||
"version": "5.3.3",
|
||||
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.3.tgz",
|
||||
"integrity": "sha512-8HLCdWgyoMguSO9o+aH+iuZ+aht+mzW0u3HIMzVu7Srrpv7EBBxTnrFlSCskwdY1+EOFQSm7uMJhNQHkdPcmjg==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 >
|
||||
);
|
||||
|
||||
@@ -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,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 = () => {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"root":["./src/main.tsx","./src/vite-env.d.ts","./src/app/app.tsx","./src/app/layout/root.tsx","./src/app/providers/router/index.ts","./src/app/providers/router/ui/approuter.tsx","./src/app/types/global.d.ts","./src/modules/index.ts","./src/modules/contact/api/post.ts","./src/modules/contact/hooks/usecontactform.ts","./src/modules/media/api/get.ts","./src/modules/media/hooks/usemedia.ts","./src/modules/news/api/get.ts","./src/modules/news/hooks/usenews.ts","./src/modules/news/hooks/usenewsbyid.ts","./src/modules/posts/api/get/fetchpostbyid.ts","./src/modules/posts/api/get/fetchpostprojects.ts","./src/modules/posts/api/get/fetchposts.ts","./src/modules/posts/hooks/usepostbyid.ts","./src/modules/posts/hooks/usepostprojects.ts","./src/modules/posts/hooks/useposts.ts","./src/pages/aboutus/aboutus.tsx","./src/pages/aboutus/index.ts","./src/pages/aboutus/types.ts","./src/pages/contact/contact.tsx","./src/pages/contact/index.ts","./src/pages/customprojects/labboard/labboard.tsx","./src/pages/mainpage/index.tsx","./src/pages/mainpage/ui/mainpage/mainpage.async.tsx","./src/pages/mainpage/ui/mainpage/mainpage.tsx","./src/pages/mainpage/ui/mainpage/mockdata.ts","./src/pages/mainpage/ui/components/gallery/gallery.tsx","./src/pages/mainpage/ui/components/gallery/index.ts","./src/pages/newsitem/newsitem.tsx","./src/pages/notfound/notfoundpage.tsx","./src/pages/wppostpage/wppostpage.tsx","./src/shared/components/card/card.tsx","./src/shared/components/card/types.ts","./src/shared/components/field/field.tsx","./src/shared/components/field/index.ts","./src/shared/components/skeleton/skeletoncard.tsx","./src/shared/components/skeleton/skeletongrid.tsx","./src/shared/components/skeletongallery/skeletongallery.tsx","./src/shared/components/skeletongrid/skeletoncard.tsx","./src/shared/components/skeletongrid/skeletongrid.tsx","./src/shared/components/skeletonpost/skeletonpost.tsx","./src/shared/components/skeletonslider/skeletonslider.tsx","./src/shared/components/withloading/withloading.tsx","./src/shared/api/parsecontent.ts","./src/shared/api/usewpmainpagedata.ts","./src/shared/api/wp-client.ts","./src/shared/assets/images/index.ts","./src/shared/assets/images/labboard/index.ts","./src/shared/assets/images/numbers/index.ts","./src/shared/config/routeconfig/routeconfig.tsx","./src/shared/lib/elementonscreen/elementonscreen.ts","./src/shared/lib/resizeobserver/resizeobserver.ts","./src/shared/lib/classnames/classnames.ts","./src/shared/types/app.d.ts","./src/widgets/button/ui/button.tsx","./src/widgets/cardlist/cardlist.tsx","./src/widgets/cardlist/cardlistfunctions.ts","./src/widgets/cardlist/cardlisttemplate.tsx","./src/widgets/cardlist/types.ts","./src/widgets/categorypage/categorypage.tsx","./src/widgets/contactform/contactform.tsx","./src/widgets/contactform/index.ts","./src/widgets/contactform/variables.ts","./src/widgets/contactus/contactus.tsx","./src/widgets/contactus/index.ts","./src/widgets/footer/footer.tsx","./src/widgets/footer/footercontacts.tsx","./src/widgets/footer/footerlink.tsx","./src/widgets/footer/index.ts","./src/widgets/mediablock/mediablock.tsx","./src/widgets/mediablock/index.ts","./src/widgets/mediablock/mediacontainer/mediacontainer.tsx","./src/widgets/mediablock/mediacontainer/index.ts","./src/widgets/navbar/navbar.tsx","./src/widgets/navbar/navbarlink.tsx","./src/widgets/navbar/index.ts","./src/widgets/newslider/newslider.tsx","./src/widgets/newslider/context.tsx","./src/widgets/numbers/numbers.tsx","./src/widgets/numbers/index.ts","./src/widgets/partners/partners.tsx","./src/widgets/partners/partnerslogo.tsx","./src/widgets/partners/index.ts","./src/widgets/photogallery/photogallery.tsx","./src/widgets/photogallery/index.ts","./src/widgets/slider/slider.tsx","./src/widgets/slider/context.ts","./src/widgets/slider/components/arrows.tsx","./src/widgets/slider/components/dot.tsx","./src/widgets/slider/components/dots.tsx","./src/widgets/slider/components/slide.tsx","./src/widgets/slider/components/slideslist.tsx","./src/widgets/team/team.tsx","./src/widgets/team/index.ts","./src/widgets/wppost/pagecontent.tsx","./src/widgets/wppost/pageheader.tsx","./src/widgets/wppost/wppost.tsx","./src/widgets/wppost/customprojects.tsx","./src/widgets/wppost/index.ts"],"version":"5.8.3"}
|
||||
{"root":["./src/main.tsx","./src/vite-env.d.ts","./src/app/app.tsx","./src/app/layout/root.tsx","./src/app/providers/router/index.ts","./src/app/providers/router/ui/approuter.tsx","./src/app/types/global.d.ts","./src/modules/index.ts","./src/modules/contact/api/post.ts","./src/modules/contact/hooks/usecontactform.ts","./src/modules/media/api/get.ts","./src/modules/media/hooks/usemedia.ts","./src/modules/news/api/get.ts","./src/modules/news/hooks/usenews.ts","./src/modules/news/hooks/usenewsbyid.ts","./src/modules/posts/api/get/fetchpostbyid.ts","./src/modules/posts/api/get/fetchpostprojects.ts","./src/modules/posts/api/get/fetchposts.ts","./src/modules/posts/hooks/usepostbyid.ts","./src/modules/posts/hooks/usepostprojects.ts","./src/modules/posts/hooks/useposts.ts","./src/pages/aboutus/aboutus.tsx","./src/pages/aboutus/index.ts","./src/pages/aboutus/types.ts","./src/pages/contact/contact.tsx","./src/pages/contact/index.ts","./src/pages/customprojects/labboard/labboard.tsx","./src/pages/mainpage/index.tsx","./src/pages/mainpage/ui/mainpage/mainpage.async.tsx","./src/pages/mainpage/ui/mainpage/mainpage.tsx","./src/pages/mainpage/ui/mainpage/mockdata.ts","./src/pages/mainpage/ui/components/gallery/gallery.tsx","./src/pages/mainpage/ui/components/gallery/index.ts","./src/pages/newsitem/newsitem.tsx","./src/pages/notfound/notfoundpage.tsx","./src/pages/wppostpage/wppostpage.tsx","./src/shared/components/card/card.tsx","./src/shared/components/card/types.ts","./src/shared/components/field/field.tsx","./src/shared/components/field/index.ts","./src/shared/components/skeleton/skeletoncard.tsx","./src/shared/components/skeleton/skeletongrid.tsx","./src/shared/components/skeletongallery/skeletongallery.tsx","./src/shared/components/skeletongrid/skeletoncard.tsx","./src/shared/components/skeletongrid/skeletongrid.tsx","./src/shared/components/skeletonpost/skeletonpost.tsx","./src/shared/components/skeletonslider/skeletonslider.tsx","./src/shared/components/withloading/withloading.tsx","./src/shared/api/parsecontent.ts","./src/shared/api/usewpmainpagedata.ts","./src/shared/api/wp-client.ts","./src/shared/assets/images/index.ts","./src/shared/assets/images/labboard/index.ts","./src/shared/assets/images/numbers/index.ts","./src/shared/config/routeconfig/routeconfig.tsx","./src/shared/lib/elementonscreen/elementonscreen.ts","./src/shared/lib/resizeobserver/resizeobserver.ts","./src/shared/lib/classnames/classnames.ts","./src/shared/types/app.d.ts","./src/shared/utils/sanitizetext.ts","./src/widgets/button/ui/button.tsx","./src/widgets/cardlist/cardlist.tsx","./src/widgets/cardlist/cardlistfunctions.ts","./src/widgets/cardlist/cardlisttemplate.tsx","./src/widgets/cardlist/types.ts","./src/widgets/categorypage/categorypage.tsx","./src/widgets/contactform/contactform.tsx","./src/widgets/contactform/index.ts","./src/widgets/contactform/variables.ts","./src/widgets/contactus/contactus.tsx","./src/widgets/contactus/index.ts","./src/widgets/footer/footer.tsx","./src/widgets/footer/footercontacts.tsx","./src/widgets/footer/footerlink.tsx","./src/widgets/footer/index.ts","./src/widgets/mediablock/mediablock.tsx","./src/widgets/mediablock/index.ts","./src/widgets/mediablock/mediacontainer/mediacontainer.tsx","./src/widgets/mediablock/mediacontainer/index.ts","./src/widgets/navbar/navbar.tsx","./src/widgets/navbar/navbarlink.tsx","./src/widgets/navbar/index.ts","./src/widgets/newslider/newslider.tsx","./src/widgets/newslider/context.tsx","./src/widgets/numbers/numbers.tsx","./src/widgets/numbers/index.ts","./src/widgets/partners/partners.tsx","./src/widgets/partners/partnerslogo.tsx","./src/widgets/partners/index.ts","./src/widgets/photogallery/photogallery.tsx","./src/widgets/photogallery/index.ts","./src/widgets/slider/slider.tsx","./src/widgets/slider/context.ts","./src/widgets/slider/components/arrows.tsx","./src/widgets/slider/components/dot.tsx","./src/widgets/slider/components/dots.tsx","./src/widgets/slider/components/slide.tsx","./src/widgets/slider/components/slideslist.tsx","./src/widgets/team/team.tsx","./src/widgets/team/index.ts","./src/widgets/wppost/pagecontent.tsx","./src/widgets/wppost/pageheader.tsx","./src/widgets/wppost/wppost.tsx","./src/widgets/wppost/customprojects.tsx","./src/widgets/wppost/index.ts"],"version":"5.8.3"}
|
||||
Reference in new issue
Block a user