From 64eb0ae87b2f84a6ccee048bb89a397d56c108ef Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Sun, 14 Jun 2026 20:33:23 +0000 Subject: [PATCH] Bob AI: Configure contact buttons to open a modal with a contact for --- src/components/Layout.tsx | 48 ++++- src/pages/HomePage.tsx | 208 ++----------------- src/pages/HomePage/sections/About.tsx | 18 ++ src/pages/HomePage/sections/Contact.tsx | 27 +++ src/pages/HomePage/sections/Features.tsx | 37 ++++ src/pages/HomePage/sections/Hero.tsx | 28 +++ src/pages/HomePage/sections/Portfolio.tsx | 57 +++++ src/pages/HomePage/sections/Process.tsx | 34 +++ src/pages/HomePage/sections/Testimonials.tsx | 52 +++++ 9 files changed, 322 insertions(+), 187 deletions(-) create mode 100644 src/pages/HomePage/sections/About.tsx create mode 100644 src/pages/HomePage/sections/Contact.tsx create mode 100644 src/pages/HomePage/sections/Features.tsx create mode 100644 src/pages/HomePage/sections/Hero.tsx create mode 100644 src/pages/HomePage/sections/Portfolio.tsx create mode 100644 src/pages/HomePage/sections/Process.tsx create mode 100644 src/pages/HomePage/sections/Testimonials.tsx diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index df15d93..7573d14 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -4,8 +4,29 @@ import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot"; import { Outlet } from 'react-router-dom'; import { StyleProvider } from "@/components/ui/StyleProvider"; +import { useEffect, useRef } from 'react'; +import Modal from '@/components/ui/Modal'; +import Input from '@/components/ui/Input'; +import Textarea from '@/components/ui/Textarea'; +import Label from '@/components/ui/Label'; +import Button from '@/components/ui/Button'; export default function Layout() { + const triggerRef = useRef(null); + + useEffect(() => { + const handleClick = (e: MouseEvent) => { + const target = e.target as HTMLElement; + const link = target.closest('a'); + if (link && link.getAttribute('href') === '#contact-modal') { + e.preventDefault(); + triggerRef.current?.click(); + } + }; + document.addEventListener('click', handleClick); + return () => document.removeEventListener('click', handleClick); + }, []); + const navItems = [ { "name": "Bemutatkozás", @@ -45,13 +66,38 @@ export default function Layout() { logo="A Te Szertartásvezetőd" ctaButton={{ text: "Ajánlatkérés", - href: "#contact", + href: "#contact-modal", }} navItems={navItems} />
+ } + title="Foglald le a napodat!" + description="A 2026-os és már a 2027-es naptáram is nyitva!" + > +
e.preventDefault()}> +
+ + +
+
+ + +
+
+ + +
+
+ +