SiteWebAstrolabe/src/_includes/partials/components/contact-form.njk

23 lines
1.0 KiB
Plaintext
Raw Normal View History

2020-06-19 23:47:44 +02:00
{% from "macros/form.njk" import label, field, textarea, button %}
<form name="contact" method="POST" data-netlify="true" action="/thank-you" netlify-honeypot="bot-field">
<ol class="[ field-list ]">
<li class="[ field-list__field-group ]">
{{ label("Whats your name?", "name") }}
{{ field( "text", "name", { required: true, placeholder: "Katherine Johnson", autocomplete: "name", autocorrect: "off", autocapitalize: "off" } ) }}
</li>
<li class="[ field-list__field-group ]">
{{ label("Whats your email address?", "email") }}
{{ field( "email", "email", { required: true, placeholder: "katherine@johnson.tld", autocomplete: "email" } ) }}
</li>
<li class="[ field-list__field-group ]">
{{ label("Whats on your mind?", "message") }}
{{ textarea( "message", { required: true, autocapitalize: "sentences", spellcheck: "true" } ) }}
</li>
<li hidden>
<label>Dont fill this out if you're human: <input name="bot-field" /></label>
</li>
</ol>
{{ button("Send message") }}
</form>