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:
@@ -0,0 +1,18 @@
|
||||
import { screen } from '@testing-library/react';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { axeResults } from '@/test/axe';
|
||||
import { renderWithProviders } from '@/test/renderWithProviders';
|
||||
import PrivacyNote from './PrivacyNote';
|
||||
|
||||
describe('PrivacyNote', () => {
|
||||
it('links to the privacy statement', async () => {
|
||||
const { container } = await renderWithProviders(<PrivacyNote />);
|
||||
expect(screen.getByTestId('privacy-note')).toHaveTextContent(
|
||||
'Lees in de privacyverklaring wat ik met je gegevens doe.',
|
||||
);
|
||||
expect(
|
||||
screen.getByRole('link', { name: 'privacyverklaring' }),
|
||||
).toHaveAttribute('href', '/privacyverklaring');
|
||||
expect(await axeResults(container)).toHaveNoViolations();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,24 @@
|
||||
import { Link, Text, type TextProps } from '@chakra-ui/react';
|
||||
import RouterLink from '@/components/RouterLink';
|
||||
|
||||
// The line under a contact form (and under its "coming soon" notice) that
|
||||
// tells visitors where to read what happens with their details (BR-PR-01).
|
||||
// One component, so the text and the link never differ between places.
|
||||
export default function PrivacyNote(props: TextProps) {
|
||||
return (
|
||||
<Text
|
||||
fontSize="sm"
|
||||
color="ink.soft"
|
||||
data-testid="privacy-note"
|
||||
{...props}
|
||||
>
|
||||
Lees in de{' '}
|
||||
<Link variant="underline" asChild>
|
||||
<RouterLink to="/privacyverklaring">
|
||||
privacyverklaring
|
||||
</RouterLink>
|
||||
</Link>{' '}
|
||||
wat ik met je gegevens doe.
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user