Files
flowbite-beardedtek.com/layouts/partials/contact/form.html

83 lines
5.9 KiB
HTML

<section class="bg-white dark:bg-gray-900">
<div class="max-w-screen-xl px-4 py-6 mx-auto sm:py-8 lg:py-10">
<div class="max-w-3xl mx-auto mt-8 lg:mt-12">
<form name="contact" method="{{ .Page.Params.form.method }}" action="{{ .Page.Params.form.action}}" class="grid max-w-screen-md grid-cols-1 mx-auto gap-x-8 gap-y-6 sm:grid-cols-2">
<div>
<label for="first-name" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">
First name
</label>
<input type="text" name="first-name" id="first-name"
class="block w-full p-2.5 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500"
placeholder="John" required>
</div>
<div>
<label for="last-name" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">
Last name
</label>
<input type="text" name="last-name" id="last-name"
class="block w-full p-2.5 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500"
placeholder="Doe" required>
</div>
<div>
<label for="email" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">
Your email
</label>
<input type="email" name="email" id="email"
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-primary-500 focus:border-primary-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500"
placeholder="jdoe@myemail.com" required>
</div>
<div>
<label for="phone-number" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">
Phone number
</label>
<input type="number" name="phone-number" id="phone-number"
class="block w-full p-2.5 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500"
placeholder="(907) 123-4567" required>
</div>
<div class="sm:col-span-2">
<label for="subject" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Subject</label>
<select id="subject" name="subject" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
{{ range $key, $value := .Site.Data.contact.form.subjects }}
<option value="{{ .value }}">{{ .name }}</option>
{{ end }}
</select>
</div>
<div class="sm:col-span-2">
<label for="message" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">
Your message
</label>
<textarea name="message" id="message" rows="6"
class="block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500"
placeholder=""></textarea>
</div>
<div class="sm:col-span-2">
<div class="flex md:items-center">
<input type="checkbox" id="terms" required value=""
class="w-4 h-4 bg-gray-100 border-gray-300 rounded-sm text-primary-600 focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
<label for="terms" class="ml-2 text-sm font-normal text-gray-500 dark:text-gray-400">
You confirm that you have read and agree to our
<a href="/terms/" title="Terms and Conditions"
class="font-medium text-gray-900 underline hover:no-underline dark:text-white">
Terms and Conditions
</a>
and
<a href="/privacy/" title="Privacy Policy"
class="font-medium text-gray-900 underline hover:no-underline dark:text-white">
Privacy Policy
</a>.
</label>
</div>
</div>
<button type="submit"
class="px-5 py-3 text-sm font-medium text-center text-white rounded-lg bg-primary-700 sm:w-fit hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800">Send
message</button>
</form>
</div>
</div>
</section>