Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9c752dea7c | |||
| 8dad51fd02 | |||
| 86f2445a0a |
@@ -10,8 +10,20 @@ import TeamCardTwo from '@/components/sections/team/TeamCardTwo';
|
|||||||
import ContactFaq from '@/components/sections/contact/ContactFaq';
|
import ContactFaq from '@/components/sections/contact/ContactFaq';
|
||||||
import FooterCard from '@/components/sections/footer/FooterCard';
|
import FooterCard from '@/components/sections/footer/FooterCard';
|
||||||
import { Briefcase, Shield, Zap, Users, Phone, Linkedin } from 'lucide-react';
|
import { Briefcase, Shield, Zap, Users, Phone, Linkedin } from 'lucide-react';
|
||||||
|
import { useRef } from 'react';
|
||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
|
const contactModalRef = useRef<HTMLDivElement>(null);
|
||||||
|
const contactFormRef = useRef<HTMLFormElement>(null);
|
||||||
|
|
||||||
|
const handleContactClick = () => {
|
||||||
|
// Scroll to contact section
|
||||||
|
const contactSection = document.getElementById('contact');
|
||||||
|
if (contactSection) {
|
||||||
|
contactSection.scrollIntoView({ behavior: 'smooth' });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
defaultButtonVariant="hover-magnetic"
|
defaultButtonVariant="hover-magnetic"
|
||||||
@@ -35,7 +47,7 @@ export default function LandingPage() {
|
|||||||
{ name: "Kontakt", id: "contact" }
|
{ name: "Kontakt", id: "contact" }
|
||||||
]}
|
]}
|
||||||
button={{
|
button={{
|
||||||
text: "Dohodnúť konzultáciu", href: "contact"
|
text: "Dohodnúť konzultáciu", onClick: handleContactClick
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -51,10 +63,10 @@ export default function LandingPage() {
|
|||||||
showBlur={true}
|
showBlur={true}
|
||||||
buttons={[
|
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."
|
ctaDescription="Dohodneš konzultáciu alebo sa nás opýtaj na akékoľvek právne otázky."
|
||||||
ctaIcon={Phone}
|
ctaIcon={Phone}
|
||||||
ctaButton={{
|
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}
|
useInvertedBackground={false}
|
||||||
animationType="slide-up"
|
animationType="slide-up"
|
||||||
|
|||||||
Reference in New Issue
Block a user