Skip to content

Instantly share code, notes, and snippets.

@eddyizm
Last active December 13, 2017 01:16
Show Gist options
  • Save eddyizm/6835c998aead6ecfd24c8b8d53411cc0 to your computer and use it in GitHub Desktop.
Save eddyizm/6835c998aead6ecfd24c8b8d53411cc0 to your computer and use it in GitHub Desktop.
Form code
<form id="contactform" action-xhr="//formspree.io/[email protected]" method="POST">
<label class="www-example-label bold mb3">Send a message</label>
<input type="hidden" name="_next" value="//resume/thanks/">
<div class="flex flex-column items-center">
<div class="ampstart-input inline-block relative m0 p0 mb3 ">
<input type="email" name="email" id="ip1" class="block border-none p0 m0 user-valid valid" placeholder="Your email">
<label for="ip1" class="absolute top-0 right-0 bottom-0 left-0" aria-hidden="true">Your email</label>
</div>
</div>
<div class="ampstart-input inline-block relative m0 p0 mb3 ">
<textarea name="message" class="block border-none p0 m0 user-valid valid" id="ip2" placeholder="Your message"></textarea>
<label for="ip2" class="absolute top-0 right-0 bottom-0 left-0" aria-hidden="true">Your message</label>
</div>
<div>
<button id="sendBtn" class="ampstart-btn" type="submit">Send</button>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment