generated from netlify-templates/nextjs-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FeedbackForm.js
55 lines (51 loc) · 1.4 KB
/
FeedbackForm.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import styles from "./FeedbackForm.module.css";
import Image from "next/image";
import dogPic from "../public/dogs.jpg"
export default function FeedbackForm() {
return (
<section className="contact-section">
<form
className={styles.form}
data-netlify="true"
data-netlify-honeypot="bot-field"
name="feedback"
method="POST"
action="/success"
>
<input type="hidden" name="form-name" value="feedback" />
<p className={styles.hidden}>
<label>
Don’t fill this out if you’re human: <input name="bot-field" />
</label>
</p>
<label htmlFor="name">Name</label>
<input
id="name"
className={styles["form-field"]}
type="text"
name="name"
/>
<label htmlFor="email">Email</label>
<input
id="email"
className={styles["form-field"]}
type="email"
name="email"
required
/>
<label htmlFor="body">How may we help you?</label>
<textarea
id="body"
className={styles["form-field"]}
wrap="soft"
name="feedback"
required
></textarea>
<button className={styles.button} type="submit">
Submit
</button>
</form>
<Image src={dogPic} className="contact-img"/>
</section>
);
}