elvson commited on
Commit
5a1e2fe
·
verified ·
1 Parent(s): cac2645

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +464 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Pixelforge Ai
3
- emoji: 🔥
4
- colorFrom: indigo
5
- colorTo: pink
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: pixelforge-ai
3
+ emoji: 🐳
4
+ colorFrom: purple
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,464 @@
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>PixelForge AI - Advanced Image Editor</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
+ .editor-container {
11
+ background-image: linear-gradient(45deg, #f5f5f5 25%, transparent 25%),
12
+ linear-gradient(-45deg, #f5f5f5 25%, transparent 25%),
13
+ linear-gradient(45deg, transparent 75%, #f5f5f5 75%),
14
+ linear-gradient(-45deg, transparent 75%, #f5f5f5 75%);
15
+ background-size: 20px 20px;
16
+ background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
17
+ }
18
+
19
+ .tool-btn {
20
+ transition: all 0.2s ease;
21
+ }
22
+
23
+ .tool-btn:hover {
24
+ transform: translateY(-2px);
25
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
26
+ }
27
+
28
+ .canvas-wrapper {
29
+ position: relative;
30
+ overflow: hidden;
31
+ }
32
+
33
+ .loading-overlay {
34
+ position: absolute;
35
+ top: 0;
36
+ left: 0;
37
+ right: 0;
38
+ bottom: 0;
39
+ background-color: rgba(255, 255, 255, 0.8);
40
+ display: flex;
41
+ justify-content: center;
42
+ align-items: center;
43
+ z-index: 10;
44
+ opacity: 0;
45
+ pointer-events: none;
46
+ transition: opacity 0.3s ease;
47
+ }
48
+
49
+ .loading-overlay.active {
50
+ opacity: 1;
51
+ pointer-events: all;
52
+ }
53
+
54
+ .spinner {
55
+ width: 40px;
56
+ height: 40px;
57
+ border: 4px solid rgba(0, 0, 0, 0.1);
58
+ border-radius: 50%;
59
+ border-top-color: #3b82f6;
60
+ animation: spin 1s ease-in-out infinite;
61
+ }
62
+
63
+ @keyframes spin {
64
+ to { transform: rotate(360deg); }
65
+ }
66
+
67
+ .prompt-input:focus {
68
+ outline: none;
69
+ box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
70
+ }
71
+
72
+ .history-item {
73
+ transition: all 0.2s ease;
74
+ }
75
+
76
+ .history-item:hover {
77
+ transform: scale(1.02);
78
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
79
+ }
80
+
81
+ .tab-btn {
82
+ transition: all 0.2s ease;
83
+ }
84
+
85
+ .tab-btn.active {
86
+ border-bottom: 3px solid #3b82f6;
87
+ color: #3b82f6;
88
+ font-weight: 600;
89
+ }
90
+ </style>
91
+ </head>
92
+ <body class="bg-gray-50 font-sans">
93
+ <div class="min-h-screen flex flex-col">
94
+ <!-- Header -->
95
+ <header class="bg-white shadow-sm py-4 px-6">
96
+ <div class="container mx-auto flex justify-between items-center">
97
+ <div class="flex items-center space-x-2">
98
+ <i class="fas fa-magic text-blue-500 text-2xl"></i>
99
+ <h1 class="text-xl font-bold text-gray-800">PixelForge AI</h1>
100
+ </div>
101
+ <nav class="hidden md:flex space-x-6">
102
+ <a href="#" class="text-gray-600 hover:text-blue-500">Home</a>
103
+ <a href="#" class="text-gray-600 hover:text-blue-500">Features</a>
104
+ <a href="#" class="text-gray-600 hover:text-blue-500">Pricing</a>
105
+ <a href="#" class="text-gray-600 hover:text-blue-500">Blog</a>
106
+ </nav>
107
+ <div class="flex items-center space-x-4">
108
+ <button class="px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 transition">
109
+ Sign In
110
+ </button>
111
+ <button class="md:hidden text-gray-600">
112
+ <i class="fas fa-bars text-xl"></i>
113
+ </button>
114
+ </div>
115
+ </div>
116
+ </header>
117
+
118
+ <!-- Main Content -->
119
+ <main class="flex-1 container mx-auto py-6 px-4">
120
+ <div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
121
+ <!-- Tools Panel -->
122
+ <div class="lg:col-span-1 bg-white rounded-lg shadow-sm p-4">
123
+ <div class="flex space-x-2 mb-6">
124
+ <button class="tab-btn active px-4 py-2" data-tab="edit">Edit</button>
125
+ <button class="tab-btn px-4 py-2" data-tab="generate">Generate</button>
126
+ </div>
127
+
128
+ <div id="edit-tab" class="tab-content">
129
+ <h3 class="font-medium text-gray-700 mb-3">Basic Tools</h3>
130
+ <div class="grid grid-cols-2 gap-3 mb-6">
131
+ <button class="tool-btn flex flex-col items-center justify-center p-3 bg-gray-100 rounded-md hover:bg-blue-50">
132
+ <i class="fas fa-crop-alt text-blue-500 text-xl mb-1"></i>
133
+ <span class="text-sm">Crop</span>
134
+ </button>
135
+ <button class="tool-btn flex flex-col items-center justify-center p-3 bg-gray-100 rounded-md hover:bg-blue-50">
136
+ <i class="fas fa-sliders-h text-blue-500 text-xl mb-1"></i>
137
+ <span class="text-sm">Adjust</span>
138
+ </button>
139
+ <button class="tool-btn flex flex-col items-center justify-center p-3 bg-gray-100 rounded-md hover:bg-blue-50">
140
+ <i class="fas fa-font text-blue-500 text-xl mb-1"></i>
141
+ <span class="text-sm">Text</span>
142
+ </button>
143
+ <button class="tool-btn flex flex-col items-center justify-center p-3 bg-gray-100 rounded-md hover:bg-blue-50">
144
+ <i class="fas fa-filter text-blue-500 text-xl mb-1"></i>
145
+ <span class="text-sm">Filters</span>
146
+ </button>
147
+ </div>
148
+
149
+ <h3 class="font-medium text-gray-700 mb-3">AI Tools</h3>
150
+ <div class="space-y-3">
151
+ <button id="remove-bg-btn" class="tool-btn w-full flex items-center p-3 bg-gray-100 rounded-md hover:bg-blue-50">
152
+ <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-3">
153
+ <i class="fas fa-eraser text-blue-500"></i>
154
+ </div>
155
+ <div>
156
+ <h4 class="font-medium">Remove Background</h4>
157
+ <p class="text-xs text-gray-500">Automatically remove image background</p>
158
+ </div>
159
+ </button>
160
+
161
+ <button id="remove-object-btn" class="tool-btn w-full flex items-center p-3 bg-gray-100 rounded-md hover:bg-blue-50">
162
+ <div class="w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center mr-3">
163
+ <i class="fas fa-broom text-purple-500"></i>
164
+ </div>
165
+ <div>
166
+ <h4 class="font-medium">Remove Objects</h4>
167
+ <p class="text-xs text-gray-500">Erase unwanted objects from your image</p>
168
+ </div>
169
+ </button>
170
+
171
+ <button id="generative-fill-btn" class="tool-btn w-full flex items-center p-3 bg-gray-100 rounded-md hover:bg-blue-50">
172
+ <div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center mr-3">
173
+ <i class="fas fa-fill-drip text-green-500"></i>
174
+ </div>
175
+ <div>
176
+ <h4 class="font-medium">Generative Fill</h4>
177
+ <p class="text-xs text-gray-500">Add new elements with AI</p>
178
+ </div>
179
+ </button>
180
+ </div>
181
+ </div>
182
+
183
+ <div id="generate-tab" class="tab-content hidden">
184
+ <h3 class="font-medium text-gray-700 mb-3">AI Generation</h3>
185
+ <div class="mb-4">
186
+ <label class="block text-sm font-medium text-gray-700 mb-1">Style</label>
187
+ <select class="w-full p-2 border border-gray-300 rounded-md">
188
+ <option>Realistic</option>
189
+ <option>Digital Art</option>
190
+ <option>Painting</option>
191
+ <option>3D Render</option>
192
+ <option>Pixel Art</option>
193
+ </select>
194
+ </div>
195
+
196
+ <div class="mb-4">
197
+ <label class="block text-sm font-medium text-gray-700 mb-1">Prompt</label>
198
+ <textarea id="generate-prompt" class="w-full p-2 border border-gray-300 rounded-md h-24" placeholder="Describe what you want to generate..."></textarea>
199
+ </div>
200
+
201
+ <div class="mb-4">
202
+ <label class="block text-sm font-medium text-gray-700 mb-1">Negative Prompt</label>
203
+ <textarea class="w-full p-2 border border-gray-300 rounded-md h-16" placeholder="What you don't want to see..."></textarea>
204
+ </div>
205
+
206
+ <div class="grid grid-cols-2 gap-3 mb-4">
207
+ <div>
208
+ <label class="block text-sm font-medium text-gray-700 mb-1">Width</label>
209
+ <select class="w-full p-2 border border-gray-300 rounded-md">
210
+ <option>512px</option>
211
+ <option>768px</option>
212
+ <option>1024px</option>
213
+ </select>
214
+ </div>
215
+ <div>
216
+ <label class="block text-sm font-medium text-gray-700 mb-1">Height</label>
217
+ <select class="w-full p-2 border border-gray-300 rounded-md">
218
+ <option>512px</option>
219
+ <option>768px</option>
220
+ <option>1024px</option>
221
+ </select>
222
+ </div>
223
+ </div>
224
+
225
+ <button id="generate-image-btn" class="w-full py-2 bg-gradient-to-r from-blue-500 to-purple-500 text-white rounded-md hover:opacity-90 transition">
226
+ Generate Image
227
+ </button>
228
+ </div>
229
+ </div>
230
+
231
+ <!-- Canvas Area -->
232
+ <div class="lg:col-span-2">
233
+ <div class="bg-white rounded-lg shadow-sm overflow-hidden">
234
+ <div class="p-4 border-b flex justify-between items-center">
235
+ <h3 class="font-medium">Editor</h3>
236
+ <div class="flex space-x-2">
237
+ <button class="p-2 text-gray-500 hover:text-blue-500">
238
+ <i class="fas fa-undo"></i>
239
+ </button>
240
+ <button class="p-2 text-gray-500 hover:text-blue-500">
241
+ <i class="fas fa-redo"></i>
242
+ </button>
243
+ <button class="p-2 text-gray-500 hover:text-blue-500">
244
+ <i class="fas fa-download"></i>
245
+ </button>
246
+ </div>
247
+ </div>
248
+
249
+ <div class="editor-container p-4 flex justify-center items-center">
250
+ <div class="canvas-wrapper relative">
251
+ <canvas id="editor-canvas" width="800" height="600" class="max-w-full h-auto border border-gray-200 rounded-md"></canvas>
252
+
253
+ <div id="loading-overlay" class="loading-overlay">
254
+ <div class="text-center">
255
+ <div class="spinner mb-4"></div>
256
+ <p class="text-gray-600">Processing your image...</p>
257
+ </div>
258
+ </div>
259
+
260
+ <div id="generative-fill-ui" class="absolute inset-0 hidden">
261
+ <div class="absolute inset-0 bg-black bg-opacity-30"></div>
262
+ <div class="absolute top-4 left-4 right-4 bg-white p-4 rounded-md shadow-lg">
263
+ <h4 class="font-medium mb-2">Generative Fill</h4>
264
+ <div class="flex mb-3">
265
+ <button class="brush-btn px-3 py-1 bg-blue-500 text-white rounded-l-md" data-size="10">Small</button>
266
+ <button class="brush-btn px-3 py-1 bg-gray-200" data-size="30">Medium</button>
267
+ <button class="brush-btn px-3 py-1 bg-gray-200 rounded-r-md" data-size="50">Large</button>
268
+ </div>
269
+ <input type="text" id="fill-prompt" class="w-full p-2 border border-gray-300 rounded-md mb-2" placeholder="What should appear here?">
270
+ <div class="flex justify-end space-x-2">
271
+ <button id="cancel-fill-btn" class="px-3 py-1 bg-gray-200 rounded-md">Cancel</button>
272
+ <button id="apply-fill-btn" class="px-3 py-1 bg-blue-500 text-white rounded-md">Generate</button>
273
+ </div>
274
+ </div>
275
+ </div>
276
+ </div>
277
+ </div>
278
+ </div>
279
+
280
+ <div class="mt-4 bg-white rounded-lg shadow-sm p-4">
281
+ <h3 class="font-medium text-gray-700 mb-3">History</h3>
282
+ <div class="grid grid-cols-4 gap-2">
283
+ <div class="history-item bg-gray-100 rounded-md overflow-hidden cursor-pointer">
284
+ <img src="https://via.placeholder.com/100" alt="History item" class="w-full h-20 object-cover">
285
+ </div>
286
+ <div class="history-item bg-gray-100 rounded-md overflow-hidden cursor-pointer">
287
+ <img src="https://via.placeholder.com/100" alt="History item" class="w-full h-20 object-cover">
288
+ </div>
289
+ <div class="history-item bg-gray-100 rounded-md overflow-hidden cursor-pointer">
290
+ <img src="https://via.placeholder.com/100" alt="History item" class="w-full h-20 object-cover">
291
+ </div>
292
+ <div class="history-item bg-gray-100 rounded-md overflow-hidden cursor-pointer">
293
+ <img src="https://via.placeholder.com/100" alt="History item" class="w-full h-20 object-cover">
294
+ </div>
295
+ </div>
296
+ </div>
297
+ </div>
298
+
299
+ <!-- Properties Panel -->
300
+ <div class="lg:col-span-1 bg-white rounded-lg shadow-sm p-4">
301
+ <h3 class="font-medium text-gray-700 mb-4">Properties</h3>
302
+
303
+ <div class="mb-6">
304
+ <label class="block text-sm font-medium text-gray-700 mb-1">Brightness</label>
305
+ <input type="range" min="0" max="200" value="100" class="w-full">
306
+ </div>
307
+
308
+ <div class="mb-6">
309
+ <label class="block text-sm font-medium text-gray-700 mb-1">Contrast</label>
310
+ <input type="range" min="0" max="200" value="100" class="w-full">
311
+ </div>
312
+
313
+ <div class="mb-6">
314
+ <label class="block text-sm font-medium text-gray-700 mb-1">Saturation</label>
315
+ <input type="range" min="0" max="200" value="100" class="w-full">
316
+ </div>
317
+
318
+ <div class="mb-6">
319
+ <label class="block text-sm font-medium text-gray-700 mb-1">Temperature</label>
320
+ <input type="range" min="-100" max="100" value="0" class="w-full">
321
+ </div>
322
+
323
+ <div class="mb-6">
324
+ <label class="block text-sm font-medium text-gray-700 mb-1">Vignette</label>
325
+ <input type="range" min="0" max="100" value="0" class="w-full">
326
+ </div>
327
+
328
+ <div class="pt-4 border-t">
329
+ <button class="w-full py-2 bg-gray-100 rounded-md hover:bg-gray-200 transition">
330
+ Reset All Adjustments
331
+ </button>
332
+ </div>
333
+ </div>
334
+ </div>
335
+ </main>
336
+
337
+ <!-- Footer -->
338
+ <footer class="bg-white border-t py-6 px-6">
339
+ <div class="container mx-auto">
340
+ <div class="flex flex-col md:flex-row justify-between items-center">
341
+ <div class="mb-4 md:mb-0">
342
+ <div class="flex items-center space-x-2">
343
+ <i class="fas fa-magic text-blue-500 text-xl"></i>
344
+ <span class="font-bold text-gray-800">PixelForge AI</span>
345
+ </div>
346
+ <p class="text-sm text-gray-500 mt-1">Powerful AI image editing tools for everyone</p>
347
+ </div>
348
+ <div class="flex space-x-6">
349
+ <a href="#" class="text-gray-500 hover:text-blue-500"><i class="fab fa-twitter"></i></a>
350
+ <a href="#" class="text-gray-500 hover:text-blue-500"><i class="fab fa-facebook"></i></a>
351
+ <a href="#" class="text-gray-500 hover:text-blue-500"><i class="fab fa-instagram"></i></a>
352
+ <a href="#" class="text-gray-500 hover:text-blue-500"><i class="fab fa-github"></i></a>
353
+ </div>
354
+ </div>
355
+ <div class="mt-6 pt-6 border-t text-center text-sm text-gray-500">
356
+ <p>© 2023 PixelForge AI. All rights reserved.</p>
357
+ </div>
358
+ </div>
359
+ </footer>
360
+ </div>
361
+
362
+ <script>
363
+ // Tab switching
364
+ const tabBtns = document.querySelectorAll('.tab-btn');
365
+ const tabContents = document.querySelectorAll('.tab-content');
366
+
367
+ tabBtns.forEach(btn => {
368
+ btn.addEventListener('click', () => {
369
+ // Remove active class from all buttons
370
+ tabBtns.forEach(b => b.classList.remove('active'));
371
+ // Add active class to clicked button
372
+ btn.classList.add('active');
373
+
374
+ // Hide all tab contents
375
+ tabContents.forEach(content => content.classList.add('hidden'));
376
+ // Show the selected tab content
377
+ const tabId = btn.getAttribute('data-tab') + '-tab';
378
+ document.getElementById(tabId).classList.remove('hidden');
379
+ });
380
+ });
381
+
382
+ // Brush size selection
383
+ const brushBtns = document.querySelectorAll('.brush-btn');
384
+ brushBtns.forEach(btn => {
385
+ btn.addEventListener('click', () => {
386
+ brushBtns.forEach(b => {
387
+ b.classList.remove('bg-blue-500', 'text-white');
388
+ b.classList.add('bg-gray-200');
389
+ });
390
+ btn.classList.remove('bg-gray-200');
391
+ btn.classList.add('bg-blue-500', 'text-white');
392
+ // Here you would set the brush size in your canvas
393
+ });
394
+ });
395
+
396
+ // AI Tools functionality
397
+ const removeBgBtn = document.getElementById('remove-bg-btn');
398
+ const removeObjectBtn = document.getElementById('remove-object-btn');
399
+ const generativeFillBtn = document.getElementById('generative-fill-btn');
400
+ const loadingOverlay = document.getElementById('loading-overlay');
401
+ const generativeFillUI = document.getElementById('generative-fill-ui');
402
+ const cancelFillBtn = document.getElementById('cancel-fill-btn');
403
+ const applyFillBtn = document.getElementById('apply-fill-btn');
404
+ const generateImageBtn = document.getElementById('generate-image-btn');
405
+
406
+ // Simulate AI processing
407
+ function simulateAIProcessing() {
408
+ loadingOverlay.classList.add('active');
409
+ setTimeout(() => {
410
+ loadingOverlay.classList.remove('active');
411
+ // Here you would update the canvas with the processed image
412
+ }, 2000);
413
+ }
414
+
415
+ removeBgBtn.addEventListener('click', () => {
416
+ simulateAIProcessing();
417
+ });
418
+
419
+ removeObjectBtn.addEventListener('click', () => {
420
+ simulateAIProcessing();
421
+ });
422
+
423
+ generativeFillBtn.addEventListener('click', () => {
424
+ generativeFillUI.classList.remove('hidden');
425
+ });
426
+
427
+ cancelFillBtn.addEventListener('click', () => {
428
+ generativeFillUI.classList.add('hidden');
429
+ });
430
+
431
+ applyFillBtn.addEventListener('click', () => {
432
+ generativeFillUI.classList.add('hidden');
433
+ simulateAIProcessing();
434
+ });
435
+
436
+ generateImageBtn.addEventListener('click', () => {
437
+ const prompt = document.getElementById('generate-prompt').value;
438
+ if (prompt.trim() === '') {
439
+ alert('Please enter a prompt for image generation');
440
+ return;
441
+ }
442
+ simulateAIProcessing();
443
+ });
444
+
445
+ // Initialize canvas
446
+ const canvas = document.getElementById('editor-canvas');
447
+ const ctx = canvas.getContext('2d');
448
+
449
+ // Draw placeholder image
450
+ ctx.fillStyle = '#f0f0f0';
451
+ ctx.fillRect(0, 0, canvas.width, canvas.height);
452
+ ctx.fillStyle = '#ccc';
453
+ ctx.font = '16px Arial';
454
+ ctx.textAlign = 'center';
455
+ ctx.fillText('Upload or generate an image to start editing', canvas.width/2, canvas.height/2);
456
+
457
+ // File upload functionality (would be implemented fully in a real app)
458
+ canvas.addEventListener('click', () => {
459
+ // In a real app, this would trigger a file input dialog
460
+ console.log('Prompt user to upload an image');
461
+ });
462
+ </script>
463
+ <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 <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=elvson/pixelforge-ai" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
464
+ </html>