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,15 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { submitContactForm } from './submitContactForm';
|
||||
|
||||
describe('submitContactForm', () => {
|
||||
it('fails until the API exists', async () => {
|
||||
await expect(
|
||||
submitContactForm({
|
||||
naam: 'Demi',
|
||||
email: 'demi@example.nl',
|
||||
shoot: 'newborn',
|
||||
bericht: 'Hoi!',
|
||||
}),
|
||||
).rejects.toThrow('not available');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user