From 8dad51fd02c78e852fe3c4f191e9f3dff54b5af5 Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 6 Mar 2026 19:11:24 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 143cb14..9dfe0c3 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -10,8 +10,20 @@ import TeamCardTwo from '@/components/sections/team/TeamCardTwo'; import ContactFaq from '@/components/sections/contact/ContactFaq'; import FooterCard from '@/components/sections/footer/FooterCard'; import { Briefcase, Shield, Zap, Users, Phone, Linkedin } from 'lucide-react'; +import { useRef } from 'react'; export default function LandingPage() { + const contactModalRef = useRef(null); + const contactFormRef = useRef(null); + + const handleContactClick = () => { + // Scroll to contact section + const contactSection = document.getElementById('contact'); + if (contactSection) { + contactSection.scrollIntoView({ behavior: 'smooth' }); + } + }; + return ( @@ -51,10 +63,10 @@ export default function LandingPage() { showBlur={true} buttons={[ { - text: "Dohodnúť konzultáciu", href: "contact" + text: "Dohodnúť konzultáciu", onClick: handleContactClick }, { - text: "Kontaktovať kanceláriu", href: "#contact" + text: "Kontaktovať kanceláriu", onClick: handleContactClick } ]} /> @@ -183,7 +195,9 @@ export default function LandingPage() { ctaDescription="Dohodneš konzultáciu alebo sa nás opýtaj na akékoľvek právne otázky." ctaIcon={Phone} ctaButton={{ - text: "Napíšte nám", href: "mailto:ak@bariakova.sk" + text: "Napíšte nám", onClick: () => { + window.open('mailto:ak@bariakova.sk', '_blank'); + } }} useInvertedBackground={false} animationType="slide-up"