Gokul1510 commited on
Commit
1512237
·
verified ·
1 Parent(s): 673ded3

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +607 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Dimo V1
3
- emoji: 🌖
4
  colorFrom: blue
5
- colorTo: indigo
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: dimo-v1
3
+ emoji: 🐳
4
  colorFrom: blue
5
+ colorTo: blue
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,607 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>DiMo - Diagrams in Motion</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
11
+
12
+ :root {
13
+ --primary: #6366f1;
14
+ --primary-dark: #4f46e5;
15
+ --secondary: #f43f5e;
16
+ --dark: #1e293b;
17
+ --light: #f8fafc;
18
+ }
19
+
20
+ body {
21
+ font-family: 'Inter', sans-serif;
22
+ overflow: hidden;
23
+ background-color: #f1f5f9;
24
+ }
25
+
26
+ #canvas-container {
27
+ background-color: #fff;
28
+ background-image:
29
+ linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
30
+ linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
31
+ background-size: 20px 20px;
32
+ }
33
+
34
+ .shape {
35
+ position: absolute;
36
+ cursor: move;
37
+ user-select: none;
38
+ }
39
+
40
+ .timeline-keyframe {
41
+ width: 12px;
42
+ height: 12px;
43
+ background-color: var(--primary);
44
+ border-radius: 50%;
45
+ position: absolute;
46
+ top: 50%;
47
+ transform: translateY(-50%);
48
+ cursor: pointer;
49
+ transition: all 0.2s ease;
50
+ }
51
+
52
+ .timeline-keyframe:hover {
53
+ background-color: var(--primary-dark);
54
+ transform: translateY(-50%) scale(1.2);
55
+ }
56
+
57
+ .resize-handle {
58
+ width: 8px;
59
+ height: 8px;
60
+ background-color: var(--primary);
61
+ position: absolute;
62
+ border-radius: 50%;
63
+ pointer-events: all;
64
+ }
65
+
66
+ /* Custom scrollbar */
67
+ ::-webkit-scrollbar {
68
+ width: 8px;
69
+ height: 8px;
70
+ }
71
+ ::-webkit-scrollbar-track {
72
+ background: #f1f1f1;
73
+ }
74
+ ::-webkit-scrollbar-thumb {
75
+ background: #c7d2fe;
76
+ border-radius: 4px;
77
+ }
78
+ ::-webkit-scrollbar-thumb:hover {
79
+ background: #a5b4fc;
80
+ }
81
+
82
+ /* Animation for modal */
83
+ @keyframes fadeIn {
84
+ from { opacity: 0; transform: translateY(20px); }
85
+ to { opacity: 1; transform: translateY(0); }
86
+ }
87
+
88
+ .modal-animation {
89
+ animation: fadeIn 0.3s ease-out;
90
+ }
91
+
92
+ /* Custom color picker */
93
+ .color-swatch {
94
+ width: 24px;
95
+ height: 24px;
96
+ border-radius: 4px;
97
+ cursor: pointer;
98
+ transition: transform 0.2s ease;
99
+ }
100
+
101
+ .color-swatch:hover {
102
+ transform: scale(1.1);
103
+ }
104
+
105
+ /* Context menu */
106
+ .context-menu {
107
+ opacity: 0;
108
+ visibility: hidden;
109
+ transition: all 0.2s ease;
110
+ }
111
+
112
+ .context-menu.active {
113
+ opacity: 1;
114
+ visibility: visible;
115
+ }
116
+ </style>
117
+ </head>
118
+ <body class="h-screen flex flex-col">
119
+ <!-- Top Navigation Bar -->
120
+ <header class="bg-white border-b border-gray-200 px-4 py-2 flex items-center justify-between">
121
+ <div class="flex items-center space-x-4">
122
+ <div class="text-indigo-600 font-bold text-xl flex items-center">
123
+ <i class="fas fa-project-diagram mr-2"></i>
124
+ DiMo
125
+ </div>
126
+ <div class="text-xs text-indigo-500 bg-indigo-50 px-2 py-1 rounded">BETA</div>
127
+ </div>
128
+
129
+ <div class="flex items-center space-x-2">
130
+ <button class="px-3 py-1.5 text-sm rounded-lg border border-indigo-200 text-indigo-600 hover:bg-indigo-50">
131
+ <i class="fas fa-cloud mr-2"></i>Save to Cloud
132
+ </button>
133
+ <div class="relative">
134
+ <button id="export-btn" class="px-3 py-1.5 text-sm rounded-lg bg-indigo-600 text-white hover:bg-indigo-700">
135
+ <i class="fas fa-share mr-2"></i>Export
136
+ </button>
137
+ <div id="export-options" class="hidden absolute right-0 mt-1 w-48 bg-white rounded-md shadow-lg py-1 z-50">
138
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">GIF</a>
139
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">PNG/JPG</a>
140
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">MP4</a>
141
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Lottie</a>
142
+ </div>
143
+ </div>
144
+ <button id="login-btn" class="px-3 py-1.5 text-sm rounded-lg bg-indigo-100 text-indigo-600 hover:bg-indigo-200">
145
+ <i class="fas fa-user mr-2"></i>Login
146
+ </button>
147
+ </div>
148
+ </header>
149
+
150
+ <!-- Main Content Area -->
151
+ <div class="flex flex-1 overflow-hidden">
152
+ <!-- Left Toolbar -->
153
+ <div class="w-16 bg-white border-r border-gray-200 flex flex-col items-center py-4 space-y-4">
154
+ <button class="p-2 rounded-lg hover:bg-gray-100 text-gray-700" title="Select Tool">
155
+ <i class="fas fa-mouse-pointer"></i>
156
+ </button>
157
+ <button class="p-2 rounded-lg hover:bg-gray-100 text-gray-700" title="Rectangle">
158
+ <i class="far fa-square"></i>
159
+ </button>
160
+ <button class="p-2 rounded-lg hover:bg-gray-100 text-gray-700" title="Ellipse">
161
+ <i class="far fa-circle"></i>
162
+ </button>
163
+ <button class="p-2 rounded-lg hover:bg-gray-100 text-gray-700" title="Line">
164
+ <i class="fas fa-slash"></i>
165
+ </button>
166
+ <button class="p-2 rounded-lg hover:bg-gray-100 text-gray-700" title="Arrow">
167
+ <i class="fas fa-long-arrow-alt-right"></i>
168
+ </button>
169
+ <button class="p-2 rounded-lg hover:bg-gray-100 text-gray-700" title="Text">
170
+ <i class="fas fa-font"></i>
171
+ </button>
172
+ <button class="p-2 rounded-lg hover:bg-gray-100 text-gray-700" title="Freehand">
173
+ <i class="fas fa-pencil-alt"></i>
174
+ </button>
175
+ <button class="p-2 rounded-lg hover:bg-gray-100 text-gray-700" title="Node Editor">
176
+ <i class="fas fa-project-diagram"></i>
177
+ </button>
178
+ <div class="border-t border-gray-200 w-8 mx-auto my-2"></div>
179
+ <button class="p-2 rounded-lg hover:bg-gray-100 text-gray-700" title="Zoom In">
180
+ <i class="fas fa-search-plus"></i>
181
+ </button>
182
+ <button class="p-2 rounded-lg hover:bg-gray-100 text-gray-700" title="Zoom Out">
183
+ <i class="fas fa-search-minus"></i>
184
+ </button>
185
+ <button class="p-2 rounded-lg hover:bg-gray-100 text-gray-700" title="Reset Zoom">
186
+ <i class="fas fa-expand"></i>
187
+ </button>
188
+ </div>
189
+
190
+ <!-- Properties Panel -->
191
+ <div class="w-64 bg-white border-r border-gray-200 flex flex-col overflow-hidden">
192
+ <div class="p-3 border-b border-gray-200 font-medium text-gray-700">Properties</div>
193
+ <div class="flex-1 overflow-y-auto p-4">
194
+ <div class="mb-4">
195
+ <label class="block text-xs font-medium text-gray-500 mb-1">Object Type</label>
196
+ <div class="text-sm">Rectangle</div>
197
+ </div>
198
+
199
+ <div class="mb-4">
200
+ <label class="block text-xs font-medium text-gray-500 mb-1">Position</label>
201
+ <div class="flex space-x-2">
202
+ <input type="number" value="120" class="w-16 text-sm p-1 border rounded">
203
+ <input type="number" value="80" class="w-16 text-sm p-1 border rounded">
204
+ </div>
205
+ </div>
206
+
207
+ <div class="mb-4">
208
+ <label class="block text-xs font-medium text-gray-500 mb-1">Size</label>
209
+ <div class="flex space-x-2">
210
+ <input type="number" value="200" class="w-16 text-sm p-1 border rounded">
211
+ <input type="number" value="150" class="w-16 text-sm p-1 border rounded">
212
+ </div>
213
+ </div>
214
+
215
+ <div class="mb-4">
216
+ <label class="block text-xs font-medium text-gray-500 mb-1">Fill Color</label>
217
+ <div class="flex items-center">
218
+ <div class="color-swatch bg-indigo-500 mr-2" style="background-color: #6366f1;"></div>
219
+ <input type="text" value="#6366f1" class="text-sm p-1 border rounded flex-1">
220
+ <button class="ml-2 p-1 text-gray-500 hover:text-gray-700">
221
+ <i class="fas fa-undo"></i>
222
+ </button>
223
+ </div>
224
+ <div class="flex flex-wrap mt-1">
225
+ <div class="color-swatch bg-red-500 m-0.5" title="Red #ef4444"></div>
226
+ <div class="color-swatch bg-blue-500 m-0.5" title="Blue #3b82f6"></div>
227
+ <div class="color-swatch bg-green-500 m-0.5" title="Green #10b981"></div>
228
+ <div class="color-swatch bg-yellow-500 m-0.5" title="Yellow #f59e0b"></div>
229
+ <div class="color-swatch bg-purple-500 m-0.5" title="Purple #8b5cf6"></div>
230
+ <div class="color-swatch bg-pink-500 m-0.5" title="Pink #ec4899"></div>
231
+ </div>
232
+ </div>
233
+
234
+ <div class="mb-4">
235
+ <label class="block text-xs font-medium text-gray-500 mb-1">Stroke Color</label>
236
+ <div class="flex items-center">
237
+ <div class="color-swatch bg-gray-800 mr-2" style="background-color: #1e293b;"></div>
238
+ <input type="text" value="#1e293b" class="text-sm p-1 border rounded flex-1">
239
+ <button class="ml-2 p-1 text-gray-500 hover:text-gray-700">
240
+ <i class="fas fa-undo"></i>
241
+ </button>
242
+ </div>
243
+ </div>
244
+
245
+ <div class="mb-4">
246
+ <label class="block text-xs font-medium text-gray-500 mb-1">Stroke Width</label>
247
+ <input type="range" min="1" max="10" value="2" class="w-full">
248
+ </div>
249
+
250
+ <div class="mb-4">
251
+ <label class="block text-xs font-medium text-gray-500 mb-1">Opacity</label>
252
+ <input type="range" min="0" max="100" value="100" class="w-full">
253
+ </div>
254
+
255
+ <div class="mb-4">
256
+ <label class="block text-xs font-medium text-gray-500 mb-1">Corner Radius</label>
257
+ <input type="range" min="0" max="50" value="0" class="w-full">
258
+ </div>
259
+
260
+ <div class="mb-4 pt-2 border-t border-gray-200">
261
+ <label class="block text-xs font-medium text-gray-500 mb-1">Layer</label>
262
+ <div class="flex space-x-1">
263
+ <button class="p-1.5 text-xs bg-gray-100 rounded hover:bg-gray-200">
264
+ <i class="fas fa-arrow-up"></i> Front
265
+ </button>
266
+ <button class="p-1.5 text-xs bg-gray-100 rounded hover:bg-gray-200">
267
+ <i class="fas fa-arrow-down"></i> Back
268
+ </button>
269
+ <button class="p-1.5 text-xs bg-gray-100 rounded hover:bg-gray-200">
270
+ <i class="fas fa-object-group"></i> Group
271
+ </button>
272
+ </div>
273
+ </div>
274
+ </div>
275
+ </div>
276
+
277
+ <!-- Main Canvas Area -->
278
+ <div class="flex-1 relative overflow-hidden">
279
+ <div id="canvas-container" class="w-full h-full relative overflow-hidden">
280
+ <!-- Example shapes -->
281
+ <div class="shape" style="left: 120px; top: 80px; width: 200px; height: 150px; background-color: rgba(99, 102, 241, 0.8); border: 2px solid #1e293b;"></div>
282
+ <div class="shape" style="left: 200px; top: 150px; width: 180px; height: 120px; background-color: rgba(239, 68, 68, 0.8); border: 2px solid #1e293b; border-radius: 10px;"></div>
283
+ <div class="shape" style="left: 350px; top: 100px; width: 160px; height: 160px; background-color: rgba(16, 185, 129, 0.8); border: 2px solid #1e293b; border-radius: 50%;"></div>
284
+
285
+ <!-- Resize handles would be added dynamically -->
286
+ </div>
287
+
288
+ <!-- Zoom level indicator -->
289
+ <div class="absolute right-2 bottom-2 bg-white px-2 py-1 rounded border border-gray-200 text-xs">
290
+ 100%
291
+ </div>
292
+ </div>
293
+
294
+ <!-- Right Panel - Timeline -->
295
+ <div class="w-72 bg-white border-l border-gray-200 flex flex-col">
296
+ <div class="p-3 border-b border-gray-200 font-medium text-gray-700 flex justify-between items-center">
297
+ <span>Timeline</span>
298
+ <button class="text-xs text-indigo-600 hover:text-indigo-800">+ New Animation</button>
299
+ </div>
300
+ <div class="flex-1 p-3 overflow-y-auto">
301
+ <div class="mb-4">
302
+ <div class="flex justify-between items-center mb-2">
303
+ <span class="text-xs font-medium">Rectangle 1</span>
304
+ <button class="text-gray-400 hover:text-gray-600">
305
+ <i class="fas fa-chevron-down text-xs"></i>
306
+ </button>
307
+ </div>
308
+ <div class="relative h-8 bg-gray-100 rounded overflow-hidden">
309
+ <div class="absolute left-0 top-0 bottom-0 w-full bg-gray-200" style="background-image: linear-gradient(90deg, #ddd 1px, transparent 1px); background-size: 20px 1px;"></div>
310
+ <div class="timeline-keyframe" style="left: 20px;"></div>
311
+ <div class="timeline-keyframe" style="left: 100px;"></div>
312
+ <div class="timeline-keyframe" style="left: 180px;"></div>
313
+ </div>
314
+ </div>
315
+
316
+ <div class="mb-4">
317
+ <div class="flex justify-between items-center mb-2">
318
+ <span class="text-xs font-medium">Ellipse 1</span>
319
+ <button class="text-gray-400 hover:text-gray-600">
320
+ <i class="fas fa-chevron-down text-xs"></i>
321
+ </button>
322
+ </div>
323
+ <div class="relative h-8 bg-gray-100 rounded overflow-hidden">
324
+ <div class="absolute left-0 top-0 bottom-0 w-full bg-gray-200" style="background-image: linear-gradient(90deg, #ddd 1px, transparent 1px); background-size: 20px 1px;"></div>
325
+ <div class="timeline-keyframe" style="left: 40px;"></div>
326
+ <div class="timeline-keyframe" style="left: 140px;"></div>
327
+ </div>
328
+ </div>
329
+ </div>
330
+
331
+ <div class="bg-gray-50 p-3 border-t border-gray-200">
332
+ <div class="relative h-10 w-full bg-gray-200 rounded">
333
+ <div class="absolute top-0 bottom-0 left-0 w-1 bg-indigo-600"></div>
334
+ <div class="absolute top-0 bottom-0 w-full" style="background-image: linear-gradient(90deg, #9ca3af 1px, transparent 1px); background-size: 25px 1px;"></div>
335
+ <div class="absolute top-0 bottom-0 w-1 bg-indigo-600" style="left: 100px;"></div>
336
+ <div class="absolute -bottom-2 h-2 w-1 bg-indigo-600 rounded-full" style="left: 0px;"></div>
337
+ <div class="absolute -bottom-2 h-2 w-1 bg-indigo-600 rounded-full" style="left: 20px;"></div>
338
+ <div class="absolute -bottom-2 h-2 w-1 bg-indigo-600 rounded-full" style="left: 40px;"></div>
339
+ <div class="absolute -bottom-2 h-2 w-1 bg-indigo-600 rounded-full" style="left: 60px;"></div>
340
+ <div class="absolute -bottom-2 h-2 w-1 bg-indigo-600 rounded-full" style="left: 80px;"></div>
341
+ <div class="absolute -bottom-2 h-2 w-1 bg-indigo-600 rounded-full" style="left: 100px;"></div>
342
+ </div>
343
+
344
+ <div class="flex justify-between items-center mt-3">
345
+ <button class="p-1 text-indigo-600 hover:bg-indigo-50 rounded">
346
+ <i class="fas fa-play"></i>
347
+ </button>
348
+ <div class="text-xs text-gray-500">0:00 / 0:05</div>
349
+ <div class="flex space-x-1">
350
+ <button class="p-1 text-gray-500 hover:bg-gray-100 rounded">
351
+ <i class="fas fa-step-backward text-xs"></i>
352
+ </button>
353
+ <button class="p-1 text-gray-500 hover:bg-gray-100 rounded">
354
+ <i class="fas fa-step-forward text-xs"></i>
355
+ </button>
356
+ </div>
357
+ </div>
358
+ </div>
359
+ </div>
360
+ </div>
361
+
362
+ <!-- Context Menu (Hidden by default) -->
363
+ <div id="context-menu" class="context-menu absolute bg-white shadow-lg rounded-md py-1 z-50 border border-gray-200">
364
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600"><i class="fas fa-copy mr-2"></i>Copy</a>
365
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600"><i class="fas fa-paste mr-2"></i>Paste</a>
366
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600"><i class="fas fa-cut mr-2"></i>Cut</a>
367
+ <div class="border-t border-gray-200 my-1"></div>
368
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600"><i class="fas fa-arrow-up mr-2"></i>Bring Forward</a>
369
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600"><i class="fas fa-arrow-down mr-2"></i>Send Backward</a>
370
+ <div class="border-t border-gray-200 my-1"></div>
371
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-50 hover:text-indigo-600"><i class="fas fa-trash-alt mr-2 text-red-500"></i>Delete</a>
372
+ </div>
373
+
374
+ <!-- Export Modal (Hidden by default) -->
375
+ <div id="export-modal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
376
+ <div class="bg-white rounded-lg p-6 w-96 modal-animation">
377
+ <div class="flex justify-between items-center mb-4">
378
+ <h3 class="text-lg font-medium">Export Diagram</h3>
379
+ <button id="close-export" class="text-gray-400 hover:text-gray-600">
380
+ <i class="fas fa-times"></i>
381
+ </button>
382
+ </div>
383
+
384
+ <div class="space-y-4">
385
+ <div>
386
+ <label class="block text-sm font-medium text-gray-700 mb-1">Format</label>
387
+ <select class="w-full p-2 border rounded">
388
+ <option>GIF</option>
389
+ <option>PNG</option>
390
+ <option>JPG</option>
391
+ <option>MP4</option>
392
+ <option>Lottie (JSON)</option>
393
+ </select>
394
+ </div>
395
+
396
+ <div>
397
+ <label class="block text-sm font-medium text-gray-700 mb-1">Quality</label>
398
+ <select class="w-full p-2 border rounded">
399
+ <option>High</option>
400
+ <option selected>Medium</option>
401
+ <option>Low</option>
402
+ </select>
403
+ </div>
404
+
405
+ <div>
406
+ <label class="block text-sm font-medium text-gray-700 mb-1">Resolution</label>
407
+ <div class="flex space-x-2">
408
+ <input type="number" value="1280" class="w-20 p-2 border rounded text-center">
409
+ <div class="flex items-center">x</div>
410
+ <input type="number" value="720" class="w-20 p-2 border rounded text-center">
411
+ </div>
412
+ </div>
413
+
414
+ <div>
415
+ <label class="block text-sm font-medium text-gray-700 mb-1">Animation Duration</label>
416
+ <input type="range" min="1" max="10" value="5" class="w-full">
417
+ <div class="text-right text-xs">5 seconds</div>
418
+ </div>
419
+ </div>
420
+
421
+ <div class="mt-6 flex justify-end space-x-3">
422
+ <button id="cancel-export" class="px-4 py-2 text-sm border rounded-lg">Cancel</button>
423
+ <button class="px-4 py-2 text-sm bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">Export</button>
424
+ </div>
425
+ </div>
426
+ </div>
427
+
428
+ <!-- Login Modal (Hidden by default) -->
429
+ <div id="login-modal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
430
+ <div class="bg-white rounded-lg p-6 w-96 modal-animation">
431
+ <div class="flex justify-between items-center mb-6">
432
+ <h3 class="text-lg font-medium">Login to DiMo</h3>
433
+ <button id="close-login" class="text-gray-400 hover:text-gray-600">
434
+ <i class="fas fa-times"></i>
435
+ </button>
436
+ </div>
437
+
438
+ <div class="space-y-4">
439
+ <div>
440
+ <label class="block text-sm font-medium text-gray-700 mb-1">Email</label>
441
+ <input type="email" class="w-full p-2 border rounded">
442
+ </div>
443
+
444
+ <div>
445
+ <label class="block text-sm font-medium text-gray-700 mb-1">Password</label>
446
+ <input type="password" class="w-full p-2 border rounded">
447
+ </div>
448
+
449
+ <div class="flex items-center justify-between">
450
+ <div class="flex items-center">
451
+ <input type="checkbox" id="remember-me" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
452
+ <label for="remember-me" class="ml-2 block text-sm text-gray-700">Remember me</label>
453
+ </div>
454
+ <a href="#" class="text-sm text-indigo-600 hover:text-indigo-500">Forgot password?</a>
455
+ </div>
456
+ </div>
457
+
458
+ <div class="mt-6">
459
+ <button class="w-full py-2 px-4 border border-transparent rounded-lg shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
460
+ Sign in
461
+ </button>
462
+ </div>
463
+
464
+ <div class="mt-4 text-center text-sm">
465
+ <span class="text-gray-600">Don't have an account?</span>
466
+ <a href="#" class="font-medium text-indigo-600 hover:text-indigo-500">Sign up</a>
467
+ </div>
468
+
469
+ <div class="mt-6">
470
+ <div class="relative">
471
+ <div class="absolute inset-0 flex items-center">
472
+ <div class="w-full border-t border-gray-300"></div>
473
+ </div>
474
+ <div class="relative flex justify-center text-sm">
475
+ <span class="px-2 bg-white text-gray-500">Or continue with</span>
476
+ </div>
477
+ </div>
478
+
479
+ <div class="mt-6 grid grid-cols-3 gap-3">
480
+ <button class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-lg shadow-sm bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
481
+ <i class="fab fa-google text-red-500"></i>
482
+ </button>
483
+ <button class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-lg shadow-sm bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
484
+ <i class="fab fa-github"></i>
485
+ </button>
486
+ <button class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-lg shadow-sm bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
487
+ <i class="fab fa-microsoft text-blue-500"></i>
488
+ </button>
489
+ </div>
490
+ </div>
491
+ </div>
492
+ </div>
493
+
494
+ <script>
495
+ // Toggle export options dropdown
496
+ document.getElementById('export-btn').addEventListener('click', function(e) {
497
+ e.stopPropagation();
498
+ document.getElementById('export-options').classList.toggle('hidden');
499
+ });
500
+
501
+ // Close dropdown when clicking outside
502
+ document.addEventListener('click', function() {
503
+ document.getElementById('export-options').classList.add('hidden');
504
+ });
505
+
506
+ // Show export modal
507
+ document.querySelector('#export-options a').addEventListener('click', function(e) {
508
+ e.preventDefault();
509
+ document.getElementById('export-modal').classList.remove('hidden');
510
+ });
511
+
512
+ // Close export modal
513
+ document.getElementById('close-export').addEventListener('click', function() {
514
+ document.getElementById('export-modal').classList.add('hidden');
515
+ });
516
+
517
+ document.getElementById('cancel-export').addEventListener('click', function() {
518
+ document.getElementById('export-modal').classList.add('hidden');
519
+ });
520
+
521
+ // Show login modal
522
+ document.getElementById('login-btn').addEventListener('click', function() {
523
+ document.getElementById('login-modal').classList.remove('hidden');
524
+ });
525
+
526
+ // Close login modal
527
+ document.getElementById('close-login').addEventListener('click', function() {
528
+ document.getElementById('login-modal').classList.add('hidden');
529
+ });
530
+
531
+ // Context menu handling
532
+ const canvas = document.getElementById('canvas-container');
533
+ const contextMenu = document.getElementById('context-menu');
534
+
535
+ canvas.addEventListener('contextmenu', function(e) {
536
+ e.preventDefault();
537
+ contextMenu.style.left = `${e.pageX}px`;
538
+ contextMenu.style.top = `${e.pageY}px`;
539
+ contextMenu.classList.add('active');
540
+ });
541
+
542
+ document.addEventListener('click', function() {
543
+ contextMenu.classList.remove('active');
544
+ });
545
+
546
+ // Make shapes draggable (simplified version)
547
+ const shapes = document.querySelectorAll('.shape');
548
+ shapes.forEach(shape => {
549
+ let isDragging = false;
550
+ let offsetX, offsetY;
551
+
552
+ shape.addEventListener('mousedown', function(e) {
553
+ if (e.button !== 0) return; // Only left mouse button
554
+ isDragging = true;
555
+ offsetX = e.clientX - shape.getBoundingClientRect().left;
556
+ offsetY = e.clientY - shape.getBoundingClientRect().top;
557
+ shape.style.cursor = 'grabbing';
558
+ });
559
+
560
+ document.addEventListener('mousemove', function(e) {
561
+ if (!isDragging) return;
562
+
563
+ const canvasRect = canvas.getBoundingClientRect();
564
+ let x = e.clientX - canvasRect.left - offsetX;
565
+ let y = e.clientY - canvasRect.top - offsetY;
566
+
567
+ // Basic boundaries
568
+ x = Math.max(0, Math.min(x, canvasRect.width - shape.offsetWidth));
569
+ y = Math.max(0, Math.min(y, canvasRect.height - shape.offsetHeight));
570
+
571
+ shape.style.left = `${x}px`;
572
+ shape.style.top = `${y}px`;
573
+ });
574
+
575
+ document.addEventListener('mouseup', function() {
576
+ isDragging = false;
577
+ shape.style.cursor = 'move';
578
+ });
579
+ });
580
+
581
+ // Add zoom functionality (simplified)
582
+ let zoomLevel = 100;
583
+ const zoomIndicator = document.querySelector('.absolute.right-2.bottom-2');
584
+
585
+ document.querySelector('[title="Zoom In"]').addEventListener('click', function() {
586
+ zoomLevel = Math.min(zoomLevel + 10, 200);
587
+ updateZoom();
588
+ });
589
+
590
+ document.querySelector('[title="Zoom Out"]').addEventListener('click', function() {
591
+ zoomLevel = Math.max(zoomLevel - 10, 50);
592
+ updateZoom();
593
+ });
594
+
595
+ document.querySelector('[title="Reset Zoom"]').addEventListener('click', function() {
596
+ zoomLevel = 100;
597
+ updateZoom();
598
+ });
599
+
600
+ function updateZoom() {
601
+ document.getElementById('canvas-container').style.transform = `scale(${zoomLevel / 100})`;
602
+ document.getElementById('canvas-container').style.transformOrigin = 'top left';
603
+ zoomIndicator.textContent = `${zoomLevel}%`;
604
+ }
605
+ </script>
606
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <a href="https://enzostvs-deepsite.hf.space" style="color: #fff;" target="_blank" >DeepSite</a> <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;"></p></body>
607
+ </html>