diff --git a/src/components/Layouts/Layout.tsx b/src/components/Layouts/Layout.tsx index 1155ab2..dd678fb 100644 --- a/src/components/Layouts/Layout.tsx +++ b/src/components/Layouts/Layout.tsx @@ -8,7 +8,7 @@ export function Layout() { return ( <>
-
+
diff --git a/src/components/Main/Products/Products.tsx b/src/components/Main/Products/Products.tsx index eeb192a..c67831b 100644 --- a/src/components/Main/Products/Products.tsx +++ b/src/components/Main/Products/Products.tsx @@ -6,7 +6,7 @@ export function Products() { return (
diff --git a/src/components/Main/Products/Tabs/ForTeachingTab.tsx b/src/components/Main/Products/Tabs/ForTeachingTab.tsx index 8c9eae7..61065b5 100644 --- a/src/components/Main/Products/Tabs/ForTeachingTab.tsx +++ b/src/components/Main/Products/Tabs/ForTeachingTab.tsx @@ -3,41 +3,6 @@ import { useHover } from 'usehooks-ts'; import { getIcon } from '../../../../utils/getIcon'; import { useInView } from 'framer-motion'; -export function ForTeachingTab() { - return ( -
-
-

- Интерактивные тренажеры для учебных заведений -

- Интерактивные тренажеры для учебных заведений -
-
- - -
-

- Оснащение учебных классов и центров всем необходимым для современного - обучения под «ключ» -

-
- ); -} - function ForTeachingOption({ title, description, @@ -72,17 +37,19 @@ function ForTeachingOption({ export function ForTeaching() { return ( -
-
-

- Интерактивные тренажеры для учебных заведений -

03

-

+
+

+ Интерактивные тренажеры для учебных заведений +

03

+

+
(null); - -// const [order, dispatch] = useReducer( -// (state: string[], action: string) => { -// switch (action) { -// case 'prev': -// setSliderOffset(prev => prev + imgWidth - 72); -// return [...state.slice(1), state[state.length - 3]]; -// case 'next': -// setSliderOffset(prev => prev - imgWidth + 72); -// return [state[state.length - 2], ...state.slice(0, -1)]; -// default: -// return state; -// } -// }, -// [ -// 'src/assets/products/simulators/dispatcher.jpg', -// 'src/assets/products/simulators/winda.jpg', -// 'src/assets/products/simulators/train.jpg', -// 'src/assets/products/simulators/dispatcher.jpg', -// 'src/assets/products/simulators/winda.jpg', -// 'src/assets/products/simulators/train.jpg', -// 'src/assets/products/simulators/dispatcher.jpg', -// ], -// ); - -// useEffect(() => { -// setSliderOffset(-imgWidth + 72); -// }, [order, slide, imgWidth]); - -// const handlers = useSwipeable({ -// onSwipedLeft: () => { -// if (!isAnimating) { -// setIsAnimating(true); -// setSlide(prev => (prev === order.length - 5 ? 0 : prev + 1)); -// dispatch('prev'); -// } -// }, -// onSwipedRight: () => { -// if (!isAnimating) { -// setIsAnimating(true); -// setSlide(prev => (prev === 0 ? order.length - 5 : prev - 1)); -// dispatch('next'); -// } -// }, -// trackMouse: true, -// preventScrollOnSwipe: true, -// touchEventOptions: { passive: true }, -// }); - -// useEffect(() => { -// const refValue = ref.current; -// refValue?.addEventListener('transitionend', () => setIsAnimating(false)); -// return () => -// refValue?.removeEventListener('transitionend', () => -// setIsAnimating(false), -// ); -// }, [order, sliderOffset, slide]); - -// return ( -//
-//
-//
-//
-//

-// Интерактивные симуляторы управления техникой -//

-//
-// -// -// -// -// -// -//
-//
-//
-//

-// В основу симуляторов заложена математическая модель, полностью -// соответствующая работе настоящего оборудования -//

-//

-// модель позволяет производить расчеты характеристик работы, -// отслеживать безопасность работы устройств и симулировать -// внештатные ситуации. -//

-//
-//
-//
-//
-//
-// {width < 640 ? ( -// order.map((src, index) => ( -//
-// Симулятор -//
-// )) -// ) : ( -// <> -// Поезд -// Диспетчер -// Диспетчер -// РЖД -// РЖД -// -// )} -//
-//
-//

-// модель позволяет производить расчеты характеристик работы, -// отслеживать безопасность работы устройств и симулировать внештатные -// ситуации. -//

-//
-//
-//
-// ); -// } - function SimulatorsItem({ text }: { text: string }) { return (
@@ -177,8 +8,11 @@ function SimulatorsItem({ text }: { text: string }) { export function Simulators() { return ( -
-

+
+

Симуляторы управления техникой

02

diff --git a/src/components/Main/Products/Tabs/TrainingsTab.tsx b/src/components/Main/Products/Tabs/TrainingsTab.tsx index 302380c..be65b97 100644 --- a/src/components/Main/Products/Tabs/TrainingsTab.tsx +++ b/src/components/Main/Products/Tabs/TrainingsTab.tsx @@ -3,44 +3,6 @@ import { getIcon } from '../../../../utils/getIcon'; import { useHover } from 'usehooks-ts'; import { useInView } from 'framer-motion'; -export function TrainingsTab() { - return ( -
-
-
-
-

- Промышленные тренажеры виртуальной реальности -

- Промышленные тренажеры виртуальной реальности -
-
-
- - - -
-
-
- ); -} - function TeachingItem({ title, text, @@ -75,13 +37,18 @@ function TeachingItem({ export function IndustrialTrainings() { return ( -
+
-

+

Промышленные тренажеры

01

-
+
+ +
diff --git a/src/pages/MainPage.tsx b/src/pages/MainPage.tsx index caf2477..8d0b406 100644 --- a/src/pages/MainPage.tsx +++ b/src/pages/MainPage.tsx @@ -15,7 +15,7 @@ export function MainPage() { const width = useWindowWidth(); return ( -
+
{width >= 1024 && }