Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions RestroHub-FrontEnd/src/pages/public/Landing.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -508,8 +519,12 @@ const [contactForm, setContactForm] = useState({
Start Free Trial
<ArrowRight className="h-5 w-5 transition-transform group-hover:translate-x-1" />
</Link>
<button className="inline-flex items-center gap-2 rounded-xl border-2 border-slate-200 bg-white px-8 py-4 text-base font-bold text-slate-700 shadow-sm transition-all hover:border-blue-300 hover:text-blue-600 dark:border-slate-600 dark:bg-slate-800 dark:text-slate-200 dark:hover:border-blue-400 dark:hover:text-blue-400 sm:text-lg">
<Play className="h-5 w-5 fill-blue-600 text-blue-600" />
<button
type="button"
onClick={handleWatchDemoClick}
className="group inline-flex cursor-pointer items-center gap-2 rounded-xl bg-blue-600 px-8 py-4 text-base font-bold text-white shadow-lg shadow-blue-300/40 transition-all hover:scale-105 hover:bg-blue-700 hover:shadow-xl hover:shadow-blue-300/50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-slate-900 sm:text-lg"
>
<Play className="h-5 w-5 fill-white text-white transition-transform group-hover:scale-110" />
Watch Demo
</button>
</div>
Expand Down Expand Up @@ -997,4 +1012,4 @@ const [contactForm, setContactForm] = useState({
);
};

export default Landing;
export default Landing;