Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 11 months ago

Accessible Contact Form (Vite, Typescript, Zod)

sass/scss, typescript, vite, zod, accessibility
Gwenaël Magnenat•1,540
@gmagnenat
A solution to the Contact form challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I liked working with Zod which allows me to have more specific error messages with a simple syntax.

I'm happy about how I used a dialog element for the form submit confirmation message. What do you think about it?

What challenges did you encounter, and how did you overcome them?

I had quite some troubles with the form validation logic and specifically with the typescript types. There should be some easier way to do this.

What specific areas of your project would you like help with?

I'd like suggestions on code organisation. I try to divide the code in different modules to reduce the number of functions in each files. I'm open to any suggestions.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Gwenaël Magnenat's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License