-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
549 lines (527 loc) · 38.4 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
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
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Business Press</title>
<!-- Include Font Family -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="css/styles.css" />
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.16/dist/tailwind.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/grapesjs@latest/dist/css/grapes.min.css" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<script src="js/tailwind.config.js"></script>
</head>
<body>
<div class="flex flex-col md:flex-row min-h-screen font-sans">
<!-- Left Sidebar -->
<aside class="bg-white pt-0 p-4 w-1/6 border-r border-gray-200">
<div class="border-b border-gray-200 p-4">
<img src="./assets/svg/business-press.svg" alt="business-press" />
</div>
<ul class="py-4">
<li class="text-xs text-blue-700 font-bold uppercase pb-4 px-3 flex justify-between gap-4 items-center">
Element Library
<a href="#">
<img src="./assets/svg/sort.svg" alt="sort" />
</a>
</li>
<li class="accordion">
<a href="#"
class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block accordion-open">Navigations</a>
<ul class="hidden accordion-close">
<div id="block"></div>
</ul>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Headers</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Features</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">How it works</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Pricing</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Testimonials</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Logo clouds</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Sign up</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Applications</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Blog posts</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Contents</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Rich text</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">FAQ</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Team</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Careers</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Contacts</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Newsletter</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Call to Action</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Numbers</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Http codes</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Modals</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Cookies</a>
</li>
<li class="">
<a href="#" class="px-3 py-2 text-sm hover:bg-gray-200 rounded-full inline-block">Footers</a>
</li>
</ul>
</aside>
<!-- Content Box -->
<main class="md:flex-1 w-4/6 overflow-auto">
<div class="bg-blue-50 p-4">
<div class="flex justify-end gap-2 items-center mb-4">
<button id="save-button"
class="rounded-lg bg-green-500 hover:bg-green-600 text-white px-4 py-1 flex gap-2 items-center text-sm mr-4">
<img src="./assets/svg/check.svg" alt="check" />
Save changes
</button>
<a href="#" id="preview-button" class="text-blue-500 flex gap-2 items-center text-sm">Preview in new tab
<img src="./assets/svg/preview.svg" alt="preview" />
</a>
</div>
<div class="bg-white rounded-lg overflow-hidden h-5/6">
<div class="bg-gray-200 flex justify-between gap-2 items-center p-4">
<div>
<input
class="appearance-none rounded shadow-transparent w-full py-1.5 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
id="username" type="text" placeholder="new_page.html">
</div>
<div class="flex justify-between gap-4 items-center">
<a data-modal-target="viewCodeModal" data-modal-toggle="viewCodeModal" >
<span class="gjs-pn-btn" title="View Code" data-tooltip-pos="bottom" data-tooltip="View Code">
<svg width="20" height="20" viewBox="0 0 24 24">
<path fill="currentColor" d="M12.89,3L14.85,3.4L11.11,21L9.15,20.6L12.89,3M19.59,12L16,8.41V5.58L22.42,12L16,18.41V15.58L19.59,12M1.58,12L8,5.58V8.41L4.41,12L8,15.58V18.41L1.58,12Z"></path>
</svg>
</span>
</a>
<a data-modal-target="importModal" data-modal-toggle="importModal">
<span class="gjs-pn-btn" title="Import" data-tooltip-pos="bottom" data-tooltip="Import">
<svg width="20" height="20" viewBox="0 0 24 24">
<path fill="currentColor" d="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"></path>
</svg>
</span>
</a>
<a href="#" id="custom-desktop">
<svg width="20" height="20" viewBox="0 0 15 15" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M13.5 0H1.5C1.10218 0 0.720644 0.158035 0.43934 0.43934C0.158035 0.720644 0 1.10218 0 1.5V9.75C0 10.1478 0.158035 10.5294 0.43934 10.8107C0.720644 11.092 1.10218 11.25 1.5 11.25H6.75V13.5H4.5C4.30109 13.5 4.11032 13.579 3.96967 13.7197C3.82902 13.8603 3.75 14.0511 3.75 14.25C3.75 14.4489 3.82902 14.6397 3.96967 14.7803C4.11032 14.921 4.30109 15 4.5 15H10.5C10.6989 15 10.8897 14.921 11.0303 14.7803C11.171 14.6397 11.25 14.4489 11.25 14.25C11.25 14.0511 11.171 13.8603 11.0303 13.7197C10.8897 13.579 10.6989 13.5 10.5 13.5H8.25V11.25H13.5C13.8978 11.25 14.2794 11.092 14.5607 10.8107C14.842 10.5294 15 10.1478 15 9.75V1.5C15 1.10218 14.842 0.720644 14.5607 0.43934C14.2794 0.158035 13.8978 0 13.5 0ZM13.5 1.5V6.75H1.5V1.5H13.5ZM1.5 9.75V8.25H13.5V9.75H1.5Z"
fill="#1A53E7" />
</svg>
</a>
<a href="#" id="custom-tablet">
<svg width="20" height="20" viewBox="0 0 15 15" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M12.8472 0H2.15278C1.31021 0 0.625 0.67275 0.625 1.5V13.5C0.625 14.3273 1.31021 15 2.15278 15H12.8472C13.6898 15 14.375 14.3273 14.375 13.5V1.5C14.375 0.67275 13.6898 0 12.8472 0ZM12.8472 13.5H2.15278V1.5L12.8472 1.4985V13.5Z"
fill="#a3a3a3" />
<path
d="M6.43896 12.375H8.36854C8.79097 12.375 9.13243 12.0398 9.13243 11.625C9.13243 11.2102 8.79097 10.875 8.36854 10.875H6.43896C6.01653 10.875 5.67507 11.2102 5.67507 11.625C5.67507 12.0398 6.01729 12.375 6.43896 12.375Z"
fill="#a3a3a3" />
</svg>
</a>
<a href="#" id="custom-mobile">
<svg width="20" height="20" viewBox="0 0 15 15" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M11.5179 0H3.48214C3.0559 0 2.64712 0.158035 2.34572 0.43934C2.04432 0.720644 1.875 1.10218 1.875 1.5V13.5C1.875 13.8978 2.04432 14.2794 2.34572 14.5607C2.64712 14.842 3.0559 15 3.48214 15H11.5179C11.9441 15 12.3529 14.842 12.6543 14.5607C12.9557 14.2794 13.125 13.8978 13.125 13.5V1.5C13.125 1.10218 12.9557 0.720644 12.6543 0.43934C12.3529 0.158035 11.9441 0 11.5179 0ZM3.48214 3.75H11.5179V9.75H3.48214V3.75ZM11.5179 1.5V2.25H3.48214V1.5H11.5179ZM3.48214 13.5V11.25H11.5179V13.5H3.48214Z"
fill="#a3a3a3" />
<path
d="M7.90179 12H7.09821C6.99165 12 6.88946 12.0395 6.81411 12.1098C6.73876 12.1802 6.69643 12.2755 6.69643 12.375C6.69643 12.4745 6.73876 12.5698 6.81411 12.6402C6.88946 12.7105 6.99165 12.75 7.09821 12.75H7.90179C8.00835 12.75 8.11054 12.7105 8.18589 12.6402C8.26124 12.5698 8.30357 12.4745 8.30357 12.375C8.30357 12.2755 8.26124 12.1802 8.18589 12.1098C8.11054 12.0395 8.00835 12 7.90179 12Z"
fill="#a3a3a3" />
</svg>
</a>
</div>
</div>
<!-- below code is commented mode we will use later -->
<!-- <div class="p-4 flex items-center justify-center h-full">
<div class="text-center">
<div class="text-center mb-5">
<img class="mx-auto my-0" src="assets/images/template-logo.png" alt="template-logo" />
</div>
<div>
<div class="font-bold text-xl mb-1">Select the Elements and start Creating!</div>
<div class="font-normal text-gray-400 text-sm mb-4">Create custom page or select from
pre-existing templates</div>
</div>
<div>
<button
class="rounded-lg bg-blue-700 hover:bg-blue-900 text-white px-4 py-1 flex gap-2 items-center text-sm mx-auto my-0">
Templates
<svg width="10" height="6" viewBox="0 0 10 6" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M9.0242 0.1758C9.13668 0.288316 9.19987 0.440901 9.19987 0.6C9.19987 0.759098 9.13668 0.911683 9.0242 1.0242L4.2242 5.8242C4.11168 5.93668 3.9591 5.99987 3.8 5.99987C3.6409 5.99987 3.48832 5.93668 3.3758 5.8242L0.9758 3.4242C0.866505 3.31104 0.806029 3.15948 0.807396 3.00216C0.808763 2.84484 0.871864 2.69435 0.983109 2.58311C1.09435 2.47186 1.24484 2.40876 1.40216 2.4074C1.55948 2.40603 1.71104 2.46651 1.8242 2.5758L3.8 4.5516L8.1758 0.1758C8.28832 0.0633171 8.4409 0.000127792 8.6 0.000127792C8.7591 0.000127792 8.91168 0.0633171 9.0242 0.1758Z"
fill="white" />
</svg>
</button>
</div>
</div>
</div> -->
</div>
<div id="grapesjs-container"></div>
</div>
</main>
<!-- Right Sidebar -->
<aside class="bg-white pt-0 w-1/6 border-l border-gray-200">
<div class="border-b border-gray-200 p-4 font-bold text-xl">
Page
</div>
<div>
<div class="max-w-lg mx-auto">
<!-- Accordion Item 1 -->
<div class="rounded-none accordion-class py-3 px-4 border-b border-gray-200">
<div class="flex items-center gap-2 cursor-pointer accordion-class-open h-8">
<div class="flex items-center gap-2">
<svg class="w-4 h-4 transition-transform transform rotate-0 text-gray-600"
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7"></path>
</svg>
<h2 class="text-xs font-medium text-gray-500">Traits manager</h2>
</div>
</div>
<div class="hidden accordion-class-close mt-3">
<div id="traits-container"></div>
</div>
</div>
<!-- Accordion Item 2 -->
<div class="rounded-none accordion-class py-3 px-4 border-b border-gray-200">
<div class="flex items-center gap-2 cursor-pointer accordion-class-open h-8">
<div class="flex items-center gap-2">
<svg class="w-4 h-4 transition-transform transform rotate-0 text-gray-600"
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7"></path>
</svg>
<h2 class="text-xs font-medium text-gray-500">Layers manager</h2>
</div>
</div>
<div class="hidden accordion-class-close mt-3">
<div id="layers-container"></div>
</div>
</div>
<!-- Accordion Item 3 -->
<div class="rounded-none accordion-class py-3 px-4 border-b border-gray-200">
<div class="flex items-center gap-2 cursor-pointer accordion-class-open h-8">
<div class="flex items-center gap-2">
<svg class="w-4 h-4 transition-transform transform rotate-0 text-gray-600"
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7"></path>
</svg>
<h2 class="text-xs font-medium text-gray-500">Content</h2>
</div>
</div>
<div class="hidden accordion-class-close mt-3">
<textarea id="content-values" class="resize rounded-md bg-extraLightGray w-full p-2 focus:outline-none focus:shadow-outline text-extraLightBlue placeholder:text-extraLightBlue" placeholder="Add your text"></textarea>
<a href="#" class="text-extraLightBlue flex gap-1 items-center text-xs mt-1">
<img src="./assets/svg/writer.svg" /> AI Writer
</a>
<div>
<!-- Modal toggle -->
<button data-modal-target="fileUploadModal" data-modal-toggle="fileUploadModal"
class="rounded-md w-full bg-blue-700 hover:bg-blue-900 text-white px-4 py-2 gap-2 text-sm my-2">
Change image
</button>
<div id="displayImages"></div>
</div>
</div>
</div>
<!-- Accordion Item 4 -->
<div class="rounded-none accordion-class py-3 px-4 border-b border-gray-200">
<div class="flex items-center justify-between gap-2 cursor-pointer accordion-class-open h-8">
<div class="flex items-center gap-2">
<svg class="w-4 h-4 transition-transform transform rotate-0 text-gray-600"
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7"></path>
</svg>
<h2 class="text-xs font-medium text-gray-500">
Link
</h2>
</div>
</button>
</div>
<div class="hidden accordion-class-close mt-3">
<input
class="appearance-none rounded w-full py-2 px-3 text-extraLightBlue leading-tight bg-extraLightGray w-full focus:outline-none focus:shadow-outline placeholder:text-extraLightBlue"
id="anchorUrl" type="text" placeholder="Add your url">
<div class="text-xs text-extraLightBlue my-3">Open in a new page (_blank)</div>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" value="" id="urlTarget" class="sr-only peer">
<div
class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600">
</div>
</label>
</div>
</div>
<!-- Accordion Item 5 -->
<div class="rounded-none accordion-class py-3 px-4 border-b border-gray-200">
<div class="flex items-center justify-between gap-2 cursor-pointer accordion-class-open h-8">
<div class="flex items-center gap-2">
<svg class="w-4 h-4 transition-transform transform rotate-0 text-gray-600"
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7"></path>
</svg>
<h2 class="text-xs font-medium text-gray-500">
Visibility settings
</h2>
</div>
</button>
</div>
<div class="hidden accordion-class-close mt-3">
<div class="text-xs text-extraLightBlue mb-3">Hide | Show element</div>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" value="" class="sr-only peer" id="visibilityToggle">
<div
class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600">
</div>
</label>
</div>
</div>
<!-- Accordion Item 6 -->
<div class="rounded-none accordion-class py-3 px-4 border-b border-gray-200">
<div class="flex items-center justify-between gap-2 cursor-pointer accordion-class-open h-8">
<div class="flex items-center gap-2">
<svg class="w-4 h-4 transition-transform transform rotate-0 text-gray-600"
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7"></path>
</svg>
<h2 class="text-xs font-medium text-gray-500">
Classes
</h2>
</div>
<button
class="bg-white hover:border-sky-900 text-gray-800 text-sm border border-sky-600 rounded py-1 px-2 rounded inline-flex items-center">
<img src="./assets/svg/copy.svg" />
<span>copy</span>
</button>
</div>
<div class="hidden accordion-class-close mt-3">
<input
class="appearance-none rounded w-full py-2 px-3 text-extraLightBlue leading-tight bg-extraLightGray w-full focus:outline-none focus:shadow-outline placeholder:text-extraLightBlue"
id="add-custom-classes" name="add-custom-classes" type="text" placeholder="Add new class">
<div class="mt-4">
<ul class="custom-classes space-y-3"></ul>
</div>
</div>
</div>
<!-- modalBackdrop -->
<div class="fixed inset-0 bg-black opacity-50 z-40 hidden" id="modalBackdrop"></div>
<div id="fileUploadModal" tabindex="-1" aria-hidden="true"
class="fixed inset-0 flex items-center justify-center z-50 hidden">
<div class="relative w-full max-w-2xl max-h-full bg-white rounded-lg shadow">
<!-- Modal content -->
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700">
<!-- Modal header -->
<div class="flex items-start justify-between p-4">
<div>
<h3 class="text-xl font-semibold text-gray-900 dark:text-white">
Select or upload a new image
</h3>
<div class="font-normal text-sm text-gray-500">
You can find previously uploaded files under the All Files tab.
</div>
</div>
<button type="button"
class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ml-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white"
data-modal-hide="fileUploadModal">
<img class="w-3 h-3" src="./assets/svg/close.svg" />
<span class="sr-only">Close modal</span>
</button>
</div>
<!-- Modal body -->
<div class="p-6 space-y-6 bg-blue-50">
<div class="overflow-auto min-h-[300px] h-[40vh]">
<div id="dialogContain" class="p-4 flex items-center justify-center h-full">
<div class="text-center">
<div>
<div class="font-bold text-xl mb-1">
Drag and drop your file or upload it here
</div>
<div class="font-normal text-gray-400 text-sm mb-4">
Max 2MB. Supported file formats: JPG, PNG, GIF, and SVG.
</div>
</div>
<button id="fileUploadButton"
class="rounded-lg bg-blue-700 hover:bg-blue-900 text-white px-4 pt-1 pb-1.5 flex gap-2 items-center text-sm mx-auto my-0">
<img src="./assets/svg/upload.svg" />
Upload
</button>
<p id="selectedFileName" class="mt-2 text-gray-600"></p>
<p id="errorText" class="text-red-500 mt-2"></p>
</div>
</div>
<div id="dialogContainData" class="flex items-center justify-evenly flex-wrap gap-3"></div>
</div>
</div>
<!-- Modal footer -->
<div class="flex items-center justify-between p-4 space-x-2">
<div>
<button type="button" id="removeImageButton"
class="hidden bg-red-700 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 rounded-md text-xs px-4 py-1.5 border border-gray-200 font-medium hover:text-white focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600 text-white px-4 pt-1 pb-1.5 flex gap-2 items-center text-sm mx-auto my-0">
<img src="./assets/svg/deleteIcon.svg" />
Delete
</button>
</div>
<div class="flex items-center justify-end space-x-2">
<button data-modal-hide="fileUploadModal" type="button"
class="text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 rounded-md text-xs px-4 py-1.5 border border-gray-200 font-medium hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600">Close</button>
<button data-modal-hide="fileUploadModal" type="button" id="selectImages"
class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-md text-xs px-4 py-1.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Select</button>
</div>
</div>
</div>
</div>
</div>
<!-- View code model -->
<div id="viewCodeModal" tabindex="-1" aria-hidden="true"
class="fixed inset-0 flex items-center justify-center z-50 hidden">
<div class="relative w-full max-w-2xl max-h-full bg-white rounded-lg shadow">
<!-- Modal content -->
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700">
<!-- Modal header -->
<div class="flex items-start justify-between p-4">
<div>
<h3 class="text-xl font-semibold text-gray-900 dark:text-white">
Code
</h3>
</div>
<button type="button"
class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ml-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white"
data-modal-hide="viewCodeModal">
<img class="w-3 h-3" src="./assets/svg/close.svg" />
<span class="sr-only">Close modal</span>
</button>
</div>
<!-- Modal body -->
<div class="p-6 space-y-6 bg-blue-50">
<div class="overflow-auto min-h-[300px] h-[40vh]">
<div id="dialogContain" class="p-4 flex items-center justify-center">
<div class="text-center">
<div>
<div class="text-xl mb-1" id="viewcode"></div>
</div>
</div>
</div>
<div id="dialogContainData" class="flex items-center justify-evenly flex-wrap gap-3"></div>
</div>
</div>
<!-- Modal footer -->
<div class="flex items-center justify-between p-4 space-x-2">
<div class="flex items-center justify-end space-x-2">
<button data-modal-hide="viewCodeModal" type="button"
class="text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 rounded-md text-xs px-4 py-1.5 border border-gray-200 font-medium hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600">Close</button>
</div>
</div>
</div>
</div>
</div>
<!-- Import model -->
<div id="importModal" tabindex="-1" aria-hidden="true"
class="fixed inset-0 flex items-center justify-center z-50 hidden">
<div class="relative w-full max-w-2xl max-h-full bg-white rounded-lg shadow">
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700">
<!-- Modal header -->
<div class="flex items-start justify-between p-4">
<div>
<h3 class="text-xl font-semibold text-gray-900 dark:text-white">
Import Template
</h3>
<div class="font-normal text-sm text-gray-500">
Paste here your HTML/CSS and click Import
</div>
</div>
<button type="button"
class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ml-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white"
data-modal-hide="importModal">
<img class="w-3 h-3" src="./assets/svg/close.svg" />
<span class="sr-only">Close modal</span>
</button>
</div>
<!-- Modal body -->
<div class="p-6 space-y-6 bg-blue-50">
<div class="overflow-auto min-h-[300px] h-[40vh]">
<div id="dialogContain" class="p-4 flex items-center justify-center w-full h-full">
<textarea class="resize-y w-full h-full bg-white border rounded-md p-2"
id="importCode"></textarea>
</div>
</div>
</div>
<!-- Modal footer -->
<div class="flex items-center justify-between p-4 space-x-2">
<div class="flex items-center justify-end space-x-2">
<button data-modal-hide="importModal" type="button" id="importButton"
class="text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 rounded-md text-xs px-4 py-1.5 border border-gray-200 font-medium hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600">Import</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</aside>
</div>
<script src="https://cdn.jsdelivr.net/npm/grapesjs@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/grapesjs-preset-webpage@latest"></script>
<script src="https://unpkg.com/grapesjs-custom-code" ></script>
<script src="js/accordion.js"></script>
<script src="js/image.js"></script>
<script src="js/device.js"></script>
<script src="js/save.js"></script>
<script src="js/preview.js"></script>
<script src="js/grapes.js"></script>
<script src="js/classes.js"></script>
<script src="js/content.js"></script>
<script src="js/viewcode.js"></script>
<script src="js/import.js"></script>
</body>
</html>