-
Notifications
You must be signed in to change notification settings - Fork 101
/
modals.html
378 lines (345 loc) · 19.5 KB
/
modals.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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- Css -->
<link rel="stylesheet" href="./dist/styles.css">
<link rel="stylesheet" href="./dist/all.css">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i,700,700i" rel="stylesheet">
<title>Modals | Tailwind Admin</title>
</head>
<body>
<!--Container -->
<div class="mx-auto bg-gray-300est">
<!--Screen-->
<div class="min-h-screen flex flex-col">
<!--Header Section Starts Here-->
<header class="bg-nav">
<div class="flex justify-between">
<div class="p-1 mx-3 inline-flex items-center">
<i class="fas fa-bars pr-2 text-white" onclick="sidebarToggle()"></i>
<h1 class="text-white p-2">Logo</h1>
</div>
<div class="p-1 flex flex-row items-center">
<img onclick="profileToggle()" class="inline-block h-8 w-8 rounded-full" src="https://avatars0.githubusercontent.com/u/4323180?s=460&v=4" alt="">
<a href="#" onclick="profileToggle()" class="text-white p-2 no-underline hidden md:block lg:block">Adam Wathan</a>
<div id="ProfileDropDown" class="rounded hidden shadow-md bg-white absolute top-0 mt-12 mr-1 right-0">
<ul class="list-reset">
<li><a href="#" class="no-underline px-4 py-2 block text-black hover:bg-gray-300">My account</a></li>
<li><a href="#" class="no-underline px-4 py-2 block text-black hover:bg-gray-300">Notifications</a></li>
<li><hr class="border-t mx-2 border-gray-ligght"></li>
<li><a href="#" class="no-underline px-4 py-2 block text-black hover:bg-gray-300">Logout</a></li>
</ul>
</div>
</div>
</div>
</header>
<!--/Header-->
<div class="flex flex-1">
<!--Sidebar-->
<aside id="sidebar" class="bg-side-nav w-1/2 md:w-1/6 lg:w-1/6 border-r border-side-nav hidden md:block lg:block">
<div class="flex">
</div>
<ul class="list-reset flex flex-col">
<li class=" w-full h-full py-3 px-2 border-b border-300-border ">
<a href="index.html"
class="font-sans font-hairline hover:font-normal text-sm text-nav-item no-underline">
<i class="fas fa-tachometer-alt float-left mx-2"></i>
Dashboard
<span><i class="fas fa-angle-right float-right"></i></span>
</a>
</li>
<li class="w-full h-full py-3 px-2 border-b border-300-border">
<a href="forms.html"
class="font-sans font-hairline hover:font-normal text-sm text-nav-item no-underline">
<i class="fab fa-wpforms float-left mx-2"></i>
Forms
<span><i class="fa fa-angle-right float-right"></i></span>
</a>
</li>
<li class="w-full h-full py-3 px-2 border-b border-300-border">
<a href="buttons.html"
class="font-sans font-hairline hover:font-normal text-sm text-nav-item no-underline">
<i class="fas fa-grip-horizontal float-left mx-2"></i>
Buttons
<span><i class="fa fa-angle-right float-right"></i></span>
</a>
</li>
<li class="w-full h-full py-3 px-2 border-b border-light-border">
<a href="tables.html"
class="font-sans font-hairline hover:font-normal text-sm text-nav-item no-underline">
<i class="fas fa-table float-left mx-2"></i>
Tables
<span><i class="fa fa-angle-right float-right"></i></span>
</a>
</li>
<li class="w-full h-full py-3 px-2 border-b border-300-border">
<a href="ui.html"
class="font-sans font-hairline hover:font-normal text-sm text-nav-item no-underline">
<i class="fab fa-uikit float-left mx-2"></i>
Ui components
<span><i class="fa fa-angle-right float-right"></i></span>
</a>
</li>
<li class="w-full h-full py-3 px-2 border-b border-300-border">
<a href="modals.html" class="font-sans font-hairline hover:font-normal text-sm text-nav-item no-underline">
<i class="fas fa-square-full float-left mx-2"></i>
Modals
<span><i class="fa fa-angle-right float-right"></i></span>
</a>
</li>
<li class="w-full h-full py-3 px-2">
<a href="#"
class="font-sans font-hairline hover:font-normal text-sm text-nav-item no-underline">
<i class="far fa-file float-left mx-2"></i>
Pages
<span><i class="fa fa-angle-down float-right"></i></span>
</a>
<ul class="list-reset -mx-2 bg-white-medium-dark">
<li class="border-t mt-2 border-300-border w-full h-full px-2 py-3">
<a href="login.html"
class="mx-4 font-sans font-hairline hover:font-normal text-sm text-nav-item no-underline">
Login Page
<span><i class="fa fa-angle-right float-right"></i></span>
</a>
</li>
<li class="border-t border-300-border w-full h-full px-2 py-3">
<a href="register.html"
class="mx-4 font-sans font-hairline hover:font-normal text-sm text-nav-item no-underline">
Register Page
<span><i class="fa fa-angle-right float-right"></i></span>
</a>
</li>
<li class="border-t border-300-border w-full h-full px-2 py-3">
<a href="404.html"
class="mx-4 font-sans font-hairline hover:font-normal text-sm text-nav-item no-underline">
404 Page
<span><i class="fa fa-angle-right float-right"></i></span>
</a>
</li>
</ul>
</li>
</ul>
</aside>
<!--/Sidebar-->
<!--Main-->
<main class="bg-white-medium flex-1 p-3 overflow-hidden">
<div class='flex flex-col'>
<div class='flex flex-1 flex-col md:flex-row lg:flex-row mx-2'>
<div class="mb-2 mx-2 border-solid border-gray-300 rounded border shadow-sm w-full md:w-1/2 lg:w-1/2">
<div class="bg-gray-200 px-2 py-3 border-solid border-gray-300 border-b">
Topped Modal
</div>
<div class="p-3">
<button data-modal='toppedModal'
class="modal-trigger bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Open Modal
</button>
</div>
</div>
<div class="mb-2 mx-2 border-solid border-gray-300 rounded border shadow-sm w-full md:w-1/2 lg:w-1/2">
<div class="bg-gray-200 px-2 py-3 border-solid border-gray-300 border-b">
Centered Modal
</div>
<div class="p-3">
<button data-modal='centeredModal'
class="modal-trigger bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Open modal
</button>
</div>
</div>
</div>
<div class='flex flex-1 flex-col md:flex-row lg:flex-row mx-2'>
<div class="mb-2 mx-2 border-solid border-gray-300 rounded border shadow-sm w-full md:w-1/2 lg:w-1/2">
<div class="bg-gray-200 px-2 py-3 border-solid border-gray-300 border-b">
Centered with form
</div>
<div class="p-3">
<button data-modal='centeredFormModal'
class="modal-trigger bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Open modal
</button>
</div>
</div>
<div class="mb-2 mx-2 border-solid border-gray-300 rounded border shadow-sm w-full md:w-1/2 lg:w-1/2">
<div class="bg-gray-200 px-2 py-3 border-solid border-gray-300 border-b">
Large size modal
</div>
<div class="p-3">
<button data-modal='largeSizeModal'
class="modal-trigger bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Open modal
</button>
</div>
</div>
</div>
</div>
</main>
<!--/Main-->
</div>
<!--Footer-->
<footer class="bg-gray-900 text-white p-2">
<div class="flex flex-1 mx-auto">© My Design</div>
</footer>
<!--/footer-->
</div>
</div>
<!-- Topped Modal -->
<div id='toppedModal' class="modal-wrapper">
<div class="overlay close-modal"></div>
<div class="modal">
<div class="modal-content shadow-lg p-5">
<div class="border-b p-2 pb-3 pt-0 mb-4">
<div class="flex justify-between items-center">
Modal header
<span class='close-modal cursor-pointer px-3 py-1 rounded-full bg-gray-100 hover:bg-gray-200'>
<i class="fas fa-times text-gray-700"></i>
</span>
</div>
</div>
<!-- Modal content -->
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Sint impedit placeat nulla accusamus tempora, error inventore, ducimus est soluta voluptatem eligendi, saepe ullam non ratione laboriosam itaque cumque? Eaque, excepturi.
</p>
</div>
</div>
</div>
<!-- Centered Modal -->
<div id='centeredModal' class="modal-wrapper">
<div class="overlay close-modal"></div>
<div class="modal modal-centered">
<div class="modal-content shadow-lg p-5">
<div class="border-b p-2 pb-3 pt-0 mb-4">
<div class="flex justify-between items-center">
Modal header
<span class='close-modal cursor-pointer px-3 py-1 rounded-full bg-gray-100 hover:bg-gray-200'>
<i class="fas fa-times text-gray-700"></i>
</span>
</div>
</div>
<!-- Modal content -->
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Sint impedit placeat nulla accusamus tempora, error inventore, ducimus est soluta voluptatem eligendi, saepe ullam non ratione laboriosam itaque cumque? Eaque, excepturi.
</p>
</div>
</div>
</div>
<!-- Centered With a Form Modal -->
<div id='centeredFormModal' class="modal-wrapper">
<div class="overlay close-modal"></div>
<div class="modal modal-centered">
<div class="modal-content shadow-lg p-5">
<div class="border-b p-2 pb-3 pt-0 mb-4">
<div class="flex justify-between items-center">
Modal header
<span class='close-modal cursor-pointer px-3 py-1 rounded-full bg-gray-100 hover:bg-gray-200'>
<i class="fas fa-times text-gray-700"></i>
</span>
</div>
</div>
<!-- Modal content -->
<form id='form_id' class="w-full">
<div class="flex flex-wrap -mx-3 mb-6">
<div class="w-full md:w-1/2 px-3 mb-6 md:mb-0">
<label class="block uppercase tracking-wide text-gray-700 text-xs font-light mb-1" for="grid-first-name">
First Name
</label>
<input
class="appearance-none block w-full bg-gray-200 text-gray-700 border border-red-500 rounded py-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white-500"
id="grid-first-name" type="text" placeholder="Jane">
<p class="text-red-500 text-xs italic">Please fill out this field.</p>
</div>
<div class="w-full md:w-1/2 px-3">
<label class="block uppercase tracking-wide text-gray-700 text-xs font-light mb-1" for="grid-last-name">
Last Name
</label>
<input
class="appearance-none block w-full bg-gray-200 text-grey-darker border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white-500 focus:border-gray-600"
id="grid-last-name" type="text" placeholder="Doe">
</div>
</div>
<div class="flex flex-wrap -mx-3 mb-6">
<div class="w-full px-3">
<label class="block uppercase tracking-wide text-grey-darker text-xs font-light mb-1" for="grid-password">
Password
</label>
<input
class="appearance-none block w-full bg-grey-200 text-grey-darker border border-grey-200 rounded py-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white focus:border-grey"
id="grid-password" type="password" placeholder="******************">
<p class="text-grey-dark text-xs italic">Make it as long and as crazy as
you'd like</p>
</div>
</div>
<div class="flex flex-wrap -mx-3 mb-2">
<div class="w-full md:w-1/3 px-3 mb-6 md:mb-0">
<label class="block uppercase tracking-wide text-grey-darker text-xs font-light mb-1" for="grid-city">
City
</label>
<input
class="appearance-none block w-full bg-grey-200 text-grey-darker border border-grey-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-grey"
id="grid-city" type="text" placeholder="Albuquerque">
</div>
<div class="w-full md:w-1/3 px-3 mb-6 md:mb-0">
<label class="block uppercase tracking-wide text-grey-darker text-xs font-light mb-1" for="grid-state">
State
</label>
<div class="relative">
<select
class="block appearance-none w-full bg-grey-200 border border-grey-200 text-grey-darker py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-grey"
id="grid-state">
<option>New Mexico</option>
<option>Missouri</option>
<option>Texas</option>
</select>
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-grey-darker">
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
<path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"></path>
</svg>
</div>
</div>
</div>
<div class="w-full md:w-1/3 px-3 mb-6 md:mb-0">
<label class="block uppercase tracking-wide text-grey-darker text-xs font-light mb-1" for="grid-zip">
Zip
</label>
<input
class="appearance-none block w-full bg-grey-200 text-grey-darker border border-grey-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-grey"
id="grid-zip" type="text" placeholder="90210">
</div>
</div>
<div class="mt-5">
<button class='bg-green-500 hover:bg-green-800 text-white font-bold py-2 px-4 rounded'> Submit </button>
<span class='close-modal cursor-pointer bg-red-200 hover:bg-red-500 text-red-900 font-bold py-2 px-4 rounded'>
Close
</span>
</div>
</form>
</div>
</div>
</div>
<!-- large Size Modal -->
<div id='largeSizeModal' class="modal-wrapper">
<div class="overlay close-modal"></div>
<div class="modal modal-lg">
<div class="modal-content shadow-lg p-5">
<div class="border-b p-2 pb-3 pt-0 mb-4">
<div class="flex justify-between items-center">
Modal header
<span class='close-modal cursor-pointer px-3 py-1 rounded-full bg-gray-100 hover:bg-gray-200'>
<i class="fas fa-times text-gray-700"></i>
</span>
</div>
</div>
<!-- Modal content -->
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Earum vero amet minus facere, vitae quas suscipit harum aspernatur sint non rerum deleniti explicabo excepturi cumque nihil neque in. Consectetur
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Corporis repellendus, excepturi saepe aliquam reprehenderit fugit quam non dignissimos voluptatem sed numquam ex aut earum tempore beatae delectus itaque asperiores neque.
</p>
</div>
</div>
</div>
<script src="./main.js"></script>
</body>
</html>