Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Contact Form using server-side validation and Netlify Functions

parcel, typescript, sass/scss
P
James•340
@james-work-account
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 used this challenge as an excuse to play around with Netlify Functions, which were remarkably user-friendly in the end. It was also the first time I've tried using GitHub Copilot on a personal project. Fun stuff!

I'd love to learn how to properly test my TS code. I'm not very familiar with unit testing TS/JS, so getting used to that could be good going forwards. I'm aware that a lot of my functions have side-effects so testing them as-is would be tricky; I'd likely need to refactor my code to be more functional and pure in order to test it effectively.

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

For some reason I really struggled to get the fonts loaded properly, which I didn't expect considering the fonts are loaded locally. I suppose Parcel prefers you to purely src: url("fonts/static/whatever"), rather than also adding something to the ``.

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

If you have any code quality or accessibility suggestions please let me know, as I'm aware I somewhat rushed the frontend side of things so I could get stuck in with faffing with TypeScript and Netlify Functions.

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 James'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