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:
@@ -0,0 +1,11 @@
|
||||
// Subject of a mail from the site: the package when the visitor came via a
|
||||
// "Boek ..." link, otherwise a general one (BR-MAIL-01)
|
||||
export function mailSubject(packageName?: string): string {
|
||||
return packageName
|
||||
? `Aanvraag fotoshoot: ${packageName}`
|
||||
: 'Vraag via andreaslop.nl';
|
||||
}
|
||||
|
||||
export function mailtoLink(address: string, subject: string): string {
|
||||
return `mailto:${address}?subject=${encodeURIComponent(subject)}`;
|
||||
}
|
||||
Reference in New Issue
Block a user