erick.is/_content/contact.njk

24 lines
1.2 KiB
Text
Raw Normal View History

2021-01-05 15:09:26 -05:00
---
title: Contact
---
<h1>{{ title }}</h1>
2021-02-11 22:11:20 -05:00
<script>
const accessTime = Date.now();
function formSubmit() {
document.querySelector('input[name="submit_time"]').value = parseInt((Date.now() - accessTime) / 1000, 10);
}
</script>
<form action="/_contact/contact.php" method="POST" class="flex flex-col" onsubmit="formSubmit()">
2021-02-12 08:33:54 -05:00
<input type="hidden" name="redirect" value="/contact/thanks.html">
2021-02-08 07:46:45 -05:00
<input type="hidden" name="subject" value="ERCH Contact Form">
2021-02-11 22:11:20 -05:00
<input type="hidden" name="submit_time" value="0">
<label for="name" class="mt-4">Your name:</label>
2021-02-08 08:10:17 -05:00
<input type="text" required id="name" name="name" class="p-2 dark:bg-gray-700 dark:text-gray-200 border-2 valid:border-green-600">
2021-01-08 08:51:51 -05:00
<label for="email" class="mt-4">Your email:</label>
2021-02-08 08:10:17 -05:00
<input type="email" required id="email" name="from" class="p-2 dark:bg-gray-700 dark:text-gray-200 border-2 valid:border-green-600">
<label for="message" class="mt-4">Your message:</label>
2021-02-08 08:10:17 -05:00
<textarea id="message" required name="message" class="h-48 p-2 dark:bg-gray-700 dark:text-gray-200 border-2 valid:border-green-600"></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">Submit</button>
</form>