diff --git a/public/images/promotion/arvr/1.jpg b/public/images/promotion/arvr/1.jpg index 8b70a28..b5d4ce3 100644 Binary files a/public/images/promotion/arvr/1.jpg and b/public/images/promotion/arvr/1.jpg differ diff --git a/public/images/promotion/arvr/2.jpg b/public/images/promotion/arvr/2.jpg index b586054..5235bde 100644 Binary files a/public/images/promotion/arvr/2.jpg and b/public/images/promotion/arvr/2.jpg differ diff --git a/public/images/promotion/arvr/3.jpg b/public/images/promotion/arvr/3.jpg index 31a7eef..d606025 100644 Binary files a/public/images/promotion/arvr/3.jpg and b/public/images/promotion/arvr/3.jpg differ diff --git a/public/images/promotion/catalog/1.jpg b/public/images/promotion/catalog/1.jpg index 6a7b9b7..aaf6fd5 100644 Binary files a/public/images/promotion/catalog/1.jpg and b/public/images/promotion/catalog/1.jpg differ diff --git a/public/images/promotion/computer_vision/1.jpg b/public/images/promotion/computer_vision/1.jpg index 11f91bd..22b2ecc 100644 Binary files a/public/images/promotion/computer_vision/1.jpg and b/public/images/promotion/computer_vision/1.jpg differ diff --git a/public/images/promotion/computer_vision/2.jpg b/public/images/promotion/computer_vision/2.jpg index 327cd43..2a09ab8 100644 Binary files a/public/images/promotion/computer_vision/2.jpg and b/public/images/promotion/computer_vision/2.jpg differ diff --git a/public/images/promotion/devices/1.jpg b/public/images/promotion/devices/1.jpg deleted file mode 100644 index d342933..0000000 Binary files a/public/images/promotion/devices/1.jpg and /dev/null differ diff --git a/public/images/promotion/devices/2.jpg b/public/images/promotion/devices/2.jpg deleted file mode 100644 index 9fcf8e9..0000000 Binary files a/public/images/promotion/devices/2.jpg and /dev/null differ diff --git a/public/images/promotion/mobiles/1.jpg b/public/images/promotion/mobiles/1.jpg index 6ab802d..2a667c4 100644 Binary files a/public/images/promotion/mobiles/1.jpg and b/public/images/promotion/mobiles/1.jpg differ diff --git a/public/images/promotion/mobiles/2.jpg b/public/images/promotion/mobiles/2.jpg index e747651..9da6f71 100644 Binary files a/public/images/promotion/mobiles/2.jpg and b/public/images/promotion/mobiles/2.jpg differ diff --git a/public/images/promotion/mobiles/3.jpg b/public/images/promotion/mobiles/3.jpg index bfb4fea..1c8feb6 100644 Binary files a/public/images/promotion/mobiles/3.jpg and b/public/images/promotion/mobiles/3.jpg differ diff --git a/public/images/promotion/presentations/1.jpg b/public/images/promotion/presentations/1.jpg index 74ef73b..45c09de 100644 Binary files a/public/images/promotion/presentations/1.jpg and b/public/images/promotion/presentations/1.jpg differ diff --git a/public/images/promotion/presentations/2.jpg b/public/images/promotion/presentations/2.jpg index 0380d33..fd3b685 100644 Binary files a/public/images/promotion/presentations/2.jpg and b/public/images/promotion/presentations/2.jpg differ diff --git a/public/images/promotion/presentations/3.jpg b/public/images/promotion/presentations/3.jpg index aeccc12..90cd6e4 100644 Binary files a/public/images/promotion/presentations/3.jpg and b/public/images/promotion/presentations/3.jpg differ diff --git a/public/images/promotion/templates/1.jpg b/public/images/promotion/templates/1.jpg index 1efb387..cbe057d 100644 Binary files a/public/images/promotion/templates/1.jpg and b/public/images/promotion/templates/1.jpg differ diff --git a/public/images/promotion/templates/2.jpg b/public/images/promotion/templates/2.jpg index f2db2f6..88cfc4b 100644 Binary files a/public/images/promotion/templates/2.jpg and b/public/images/promotion/templates/2.jpg differ diff --git a/public/video/showreel.mp4 b/public/video/showreel.mp4 index cfb4e0f..bf52b77 100644 Binary files a/public/video/showreel.mp4 and b/public/video/showreel.mp4 differ diff --git a/src/components/Devices.tsx b/src/components/Devices.tsx index 3dac606..1c440b7 100644 --- a/src/components/Devices.tsx +++ b/src/components/Devices.tsx @@ -55,6 +55,7 @@ function DesktopDevice({ setExpanded(hash.slice(1) === hashes.get(number)), [hash, number], ); - const inView = useInView(ref); - useEffect(() => { if (!inView) setExpanded(false); }, [inView]); @@ -110,7 +110,7 @@ function DesktopPromotionFeature({ transition={{ duration: 1 }} animate={{ translateX: expanded - ? (images.length - 1) * width * 0.15 + (images.length - 2) * 8 + ? (images.length - 1) * width * 0.15 + (images.length - 1) * 8 : 0, }} > @@ -121,7 +121,7 @@ function DesktopPromotionFeature({ src={image} alt={title} transition={{ duration: 0.5 }} - className="object-cover h-full pointer-events-none aspect-video" + className="object-cover h-full pointer-events-none" animate={{ maxHeight: expanded && index === 0 ? 0.265 * width : 0.0875 * width, @@ -155,12 +155,12 @@ function PromotionFeature({ const ref = useRef(null); + const inView = useInView(ref); + useEffect(() => { setExpanded(hash.slice(1) === hashes.get(number)); }, [hash, number]); - const inView = useInView(ref); - useEffect(() => { if (!inView) setExpanded(false); }, [inView]); diff --git a/src/consts/promotionFeatures.ts b/src/consts/promotionFeatures.ts index 79d67c6..1083554 100644 --- a/src/consts/promotionFeatures.ts +++ b/src/consts/promotionFeatures.ts @@ -15,24 +15,25 @@ export const promotionFeatures: IPromotionFeature[] = [ description: 'Дает возможность посетителям самостоятельно искать, фильтровать, сравнивать и рассматривать 3D модели продуктов.', title: 'Интерактивный каталог продукции', - images: [ - '/images/promotion/devices/1.jpg', - '/images/promotion/devices/2.jpg', - ], + images: ['/images/promotion/catalog/1.jpg'], }, { description: 'Комплекс сочетающий в себя физический макет и трехмерный интерактивный контентом. Сочетание физического макета и виртуального контента создает эффект присутствия и погружения. Посетители могут лучше прочувствовать замысел и идею проекта.', title: '3D интерактивные макеты', - images: ['/images/promotion/catalog/1.jpg'], + images: [ + '/images/promotion/templates/1.jpg', + '/images/promotion/templates/2.jpg', + ], }, { description: 'Дают возможность удаленно демонстрировать экспонаты, проводить презентации, организовывать виртуальные туры. Это повышает доступность и географию охвата мероприятия.', title: 'Приложения с\xa0виртуальной и дополненной реальностью', images: [ - '/images/promotion/templates/1.jpg', - '/images/promotion/templates/2.jpg', + '/images/promotion/arvr/1.jpg', + '/images/promotion/arvr/2.jpg', + '/images/promotion/arvr/3.jpg', ], }, {