-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.html
More file actions
60 lines (59 loc) · 3.36 KB
/
Copy pathcontact.html
File metadata and controls
60 lines (59 loc) · 3.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
layout: page
title: Contact Us
description: Don't hesitate, just type what you want to say to us...
---
<section class="text-gray-600 body-font relative">
<div class="container px-5 py-24 mx-auto">
<div class="flex flex-col text-center w-full mb-12">
<h1 class="sm:text-3xl text-2xl font-medium title-font mb-4 text-gray-900">{{ page.title | default: "Talk to us" }}</h1>
<p class="lg:w-2/3 mx-auto leading-relaxed text-base">{{ page.description | default: "Don't hesitate, just type what you want to say to us..." }}</p>
</div>
{% if site.contact.formspree_form_id %}
<form accept-charset="UTF-8" method="POST" action="https://formspree.io/f/{{ site.contact.formspree_form_id }}" ref="contact">
{% endif %}
<div class="lg:w-1/2 md:w-2/3 mx-auto">
<div class="flex flex-wrap -m-2">
{% if site.contact.formspree_form_id %}
<input type="hidden" name="_subject" value="{{ site.contact.subject | default: 'New contact!' }}" />
<input type="hidden" name="_next" value="{{ site.url | append: site.baseurl }}{{ site.contact.sent_message_url }}" />
<input type="hidden" name="_language" value="{{ site.language }}" />
<div class="p-2 w-1/2">
<div class="relative">
<label for="name" class="leading-7 text-sm text-gray-600">Name</label>
<input type="text" id="name" name="name" class="w-full bg-gray-100 bg-opacity-50 rounded border border-gray-300 focus:border-red-500 focus:bg-white focus:ring-2 focus:ring-red-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out">
</div>
</div>
<div class="p-2 w-1/2">
<div class="relative">
<label for="email" class="leading-7 text-sm text-gray-600">Email</label>
<input type="text" id="email" name="email" class="w-full bg-gray-100 bg-opacity-50 rounded border border-gray-300 focus:border-red-500 focus:bg-white focus:ring-2 focus:ring-red-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out">
</div>
</div>
<div class="p-2 w-full">
<div class="relative">
<label for="message" class="leading-7 text-sm text-gray-600">Message</label>
<textarea id="message" name="message" class="w-full bg-gray-100 bg-opacity-50 rounded border border-gray-300 focus:border-red-500 focus:bg-white focus:ring-2 focus:ring-red-200 h-32 text-base outline-none text-gray-700 py-1 px-3 resize-none leading-6 transition-colors duration-200 ease-in-out"></textarea>
</div>
</div>
<div class="p-2 w-full">
<button type="submit" class="flex mx-auto text-white bg-red-500 border-0 py-2 px-8 focus:outline-none hover:bg-'red'-600 rounded text-lg">Send</button>
</div>
{% endif %}
<div class="p-2 w-full pt-8 mt-8 border-t border-gray-200 text-center">
{% if site.contact.email %}
<a class="text-red-500">{{site.contact.email}}</a>
{% endif %}
{% if site.contact.address %}
<p class="leading-normal my-5">
{{site.contact.address}}
</p>
{% endif %}
</div>
</div>
</div>
{% if site.contact.formspree_form_id %}
</form>
{% endif %}
</div>
</section>