diff options
Diffstat (limited to 'layouts/shortcodes')
| -rw-r--r-- | layouts/shortcodes/form-contact.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/layouts/shortcodes/form-contact.html b/layouts/shortcodes/form-contact.html new file mode 100644 index 0000000..d06b248 --- /dev/null +++ b/layouts/shortcodes/form-contact.html | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | {{ $.Scratch.Add "labelClasses" "f6 b db mb1 mt3 sans-serif mid-gray" }} | ||
| 2 | {{ $.Scratch.Add "inputClasses" "w-100 f5 pv3 ph3 bg-light-gray bn" }} | ||
| 3 | |||
| 4 | <form class="black-80 sans-serif" accept-charset="UTF-8" action="{{ .Get "action" }}" method="POST" role="form"> | ||
| 5 | |||
| 6 | <label class="{{ $.Scratch.Get "labelClasses" }}" for="name">{{ i18n "yourName" }}</label> | ||
| 7 | <input type="text" id="name" name="name" class="{{ $.Scratch.Get "inputClasses" }}" required placeholder=" " aria-labelledby="name"/> | ||
| 8 | |||
| 9 | <label class="{{ $.Scratch.Get "labelClasses" }}" for="email">{{ i18n "emailAddress" }}</label> | ||
| 10 | <input type="email" id="email" name="email" class="{{ $.Scratch.Get "inputClasses" }}" required placeholder=" " aria-labelledby="email"/> | ||
| 11 | <div class="requirements f6 gray glow i ph3 overflow-hidden"> | ||
| 12 | {{ i18n "emailRequiredNote" }} | ||
| 13 | </div> | ||
| 14 | |||
| 15 | <label class="{{ $.Scratch.Get "labelClasses" }}" for="message">{{ i18n "message" }}</label> | ||
| 16 | <textarea id="message" name="message" class="{{ $.Scratch.Get "inputClasses" }} h4" aria-labelledby="message"></textarea> | ||
| 17 | |||
| 18 | <input class="db w-100 mv2 white pa3 bn hover-shadow hover-bg-black bg-animate bg-black" type="submit" value="{{ i18n "send" }}" /> | ||
| 19 | |||
| 20 | </form> | ||
