-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCharacterForm.js
45 lines (44 loc) · 1.31 KB
/
CharacterForm.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
import styles from './CharacterForm.module.css';
export default function CharacterForm() {
return (
<form
name="custom"
action="/success"
method="POST"
className={styles.form}
data-netlify="true"
>
<input type="hidden" name="form-name" value="custom" />
<p>
<label htmlFor="yourname">Character name: </label>
<br />
<input type="text" name="name" id="charname" />
</p>
<p>
<label htmlFor="pronouns">Character pronouns: </label>
<br />
<input type="radio" id="masc" name="gender" value="masc" />
<label htmlFor="masc">He/Him</label>
<br />
<input type="radio" id="fem" name="gender" value="fem" />
<label htmlFor="fem">She/Her</label>
<br />
<input type="radio" id="nb" name="gender" value="nb" />
<label htmlFor="nb">They/Them</label>
</p>
<p>
<label htmlFor="smell">Character's favorite smell: </label>
<br />
<input type="text" name="smell" id="charsmell" />
</p>
<p>
<label htmlFor="youremail">Your Email: </label>
<br />
<input type="email" name="email" id="youremail" />
</p>
<p className={styles.submit}>
<button type="submit">Send</button>
</p>
</form>
);
}