Shares the contact form, contact card and privacy line

ContactPanel holds the coming-soon gate, the shoot options, the package
chosen via ?pakket= and the form, which loads as its own chunk either
when it comes near the screen (homepage) or right away (contact page).
ContactDetails shows the ways to reach Andrea as a card with icons. A
privacy line now sits under the form and under the coming-soon notice,
and the reply time in the thank-you comes from the site content.
Instagram is listed before Facebook, so the footer and hero follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 18:26:48 +01:00
co-authored by Claude Opus 5.5
parent 4c257b7ac0
commit 26a8bd9469
20 changed files with 789 additions and 90 deletions
@@ -26,6 +26,7 @@ const renderForm = (
options={options}
mailSubject="Vraag via andreaslop.nl"
email={siteContent.email}
replyTime="1-2 werkdagen"
submit={vi.fn().mockResolvedValue(undefined)}
{...props}
/>,
@@ -117,6 +118,24 @@ describe('ContactForm', () => {
expect(screen.queryByTestId('contact-form')).toBeNull();
});
it('takes the reply time for the thank-you from the content', async () => {
await renderForm({ replyTime: '3 werkdagen' });
fillIn();
send();
expect(
await screen.findByTestId('contact-form-sent'),
).toHaveTextContent('Ik reageer binnen 3 werkdagen.');
});
it('shows the privacy line under the submit button', async () => {
await renderForm();
const form = screen.getByTestId('contact-form');
expect(form).toContainElement(screen.getByTestId('privacy-note'));
expect(
screen.getByRole('link', { name: 'privacyverklaring' }),
).toHaveAttribute('href', '/privacyverklaring');
});
it('keeps the input and offers the mail link when sending fails', async () => {
await renderForm({ submit: vi.fn().mockRejectedValue(new Error('x')) });
fillIn();
@@ -194,6 +213,7 @@ describe('ContactForm', () => {
preselect={preselect}
mailSubject="Vraag via andreaslop.nl"
email={siteContent.email}
replyTime="1-2 werkdagen"
/>
</>
);