|
1 | 1 | --- |
| 2 | +
|
2 | 3 | --- |
3 | 4 |
|
4 | | - <p>Here's an example of a Netlify Form! When you fill this out, the submissions can be found in the Netlify Admin site.</p> |
5 | | - <div class="feedback-form"> |
6 | | - <form |
7 | | - data-netlify="true" |
8 | | - netlify-honeypot |
9 | | - name="feedback" |
10 | | - method="POST" |
11 | | - action="/success" |
12 | | - > |
13 | | - <p class="hidden"> |
14 | | - <label> |
15 | | - Don’t fill this out if you’re human: <input name="bot-field" /> |
16 | | - </label> |
17 | | - </p> |
18 | | - <input type="hidden" name="form-name" value="feedback" /> |
19 | | - <label for="name">Name</label> |
20 | | - <input id="name" type="text" name="name" /> |
21 | | - <label for="email">Email</label> |
22 | | - <input id="email" type="email" name="email" required /> |
23 | | - <label for="feedback">What is your feedback?</label> |
24 | | - <textarea id="feedback" wrap="soft" name="feedback" required></textarea> |
25 | | - <button type="submit">Submit</button> |
26 | | - </form> |
27 | | - </div> |
| 5 | +<p> |
| 6 | + Here's an example of a Netlify Form! When you fill this out, the submissions |
| 7 | + can be found in the Netlify Admin site. |
| 8 | +</p> |
| 9 | +<div class="feedback-form"> |
| 10 | + <form |
| 11 | + data-netlify="true" |
| 12 | + netlify-honeypot |
| 13 | + name="feedback" |
| 14 | + method="POST" |
| 15 | + action="/success" |
| 16 | + > |
| 17 | + <p class="hidden"> |
| 18 | + <label> |
| 19 | + Don’t fill this out if you’re human: <input name="bot-field" /> |
| 20 | + </label> |
| 21 | + </p> |
| 22 | + <input type="hidden" name="form-name" value="feedback" /> |
| 23 | + <label for="name">Name</label> |
| 24 | + <input id="name" type="text" name="name" /> |
| 25 | + <label for="email">Email</label> |
| 26 | + <input id="email" type="email" name="email" required /> |
| 27 | + <label for="feedback">What is your feedback?</label> |
| 28 | + <textarea id="feedback" wrap="soft" name="feedback" required></textarea> |
| 29 | + <button type="submit">Submit</button> |
| 30 | + </form> |
| 31 | +</div> |
28 | 32 |
|
29 | 33 | <style> |
30 | 34 | .feedback-form { |
31 | | - margin: 40px 40px; |
32 | | - min-width: 250px; |
33 | | - width: 45%; |
34 | | -} |
35 | | -label { |
36 | | - font-size: 16px; |
37 | | -} |
38 | | -input, |
39 | | -textarea, |
40 | | -button { |
41 | | - border-radius: 5px; |
42 | | - border: 1px solid #cbd5e1; |
43 | | - font-size: inherit; |
44 | | - margin: 15px 0; |
45 | | - padding: 12px 20px; |
46 | | - width: 100%; |
47 | | -} |
48 | | -button { |
49 | | - background-color: #2bdcd2; |
50 | | - border: 1px solid #2bdcd2; |
51 | | - color: #1e293b; |
52 | | - font-size: 16px; |
53 | | - width: 50%; |
54 | | -} |
55 | | -.hidden { |
56 | | - clip: rect(0 0 0 0); |
57 | | - clip-path: inset(50%); |
58 | | - height: 1px; |
59 | | - overflow: hidden; |
60 | | - position: absolute; |
61 | | - white-space: nowrap; |
62 | | - width: 1px; |
63 | | -} |
| 35 | + margin: 40px 40px; |
| 36 | + min-width: 250px; |
| 37 | + width: 45%; |
| 38 | + } |
| 39 | + label { |
| 40 | + font-size: 16px; |
| 41 | + } |
| 42 | + input, |
| 43 | + textarea, |
| 44 | + button { |
| 45 | + border-radius: 5px; |
| 46 | + border: 1px solid #cbd5e1; |
| 47 | + font-size: inherit; |
| 48 | + margin: 15px 0; |
| 49 | + padding: 12px 20px; |
| 50 | + width: 100%; |
| 51 | + } |
| 52 | + button { |
| 53 | + background-color: #2bdcd2; |
| 54 | + border: 1px solid #2bdcd2; |
| 55 | + color: #1e293b; |
| 56 | + font-size: 16px; |
| 57 | + width: 50%; |
| 58 | + } |
| 59 | + .hidden { |
| 60 | + clip: rect(0 0 0 0); |
| 61 | + clip-path: inset(50%); |
| 62 | + height: 1px; |
| 63 | + overflow: hidden; |
| 64 | + position: absolute; |
| 65 | + white-space: nowrap; |
| 66 | + width: 1px; |
| 67 | + } |
64 | 68 | </style> |
65 | | - |
|
0 commit comments