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,37 @@
|
||||
import { defineRecipe } from '@chakra-ui/react';
|
||||
|
||||
// The design's square form fields (.form__input, .form__textarea): white,
|
||||
// a hairline border, light text, and the heidegroen border with a soft ring
|
||||
// on focus. Applied with css={formControl()} to Chakra's Input, Textarea and
|
||||
// NativeSelect.Field, so all three look the same.
|
||||
const formControlRecipe = defineRecipe({
|
||||
className: 'form-control',
|
||||
base: {
|
||||
width: '100%',
|
||||
px: '1.1rem',
|
||||
py: '0.95rem',
|
||||
h: 'auto',
|
||||
minH: '3.25rem',
|
||||
bg: 'white',
|
||||
color: 'ink',
|
||||
borderWidth: '1px',
|
||||
borderColor: 'line',
|
||||
rounded: 'none',
|
||||
fontSize: '1.0625rem',
|
||||
fontWeight: '300',
|
||||
transitionProperty: 'border-color, box-shadow',
|
||||
transitionDuration: 'interaction',
|
||||
transitionTimingFunction: 'smooth',
|
||||
// Placeholder in ink.soft: the design's lighter grey fails 4.5:1
|
||||
_placeholder: { color: 'ink.soft', opacity: 1 },
|
||||
_focusVisible: {
|
||||
outline: 'none',
|
||||
borderColor: 'accent.deep',
|
||||
boxShadow:
|
||||
'0 0 0 3px color-mix(in srgb, {colors.accent} 25%, transparent)',
|
||||
},
|
||||
_invalid: { borderColor: 'error' },
|
||||
},
|
||||
});
|
||||
|
||||
export default formControlRecipe;
|
||||
Reference in New Issue
Block a user