conversataal / conversataal.github.io

http://conversataal.github.io
MIT License
0 stars 0 forks source link

Contact form #2

Closed mdvanes closed 7 years ago

mdvanes commented 7 years ago

Investigate: https://formspree.io/

mdvanes commented 7 years ago

Formspree seems like a good option.

Waiting for sign-off on design.

mdvanes commented 7 years ago

A problem arises when importing materialize-css JS. Since this has a dependency with jquery, remove it all together and rewrite the small amount of code needed for form elements.

Also make a React component for a form element that renders:

<div className="input-field col s6">
    <input id="contact_email" type="email" className="validate" required/>
    <label htmlFor="contact_email" data-error="Vul een geldig e-mail adres in">Uw e-mail</label>
</div>
mdvanes commented 7 years ago

Almost done, only needs feedback when message has been sent correctly.

In this case a JSON is returned of this form:

{
  "next": "/thanks?next=http%3A%2F%2Fwww.conversaschool.nl%2F", 
  "success": "email sent"
}