-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
247 lines (245 loc) · 7.86 KB
/
index.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./src/index.css" />
<script type="module" src="./src/main.js"></script>
<!-- ally.js required for logger.js -->
<!-- <script src="https://unpkg.com/ally.js@1.4.1/ally.min.js"></script> -->
<!-- <script type="module" src="./src/logger.js"></script> -->
<title>Contact Form</title>
</head>
<body class="base centered">
<main>
<form
id="contact-form"
class="max-w-md rounded-2xl bg-black p-4"
action="https://formsapi.jabwn.com/key/sueyy1ybXtN9E4yhiZG0"
method="post"
>
<h1 class="text-xl border-b border-pink-500 inline-block">
Contact Form
</h1>
<!-- last and first two inputs are for form submission service -->
<input type="hidden" name="_valid[email]" value="required|valid_email" />
<input
type="text"
name="_honey"
value=""
style="display: none"
aria-hidden="true"
/>
<input
type="text"
name="_kitemt"
value=""
style="display: none"
aria-hidden="true"
/>
<!-- <input
type="hidden"
name="_confirmation"
value="Form sent, thank you!"
/> -->
<input
type="hidden"
name="_after"
value="https://vite-tailwind-form.surge.sh/sent.html"
/>
<fieldset class="my-8">
<legend class="block mb-4 font-semibold">
Please choose a colour
</legend>
<div class="grid grid-cols-5 place-items-start text-center">
<label for="blue">
<input
id="blue"
type="radio"
class="radio form-radio text-blue-600 bg-blue-600"
name="colour"
value="blue"
aria-label="Blue"
/>
Blue
</label>
<label for="green">
<input
id="green"
type="radio"
class="radio form-radio text-green-600 bg-green-600"
name="colour"
value="green"
aria-label="Green"
/>
Green
</label>
<label for="red">
<input
id="red"
type="radio"
class="radio form-radio text-red-600 bg-red-600"
name="colour"
value="red"
aria-label="Red"
/>
Red
</label>
<label for="black">
<input
id="black"
type="radio"
class="radio form-radio text-black bg-black"
name="colour"
value="black"
aria-label="Black"
/>
Black
</label>
<label for="brown">
<input
id="brown"
type="radio"
class="radio form-radio text-yellow-900 bg-yellow-900"
name="colour"
value="brown"
aria-label="Brown"
/>
Brown
</label>
</div>
</fieldset>
<fieldset class="my-8">
<legend class="block mb-4 font-semibold">
Please choose one or more animals
</legend>
<ul>
<li class="hover:text-white w-max">
<input
id="bear"
type="checkbox"
class="form-checkbox checkbox"
value="bear"
aria-label="Bear"
name="bear"
/>
<label for="bear">Bear</label>
</li>
<li class="hover:text-white w-max">
<input
id="tiger"
type="checkbox"
class="form-checkbox checkbox"
value="tiger"
aria-label="Tiger"
name="tiger"
/>
<label for="tiger">Tiger</label>
<div
hidden
class="relative inline-block hidden"
id="tiger-toggle"
aria-live="polite"
>
<label
for="tiger-type"
class="absolute -top-4 left-0 pr-1 pl-0 ml-2 sm:ml-4 text-pink-500"
>Tiger type</label
>
<input
id="tiger-type"
name="tiger-type"
type="text"
autocomplete="on"
class="w-32 sm:w-full pr-1 pl-0 ml-2 sm:ml-4 bg-transparent border-transparent leading-tight focus:outline-none focus:ring-0 text-white hover:placeholder-gray-300 border-0 border-b border-pink-500 hover:border-blue-600"
placeholder="Siberian"
aria-label="Tiger type"
/>
<p class="required-msg hidden pr-1 pl-0 ml-2 sm:ml-4">
Required
</p>
</div>
</li>
<li class="hover:text-white w-max">
<input
type="checkbox"
class="form-checkbox checkbox"
value="snake"
aria-label="Snake"
name="snake"
id="snake"
/>
<label for="snake">Snake</label>
</li>
<li class="hover:text-white w-max">
<input
type="checkbox"
class="form-checkbox checkbox"
value="donkey"
aria-label="Donkey"
name="donkey"
id="donkey"
/>
<label for="donkey">Donkey</label>
</li>
</ul>
</fieldset>
<fieldset class="my-8">
<legend class="block my-2 font-semibold">
Please leave a contact email and password
</legend>
<div class="flex items-stretch py-2">
<div class="mr-3 relative">
<label for="email">Email</label>
<input
required
name="email"
id="email"
type="email"
autocomplete="on"
class="form-input textbox"
placeholder="my@email.com"
aria-label="Email"
/>
<p class="required-msg hidden">Required</p>
</div>
<div class="relative">
<label for="password">Password</label>
<input
required
name="password"
type="password"
id="password"
minlength="9"
class="form-input textbox"
placeholder="my-password"
aria-label="Password"
/>
<p class="required-msg hidden">Required</p>
</div>
</div>
</fieldset>
<div class="flex items-center w-min py-2">
<button
id="submit"
class="flex-shrink-0 bg-pink-600 hover:bg-white hover:text-pink-600 border-pink-600 text-sm text-white py-1 px-2 mr-2 rounded disabled:opacity-50 disabled:pointer-events-none"
type="submit"
aria-label="Submit contact form"
disabled
>
Send
</button>
<button
id="cancel"
class="flex-shrink-0 border-transparent hover:text-white text-sm py-1 px-2 rounded"
type="button"
aria-label="Cancel contact form"
>
Cancel
</button>
</div>
</form>
</main>
</body>
</html>