erick.is/_content/contact.njk
2021-01-08 08:41:07 -05:00

23 lines
1.1 KiB
Text

---
title: Contact
headscripts:
- https://www.google.com/recaptcha/api.js
---
<h1>{{ title }}</h1>
<script>
function onSubmit(token) {
document.getElementById("contact-form").submit();
}
</script>
<form action="https://formspree.io/f/mzbkydal" method="POST" class="flex flex-col" id="contact-form">
<input type="hidden" name="_subject" value="Contact Form" />
<label for="name" class="mt-4">Your name:</label>
<input type="text" required="required" id="name" name="name" class="p-2 dark:bg-gray-700 dark:text-gray-200">
<label for="_replyto" class="mt-4">Your email:</label>
<input type="email" required="required" id="_replyto" name="_replyto" class="p-2 dark:bg-gray-700 dark:text-gray-200">
<label for="message" class="mt-4">Your message:</label>
<textarea id="message" required="required" name="message" class="h-48 p-2 dark:bg-gray-700 dark:text-gray-200"></textarea>
<button class="mt-4 p-2 bg-gray-600 text-gray-200 dark:bg-gray-200 dark:text-gray-600 font-bold rounded-full g-recaptcha" data-sitekey="6LfNwyUaAAAAAH18i_mA70aeQHdbMT4RLzMLaxuc" data-callback='onSubmit'>Submit</button>
</form>