Form Fields
- Contact form includes the following inputs:
- Name (required)
- Email (required, valid email format)
- Message (required)
- Required fields are clearly indicated
- Field placeholders provide guidance
Frontend Validation
- Client-side validation prevents submission with missing required fields
- Invalid email formats are rejected before submission
- Submit button is disabled while the request is in progress
- Form cannot be submitted multiple times simultaneously
API Integration
- Form submits data to: POST /functions/v1/contact
- Request body matches API expectations
- API base URL is read from environment variables
- No secrets or API keys are exposed in the frontend
On successful submission:
- Confirmation message is shown to the user
- Form fields are cleared
Form Fields
Frontend Validation
API Integration
On successful submission: