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:
@@ -9,6 +9,8 @@ type SectionHeadingProps = {
|
||||
align?: 'center' | 'start';
|
||||
// compact: little space below, for a heading above running text
|
||||
spacing?: 'default' | 'compact';
|
||||
// Lets code move focus to the heading (no visible ring, theme rule)
|
||||
focusable?: boolean;
|
||||
};
|
||||
|
||||
// Heading block of a homepage section (design .section__head): optional
|
||||
@@ -20,6 +22,7 @@ export default function SectionHeading({
|
||||
lead,
|
||||
align = 'center',
|
||||
spacing = 'default',
|
||||
focusable = false,
|
||||
}: SectionHeadingProps) {
|
||||
const centered = align === 'center';
|
||||
|
||||
@@ -36,7 +39,12 @@ export default function SectionHeading({
|
||||
{eyebrow}
|
||||
</Text>
|
||||
)}
|
||||
<Heading as="h2" id={id} textStyle="sectionTitle">
|
||||
<Heading
|
||||
as="h2"
|
||||
id={id}
|
||||
textStyle="sectionTitle"
|
||||
tabIndex={focusable ? -1 : undefined}
|
||||
>
|
||||
{title}
|
||||
</Heading>
|
||||
{lead && (
|
||||
|
||||
Reference in New Issue
Block a user