Skip to content

Implement User Contact Form#74

Merged
HimanshuHeda merged 1 commit intoHimanshuHeda:mainfrom
kshri381:feature
Oct 16, 2025
Merged

Implement User Contact Form#74
HimanshuHeda merged 1 commit intoHimanshuHeda:mainfrom
kshri381:feature

Conversation

@kshri381
Copy link
Contributor

This pull request introduces a "Contact Us" feature, creating a direct communication channel for users to provide feedback, report bugs, or make general inquiries.

This PR implements the following:
A new standalone React component, ContactForm.tsx, built with TypeScript.
Form fields for Name, Email, and Message.
Client-side validation to ensure all fields are required and the email format is valid.
User-friendly status messages for sending, success, and error states.
The component is styled using Tailwind CSS for a clean and modern look.

⚠️ Important Note on Visibility
Please be aware that there appears to be an existing, unrelated issue with the main site's header component. This external issue is causing layout problems that prevent the new contact form from being displayed correctly on the main development site.

The code in this PR is fully functional. I have deployed and tested the ContactForm component in isolation on a separate local environment, and it works perfectly as intended. The rendering issue you may see is not caused by the changes in this pull request.

To review this PR effectively, please consider testing the component on a clean page or be prepared to inspect the DOM to see the form.

How to Test
Pull down this branch.
Navigate to the page where the ContactForm component is rendered.
Test Empty State Validation: Click the "Submit Message" button without filling out any fields.

Expected: Error messages should appear below each required field.

Test Email Format Validation: Enter an invalid email format (e.g., "test@email").

Expected: An "Email address is invalid" error should appear.

Test Success State: Fill out all fields with valid data and click "Submit Message".

Expected: The button should change to "Sending...", and after a short delay, a success message should appear, and the form fields should clear.

##closed 72##

@vercel
Copy link

vercel bot commented Sep 12, 2025

@kshri381 is attempting to deploy a commit to the Himanshu Heda's projects Team on Vercel.

A member of the Team first needs to authorize it.

@netlify
Copy link

netlify bot commented Sep 12, 2025

👷 Deploy request for ziptales pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 9f59881

@github-actions
Copy link

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@HimanshuHeda HimanshuHeda merged commit 49350ca into HimanshuHeda:main Oct 16, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants