Skip to content

feat: update contact form to integrate Formspree, add error handling and improve UI#21

Merged
devcavin merged 2 commits into
mainfrom
client
Jul 6, 2026
Merged

feat: update contact form to integrate Formspree, add error handling and improve UI#21
devcavin merged 2 commits into
mainfrom
client

Conversation

@devcavin

@devcavin devcavin commented Jul 5, 2026

Copy link
Copy Markdown
Owner

This pull request updates the Contact form in the frontend to submit requests directly to Formspree, improves user feedback and error handling, and refines the form’s UI. It also adds the necessary Formspree and Stripe dependencies, and improves environment variable and .gitignore handling.

Contact Form Integration and UI Improvements

  • The Contact form (Contact.tsx) now submits data directly to a Formspree endpoint, using the VITE_FORMSPREE_ENDPOINT environment variable, and provides user feedback for loading, success, and error states. The form also includes a honeypot field for spam prevention and improved accessibility and styling. The previous generic field wrapper was removed in favor of explicit markup for each field. [1] [2] [3] [4]
  • The About section headline was updated for clarity and context.

Dependency and Environment Management

  • Added @formspree/react, @formspree/core, @stripe/react-stripe-js, @stripe/stripe-js, and related dependencies to package.json and package-lock.json to support Formspree integration. [1] [2] [3] [4] [5] [6] [7] [8]
  • Updated .gitignore to exclude .env and .env.local files, and removed the hardcoded VITE_API_BASE_URL from .env to prevent accidental commits of sensitive data. [1] [2]

@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gatelog Ready Ready Preview, Comment Jul 6, 2026 8:30pm

@devcavin
devcavin merged commit ffbcdf0 into main Jul 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant