From acc34c4d74ba3a18324ef4e8574a5b8bc817b5d0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 12 Jun 2026 22:01:23 +0530 Subject: [PATCH] fix: make watch demo button scroll to testimonials --- .../src/pages/public/Landing.jsx | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/RestroHub-FrontEnd/src/pages/public/Landing.jsx b/RestroHub-FrontEnd/src/pages/public/Landing.jsx index 85004210..9815930b 100644 --- a/RestroHub-FrontEnd/src/pages/public/Landing.jsx +++ b/RestroHub-FrontEnd/src/pages/public/Landing.jsx @@ -109,6 +109,17 @@ const Landing = () => { return () => obs.disconnect(); }, []); + const handleWatchDemoClick = () => { + const testimonialsSection = document.getElementById('testimonials'); + if (!testimonialsSection) return; + + setActiveLink('#testimonials'); + testimonialsSection.scrollIntoView({ + behavior: 'smooth', + block: 'start', + }); + }; + const features = [ { icon: QrCode, @@ -508,8 +519,12 @@ const [contactForm, setContactForm] = useState({ Start Free Trial - @@ -997,4 +1012,4 @@ const [contactForm, setContactForm] = useState({ ); }; -export default Landing; \ No newline at end of file +export default Landing;