forked from pulumi/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
form-section.html
48 lines (48 loc) · 2.51 KB
/
form-section.html
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
{{ if isset .form "section_id" }}
<section id="{{ .form.section_id }}" class="py-8 bg-gray-200 px-4">
<div class="container mx-auto max-w-6xl py-8 sm:px-10 text-sm relative">
<div class="mb-8 md:flex md:my-8 md:max-w-32 align-top">
{{ if isset .form "quote" }}
<div class="md:w-5/12 md:pt-10 md:mr-8">
<h2 class="text-gray-800">
{{ .form.quote.title }}
</h2>
<div class="relative py-8 px-10">
<i class="fa fa-quote-left text-white absolute top-0 left-0 ml-4 mt-4 text-5xl z-0"></i>
<p class="leading-loose mt-0 z-10 relative text-gray-800 text-sm">
{{ .form.quote.content }}
</p>
<div class="leading-relaxed flex items-start">
<div>
<div class="text-blue-700 font-semibold text-sm">
{{ .form.quote.name }}
</div>
<div class="text-blue-500">
{{ .form.quote.name_title }}
</div>
</div>
</div>
</div>
</div>
{{ end }}
<div class="mt-4 mx-auto md:w-7/12 md:mt-0 p-10 bg-white rounded rounded-lg shadow-lg border border-gray-300">
<h3 class="text-center">{{ .form.headline }}</h3>
<div class="mx-auto flex justify-center">
<div class="hs-form hs-form-fg-dark font-normal">
{{ partial "hubspot-form.html" (dict "hubspotFormID" .form.hubspot_form_id "classNames" .form.class_names) }}
</div>
</div>
</div>
</div>
</div>
</section>
{{ else }}
<div class="mt-4 mx-auto md:w-full md:mt-0 p-10 bg-white rounded rounded-lg shadow-lg border border-gray-300">
<h3 class="text-center">{{ .form.headline }}</h3>
<div class="mx-auto flex justify-center">
<div class="hs-form hs-form-fg-dark font-normal">
{{ partial "hubspot-form.html" (dict "hubspotFormID" .form.hubspot_form_id "classNames" .form.class_names) }}
</div>
</div>
</div>
{{ end }}