update contact form

This commit is contained in:
Tben 2022-01-06 09:22:49 +01:00
parent 281adb8a44
commit 6ee17d1fe2

View File

@ -15,8 +15,8 @@ const contact = () => {
</span>
<form autoComplete='on' onSubmit={(e) => { submitContactForm(e, setSuccess) }}>
<input type="text" placeholder='Your Name' autoComplete='name' />
<input type="email" placeholder='Your Email Address' autoComplete='email' />
<input type="text" placeholder='Your Name' autoComplete='name' required />
<input type="email" placeholder='Your Email Address' autoComplete='email' required />
<textarea name="message" id="contact-form-message" cols="30" rows="10" placeholder='Message'></textarea>
<button type="submit">Submit</button>
{success === "Success" && <div className='message-response'>Success!!! <button onClick={() => { window.location.reload() }}>Reload</button></div>}