diff --git a/src/components/Footer/Footer.jsx b/src/components/Footer/Footer.jsx index b006f10..9e56182 100644 --- a/src/components/Footer/Footer.jsx +++ b/src/components/Footer/Footer.jsx @@ -24,7 +24,7 @@ function Footer() { className="footer__logo font-inter-regular" onClick={() => handlePageChange("/")} > - OOO "ALMA-VID" + Ткаченко НН
handlePageChange("/objects")}> diff --git a/src/components/Object/Object.jsx b/src/components/Object/Object.jsx index 0a5814e..db361aa 100644 --- a/src/components/Object/Object.jsx +++ b/src/components/Object/Object.jsx @@ -6,6 +6,17 @@ function Object(props) { const [needsExpansion, setNeedsExpansion] = useState(false); const contentRef = useRef(null); + const handleCardClick = (e) => { + // Don't redirect if user clicked on the expand button + if (e.target.closest('.item__expand-btn')) { + return; + } + + if (props.cianUrl) { + window.open(props.cianUrl, '_blank'); + } + }; + useEffect(() => { const checkExpansion = () => { if (!props.desc || !props.address || !contentRef.current) { @@ -36,7 +47,11 @@ function Object(props) { }; return ( -
+
квартира
{ price="2 500 000 ₽" desc="2-комн. кв., 47 м², 1/2 этаж" address="Челябинская область, Челябинск, Лазурная улица, 14А, район Металлургический, микрорайон Северо-Западный" + cianUrl="https://cian.ru/sale/flat/310187199/" /> @@ -114,6 +117,7 @@ const SliderComponent = () => { price={object.price} desc={object.title} address={object.address} + cianUrl={object.cianUrl} /> ))} diff --git a/src/pages/About/About.jsx b/src/pages/About/About.jsx index ff852ef..996c19c 100644 --- a/src/pages/About/About.jsx +++ b/src/pages/About/About.jsx @@ -37,7 +37,7 @@ function About() {
- Об {CONTACTS.companyName} {CONTACTS.companyNameShort} + Об {CONTACTS.companyName}