Merge branch 'master' of http://192.168.1.163:3000/mikhail_lanskikh/graff.estate-nextjs-updated
This commit is contained in:
@@ -40,10 +40,12 @@ export function CityPoint({
|
||||
|
||||
const { isLg } = useMediaQueries();
|
||||
|
||||
const handleCitySelect = () => setCityPoint({ title, x, y });
|
||||
|
||||
const { onMouseDown, onMouseLeave, onMouseUp, onTouchEnd, onTouchStart } =
|
||||
useLongPress(
|
||||
() => !isLg && setCityPoint({ title, x, y }),
|
||||
() => isLg && setCityPoint({ title, x, y })
|
||||
handleCitySelect, // onLongPress для мобильных
|
||||
handleCitySelect // onClick для десктопа
|
||||
);
|
||||
|
||||
const pointRef = useRef<HTMLButtonElement>(null);
|
||||
@@ -89,7 +91,7 @@ export function CityPoint({
|
||||
}`}
|
||||
>
|
||||
<p
|
||||
className={`heading2 group-hover:text-white relative transition-colors duration-300 font-medium ${
|
||||
className={`heading2 group-hover:text-white transition-colors duration-300 font-medium ${
|
||||
active ? "z-[2]" : ""
|
||||
}`}
|
||||
ref={refTitle}
|
||||
@@ -97,7 +99,7 @@ export function CityPoint({
|
||||
{title}
|
||||
</p>
|
||||
<p
|
||||
className={`btns lg:h-[2.083vw] font-medium group-hover:text-white relative transition-colors duration-300 h-[5.114vw]${
|
||||
className={`btns lg:h-[2.083vw] font-medium group-hover:text-white transition-colors duration-300 h-[5.114vw]${
|
||||
active ? " z-[2]" : ""
|
||||
}`}
|
||||
ref={refCount}
|
||||
@@ -202,10 +204,8 @@ export function LogoItem({
|
||||
opacity: 100,
|
||||
x: circleRadius * (1 - Math.cos(angle)),
|
||||
y: circleRadius * (1 - Math.sin(angle)),
|
||||
top: -circleRadius,
|
||||
}}
|
||||
style={{
|
||||
zIndex: length - index,
|
||||
top: -circleRadius,
|
||||
}}
|
||||
exit={{ opacity: 0, transition: { delay: index * 0.1 } }}
|
||||
transition={{ delay: index * 0.1 + 0.3, bounce: "none" }}
|
||||
|
||||
Reference in New Issue
Block a user