Added captcha to contact form

dependabot/npm_and_yarn/typescript-eslint/parser-4.33.0
Guusvanmeerveld 4 years ago
parent 0bfb6a749d
commit 7848de25e7

@ -4,12 +4,12 @@ const Contact = () => (
<div className="header" id="contact"> <div className="header" id="contact">
Contact Contact
</div> </div>
<form className="content" method="POST" data-netlify="true" name="contact"> <form className="content" method="POST" data-netlify="true" name="contact" data-netlify-recaptcha="true">
<fieldset> <fieldset>
<label htmlFor="email">Email</label> <label htmlFor="email">Email</label>
<input name="email" type="email" required placeholder="Your email address" id="email" /> <input name="email" type="email" required placeholder="Your email address" id="email" />
<label htmlFor="type">Message type</label> <label htmlFor="type">Message type</label>
<select name="type" id="type"> <select name="type[]" id="type">
<option value="bug">Bug</option> <option value="bug">Bug</option>
<option value="question">Question</option> <option value="question">Question</option>
<option value="suggestion">Suggestion</option> <option value="suggestion">Suggestion</option>
@ -17,7 +17,10 @@ const Contact = () => (
</select> </select>
<label htmlFor="message">Message</label> <label htmlFor="message">Message</label>
<textarea required name="message" placeholder="Your message" id="message"></textarea> <textarea required name="message" placeholder="Your message" id="message"></textarea>
<input className="button" type="submit" value="Send" /> <div data-netlify-recaptcha="true"></div>
<button className="button" type="submit">
Send
</button>
</fieldset> </fieldset>
</form> </form>
</div> </div>

Loading…
Cancel
Save