Adds the Contact section to the homepage
Adds the contact form with the live fields, validation and browser-side anti-spam, behind a coming-soon notice with a mail button until the API exists. A "Boek" link on a price card selects its package, tidies the URL and moves focus to the form. The form loads only when it comes near the screen, so the hero does not wait for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { createFileRoute } from '@tanstack/react-router';
|
||||
import Hero from '../components/Hero/Hero';
|
||||
import AboutBlock from '../components/home/AboutBlock/AboutBlock';
|
||||
import ContactSection from '../components/home/ContactSection/ContactSection';
|
||||
import Pricing from '../components/home/Pricing/Pricing';
|
||||
import Testimonials from '../components/home/Testimonials/Testimonials';
|
||||
import IntroGallery from '../components/home/IntroGallery/IntroGallery';
|
||||
@@ -24,6 +25,7 @@ export const Route = createFileRoute('/')({
|
||||
|
||||
// The homepage: the hero, then the sections in the order of LAYOUT.md
|
||||
function Index() {
|
||||
const { pakket } = Route.useSearch();
|
||||
return (
|
||||
<>
|
||||
<Hero content={heroContent} socials={siteContent.socials} />
|
||||
@@ -34,6 +36,13 @@ function Index() {
|
||||
content={homeContent.testimonials}
|
||||
testimonials={testimonials}
|
||||
/>
|
||||
<ContactSection
|
||||
content={homeContent.contact}
|
||||
packages={packages}
|
||||
enabled={siteContent.contactForm.enabled}
|
||||
email={siteContent.email}
|
||||
pakket={pakket}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user