Skip to content

Integrate Contact Page with Contact API #74

Description

@tjhiaj

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions