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:
@@ -69,6 +69,10 @@ const homeContent: HomeContent = {
|
||||
testimonials: {
|
||||
title: 'Lieve woorden',
|
||||
},
|
||||
contact: {
|
||||
title: 'Contact',
|
||||
lead: 'Wil je meer informatie ontvangen? Neem gerust contact met mij op.',
|
||||
},
|
||||
};
|
||||
|
||||
export default homeContent;
|
||||
|
||||
@@ -16,6 +16,8 @@ const siteContent: SiteContent = {
|
||||
},
|
||||
],
|
||||
email: { user: 'info', domain: 'andreaslop.nl' },
|
||||
// Switched on once the API can receive the form
|
||||
contactForm: { enabled: false },
|
||||
};
|
||||
|
||||
export default siteContent;
|
||||
|
||||
@@ -20,6 +20,8 @@ export interface SiteContent {
|
||||
footerIntro: string;
|
||||
socials: SocialLink[];
|
||||
email: EmailAddress;
|
||||
// Off: the form is shown dimmed under a "coming soon" notice (FR-HP-07)
|
||||
contactForm: { enabled: boolean };
|
||||
}
|
||||
|
||||
// An image as the API will deliver it. width and height are the intrinsic
|
||||
@@ -74,6 +76,10 @@ export interface HomeContent {
|
||||
testimonials: {
|
||||
title: string;
|
||||
};
|
||||
contact: {
|
||||
title: string;
|
||||
lead: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface HeroSlide {
|
||||
|
||||
Reference in New Issue
Block a user