Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contact form #221

Merged
merged 5 commits into from
Feb 15, 2025
Merged

Contact form #221

merged 5 commits into from
Feb 15, 2025

Conversation

elliot-liu-12
Copy link
Collaborator

Adds functionality to contact form on 'About' page of website

Copy link

vercel bot commented Feb 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
uf-sase-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 15, 2025 0:04am

@TheRickyZhang
Copy link
Collaborator

Make sure to request review when you're ready to merge

html: formHTML,
}),
});
console.log(resp.status);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove/comment out the console logs

Copy link
Collaborator

@ssihala ssihala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove/comment out the console log statements and I'll merge. Looks good otherwise!

body: JSON.stringify(data),
});
if (!resp.ok) {
throw new Error(`Response status: ${resp.status}"`);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice if we had a toast for errors but I guess it's not too necessary if our API endpoint is reliable

@armans-code
Copy link
Collaborator

Do we also want to email the form submitter a confirmation email? Maybe it's not necessary, just a random thought :)

@elliot-liu-12 elliot-liu-12 merged commit bc23295 into main Feb 15, 2025
6 checks passed
@ufsasewebmaster ufsasewebmaster deleted the contact-form branch February 15, 2025 00:09
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.

4 participants