mirror of
https://github.com/BeardedTek/flowbite-beardedtek.com.git
synced 2025-12-06 05:31:52 +00:00
INITIAL COMMIT
This commit is contained in:
84
layouts/partials/contact/form.html
Normal file
84
layouts/partials/contact/form.html
Normal file
@@ -0,0 +1,84 @@
|
||||
<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">
|
||||
<div class="max-w-2xl mx-auto text-center mb-8">
|
||||
<h2 class="text-3xl font-extrabold tracking-tight text-gray-900 sm:text-4xl dark:text-white">
|
||||
{{ .Site.Data.contact.form.header.title}}
|
||||
</h2>
|
||||
<p class="mt-4 text-base text-gray-500 sm:text-xl dark:text-gray-500">
|
||||
{{ .Site.Data.contact.form.header.text}}
|
||||
</p>
|
||||
</div>
|
||||
<form 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" 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="Bonnie" 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" 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="Green" 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" 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="name@flowbite.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" 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="message" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">
|
||||
Your message
|
||||
</label>
|
||||
<textarea 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">
|
||||
By submitting this, you confirm that you have read and agree to
|
||||
<a href="#" title=""
|
||||
class="font-medium text-gray-900 underline hover:no-underline dark:text-white">
|
||||
Terms of Service
|
||||
</a>
|
||||
and
|
||||
<a href="#" title=""
|
||||
class="font-medium text-gray-900 underline hover:no-underline dark:text-white">
|
||||
Privacy Statement
|
||||
</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>
|
||||
Reference in New Issue
Block a user