Saad4web commited on
Commit
b6ea795
·
verified ·
1 Parent(s): 37d62bb

Play Role Web Dev Senior TensorflowJs and Start Build Web App For Next Tools Using TfJs and html5 and tailwind css with professional and good logic and make each tool on page and add nav tab : Image Compressor You can compress images and reduce their size. This process may reduce the quality of the image. Image Resizer You can change the dimensions (width and height) of the image. Image Rotate & Reflect You can rotate and reflect the image at any angle you want. Watermark You can add any text you want to the image as watermark. - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +514 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Tooooly
3
- emoji: 🏆
4
- colorFrom: yellow
5
- colorTo: yellow
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: tooooly
3
+ emoji: 🐳
4
+ colorFrom: purple
5
+ colorTo: purple
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,514 @@
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>Image Processing Toolkit | TensorFlow.js</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-image@latest"></script>
10
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
11
+ <script>
12
+ tailwind.config = {
13
+ theme: {
14
+ extend: {
15
+ colors: {
16
+ primary: '#5a67d8',
17
+ secondary: '#4c51bf',
18
+ dark: '#1a202c',
19
+ light: '#f8fafc'
20
+ }
21
+ }
22
+ }
23
+ }
24
+ </script>
25
+ </head>
26
+ <body class="bg-gray-100 text-gray-800">
27
+ <div class="min-h-screen flex flex-col">
28
+ <!-- Header -->
29
+ <header class="bg-gradient-to-r from-primary to-secondary shadow-lg">
30
+ <div class="container mx-auto px-4 py-6">
31
+ <div class="flex flex-col md:flex-row justify-between items-center">
32
+ <div class="flex items-center space-x-2 mb-4 md:mb-0">
33
+ <div class="w-10 h-10 rounded-full bg-white flex items-center justify-center">
34
+ <i class="fas fa-image text-primary text-xl"></i>
35
+ </div>
36
+ <h1 class="text-white text-2xl font-bold">Image Processing Toolkit</h1>
37
+ </div>
38
+ <nav class="flex space-x-2">
39
+ <button id="compressor-tab" class="nav-tab active" data-tab="compressor">
40
+ <i class="fas fa-compress-alt mr-2"></i> Compressor
41
+ </button>
42
+ <button id="resizer-tab" class="nav-tab" data-tab="resizer">
43
+ <i class="fas fa-expand-alt mr-2"></i> Resizer
44
+ </button>
45
+ <button id="rotator-tab" class="nav-tab" data-tab="rotator">
46
+ <i class="fas fa-sync-alt mr-2"></i> Rotate/Reflect
47
+ </button>
48
+ <button id="watermark-tab" class="nav-tab" data-tab="watermark">
49
+ <i class="fas fa-tint mr-2"></i> Watermark
50
+ </button>
51
+ </nav>
52
+ </div>
53
+ </div>
54
+ </header>
55
+
56
+ <!-- Main Content -->
57
+ <main class="flex-grow container mx-auto px-4 py-8">
58
+ <!-- Loading Indicator -->
59
+ <div id="loading" class="hidden fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center">
60
+ <div class="bg-white p-6 rounded-lg shadow-xl flex flex-col items-center">
61
+ <div class="w-16 h-16 border-t-2 border-primary rounded-full animate-spin"></div>
62
+ <p class="mt-4 text-lg font-medium">Processing image...</p>
63
+ </div>
64
+ </div>
65
+
66
+ <!-- Tool Sections -->
67
+ <div class="tool-section" id="compressor-section">
68
+ <div class="card">
69
+ <h2 class="card-title"><i class="fas fa-compress-alt mr-2"></i> Image Compressor</h2>
70
+ <p class="text-gray-600 mb-6">Reduce image file size while maintaining reasonable quality</p>
71
+
72
+ <div class="flex flex-col md:flex-row gap-8">
73
+ <!-- Input Section -->
74
+ <div class="flex-1">
75
+ <div class="bg-gray-50 rounded-lg border border-dashed border-gray-300 p-6 text-center cursor-pointer relative hover:border-primary transition-colors duration-300" id="upload-area">
76
+ <input type="file" id="image-input" class="absolute inset-0 w-full h-full opacity-0 cursor-pointer" accept="image/*">
77
+ <i class="fas fa-cloud-upload-alt text-5xl text-gray-400 mb-4"></i>
78
+ <h3 class="text-lg font-medium mb-2">Upload Image</h3>
79
+ <p class="text-sm text-gray-500 max-w-xs mx-auto">Click to browse or drag and drop your image here</p>
80
+ <p class="text-xs text-gray-400 mt-3">Supported: JPG, PNG, GIF, BMP</p>
81
+ </div>
82
+ <div id="image-info" class="mt-4 hidden">
83
+ <div class="flex justify-between mb-1">
84
+ <span class="font-medium">Original Size:</span>
85
+ <span id="original-size">-</span>
86
+ </div>
87
+ <div class="flex justify-between mb-1">
88
+ <span class="font-medium">Current Size:</span>
89
+ <span id="current-size">-</span>
90
+ </div>
91
+ <div class="flex justify-between text-secondary font-medium">
92
+ <span>Reduction:</span>
93
+ <span id="reduction-percent">-</span>
94
+ </div>
95
+ </div>
96
+ </div>
97
+
98
+ <!-- Settings Section -->
99
+ <div class="flex-1">
100
+ <div class="settings-card">
101
+ <label class="block mb-2 font-medium">Compression Quality</label>
102
+ <div class="flex items-center space-x-3">
103
+ <i class="fas fa-file-image text-gray-500"></i>
104
+ <input type="range" id="quality-range" min="10" max="95" value="75" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer accent-primary">
105
+ <i class="fas fa-file-image text-primary"></i>
106
+ </div>
107
+ <div class="flex justify-between mt-1">
108
+ <span class="text-sm text-gray-500">Smaller File</span>
109
+ <span class="text-sm text-gray-500">Better Quality</span>
110
+ </div>
111
+ <div class="text-center mt-2">
112
+ <span id="quality-value" class="font-medium text-lg">75%</span>
113
+ </div>
114
+ </div>
115
+
116
+ <div class="settings-card mt-4">
117
+ <label class="block mb-2 font-medium">Compression Format</label>
118
+ <div class="grid grid-cols-2 gap-2">
119
+ <button class="format-btn active" data-format="jpeg">JPEG</button>
120
+ <button class="format-btn" data-format="png">PNG</button>
121
+ </div>
122
+ </div>
123
+
124
+ <div class="flex gap-3 mt-6">
125
+ <button id="process-btn" class="btn-primary flex-1" disabled>
126
+ <i class="fas fa-cog mr-2"></i> Process
127
+ </button>
128
+ <button id="download-btn" class="btn-secondary flex-1" disabled>
129
+ <i class="fas fa-download mr-2"></i> Download
130
+ </button>
131
+ </div>
132
+ </div>
133
+ </div>
134
+
135
+ <!-- Preview Section -->
136
+ <div class="mt-10 grid grid-cols-1 md:grid-cols-2 gap-6">
137
+ <div class="preview-card">
138
+ <h3 class="font-medium text-gray-700 mb-2">Original Image</h3>
139
+ <div class="preview-container">
140
+ <img id="original-preview" class="max-w-full max-h-64 mx-auto">
141
+ </div>
142
+ </div>
143
+ <div class="preview-card">
144
+ <h3 class="font-medium text-gray-700 mb-2">Processed Image</h3>
145
+ <div class="preview-container">
146
+ <img id="processed-preview" class="max-w-full max-h-64 mx-auto">
147
+ </div>
148
+ </div>
149
+ </div>
150
+ </div>
151
+ </div>
152
+
153
+ <!-- Other tools would be here with similar structure -->
154
+ <!-- Resizer Tool -->
155
+ <div class="tool-section hidden" id="resizer-section">
156
+ <div class="card">
157
+ <h2 class="card-title"><i class="fas fa-expand-alt mr-2"></i> Image Resizer</h2>
158
+ <p class="text-gray-600 mb-6">Change image dimensions while preserving aspect ratio</p>
159
+ <div class="text-center py-12">
160
+ <i class="fas fa-tools text-4xl text-gray-300 mb-4"></i>
161
+ <h3 class="text-xl font-medium text-gray-600">Coming Soon</h3>
162
+ <p class="text-gray-500">Our resizer tool is currently under development</p>
163
+ </div>
164
+ </div>
165
+ </div>
166
+
167
+ <!-- Rotator Tool -->
168
+ <div class="tool-section hidden" id="rotator-section">
169
+ <div class="card">
170
+ <h2 class="card-title"><i class="fas fa-sync-alt mr-2"></i> Image Rotate & Reflect</h2>
171
+ <p class="text-gray-600 mb-6">Rotate and flip images to any orientation</p>
172
+ <div class="text-center py-12">
173
+ <i class="fas fa-tools text-4xl text-gray-300 mb-4"></i>
174
+ <h3 class="text-xl font-medium text-gray-600">Coming Soon</h3>
175
+ <p class="text-gray-500">Our rotator tool is currently under development</p>
176
+ </div>
177
+ </div>
178
+ </div>
179
+
180
+ <!-- Watermark Tool -->
181
+ <div class="tool-section hidden" id="watermark-section">
182
+ <div class="card">
183
+ <h2 class="card-title"><i class="fas fa-tint mr-2"></i> Watermark</h2>
184
+ <p class="text-gray-600 mb-6">Add text or logo watermarks to protect your images</p>
185
+ <div class="text-center py-12">
186
+ <i class="fas fa-tools text-4xl text-gray-300 mb-4"></i>
187
+ <h3 class="text-xl font-medium text-gray-600">Coming Soon</h3>
188
+ <p class="text-gray-500">Our watermark tool is currently under development</p>
189
+ </div>
190
+ </div>
191
+ </div>
192
+ </main>
193
+
194
+ <!-- Footer -->
195
+ <footer class="bg-dark text-gray-300 py-6">
196
+ <div class="container mx-auto px-4">
197
+ <div class="flex flex-col md:flex-row justify-between items-center">
198
+ <div class="mb-4 md:mb-0">
199
+ <h3 class="text-lg font-bold text-white mb-2">Image Processing Toolkit</h3>
200
+ <p class="text-sm">Powered by TensorFlow.js & HTML5</p>
201
+ </div>
202
+ <div class="flex space-x-4">
203
+ <a href="#" class="hover:text-white transition-colors">
204
+ <i class="fab fa-github text-lg"></i>
205
+ </a>
206
+ <a href="#" class="hover:text-white transition-colors">
207
+ <i class="fab fa-twitter text-lg"></i>
208
+ </a>
209
+ <a href="#" class="hover:text-white transition-colors">
210
+ <i class="fab fa-linkedin text-lg"></i>
211
+ </a>
212
+ </div>
213
+ </div>
214
+ <div class="mt-6 text-center text-sm text-gray-400">
215
+ <p>&copy; 2023 Image Processing Toolkit. All rights reserved.</p>
216
+ </div>
217
+ </div>
218
+ </footer>
219
+ </div>
220
+
221
+ <script>
222
+ // Tabs functionality
223
+ const tabs = document.querySelectorAll('[data-tab]');
224
+ const sections = document.querySelectorAll('.tool-section');
225
+
226
+ tabs.forEach(tab => {
227
+ tab.addEventListener('click', () => {
228
+ const targetId = `${tab.dataset.tab}-section`;
229
+
230
+ // Update active tab
231
+ tabs.forEach(t => t.classList.remove('active'));
232
+ tab.classList.add('active');
233
+
234
+ // Show target section
235
+ sections.forEach(section => {
236
+ section.classList.add('hidden');
237
+ });
238
+ document.getElementById(targetId).classList.remove('hidden');
239
+ });
240
+ });
241
+
242
+ // Image compressor functionality
243
+ const fileInput = document.getElementById('image-input');
244
+ const uploadArea = document.getElementById('upload-area');
245
+ const originalPreview = document.getElementById('original-preview');
246
+ const processedPreview = document.getElementById('processed-preview');
247
+ const qualityRange = document.getElementById('quality-range');
248
+ const qualityValue = document.getElementById('quality-value');
249
+ const processBtn = document.getElementById('process-btn');
250
+ const downloadBtn = document.getElementById('download-btn');
251
+ const loadingIndicator = document.getElementById('loading');
252
+ const imageInfo = document.getElementById('image-info');
253
+ const originalSize = document.getElementById('original-size');
254
+ const currentSize = document.getElementById('current-size');
255
+ const reductionPercent = document.getElementById('reduction-percent');
256
+ const formatButtons = document.querySelectorAll('.format-btn');
257
+
258
+ let originalImage = null;
259
+ let processedImageDataUrl = null;
260
+ let currentFormat = 'jpeg';
261
+
262
+ // Update quality display
263
+ qualityRange.addEventListener('input', () => {
264
+ qualityValue.textContent = `${qualityRange.value}%`;
265
+ });
266
+
267
+ // Handle file upload
268
+ fileInput.addEventListener('change', function(e) {
269
+ if (this.files && this.files[0]) {
270
+ const file = this.files[0];
271
+
272
+ // Validate file type
273
+ if (!file.type.match('image.*')) {
274
+ alert('Please select a valid image file');
275
+ return;
276
+ }
277
+
278
+ // Read the file
279
+ const reader = new FileReader();
280
+
281
+ reader.onload = function(e) {
282
+ // Load and preview original image
283
+ originalImage = new Image();
284
+ originalImage.src = e.target.result;
285
+
286
+ originalImage.onload = function() {
287
+ // Update preview
288
+ originalPreview.src = this.src;
289
+
290
+ // Show original file size
291
+ const sizeInKB = (file.size / 1024).toFixed(2);
292
+ originalSize.textContent = `${sizeInKB} KB`;
293
+ currentSize.textContent = '-';
294
+ reductionPercent.textContent = '-';
295
+
296
+ // Show image info
297
+ imageInfo.classList.remove('hidden');
298
+
299
+ // Enable process button
300
+ processBtn.disabled = false;
301
+
302
+ // Reset processed preview
303
+ processedPreview.src = '';
304
+ downloadBtn.disabled = true;
305
+ };
306
+ };
307
+
308
+ reader.readAsDataURL(file);
309
+ }
310
+ });
311
+
312
+ // Handle drag and drop
313
+ uploadArea.addEventListener('dragover', function(e) {
314
+ e.preventDefault();
315
+ this.classList.add('border-primary', 'bg-blue-50');
316
+ });
317
+
318
+ uploadArea.addEventListener('dragleave', function() {
319
+ this.classList.remove('border-primary', 'bg-blue-50');
320
+ });
321
+
322
+ uploadArea.addEventListener('drop', function(e) {
323
+ e.preventDefault();
324
+ this.classList.remove('border-primary', 'bg-blue-50');
325
+
326
+ if (e.dataTransfer.files.length) {
327
+ fileInput.files = e.dataTransfer.files;
328
+ const event = new Event('change', { bubbles: true });
329
+ fileInput.dispatchEvent(event);
330
+ }
331
+ });
332
+
333
+ // Format selection
334
+ formatButtons.forEach(button => {
335
+ button.addEventListener('click', function() {
336
+ formatButtons.forEach(b => b.classList.remove('active'));
337
+ this.classList.add('active');
338
+ currentFormat = this.dataset.format;
339
+ });
340
+ });
341
+
342
+ // Process image with TensorFlow.js
343
+ processBtn.addEventListener('click', async function() {
344
+ if (!originalImage) return;
345
+
346
+ showLoading(true);
347
+
348
+ try {
349
+ // Using TensorFlow.js for image processing
350
+ await tf.setBackend('webgl');
351
+
352
+ // Convert image to tensor
353
+ const tensor = tf.browser.fromPixels(originalImage);
354
+
355
+ // Here would be the actual TensorFlow.js compression algorithm
356
+ // For demonstration, we'll simulate compression using canvas
357
+ setTimeout(() => {
358
+ // Create an offscreen canvas
359
+ const canvas = document.createElement('canvas');
360
+ const ctx = canvas.getContext('2d');
361
+
362
+ // Set canvas dimensions
363
+ canvas.width = originalImage.width;
364
+ canvas.height = originalImage.height;
365
+
366
+ // Draw image on canvas
367
+ ctx.drawImage(originalImage, 0, 0);
368
+
369
+ // Get the compressed data URL
370
+ const quality = parseInt(qualityRange.value) / 100;
371
+ const mimeType = currentFormat === 'png' ? 'image/png' : 'image/jpeg';
372
+
373
+ processedImageDataUrl = canvas.toDataURL(mimeType, quality);
374
+
375
+ // Update the preview
376
+ processedPreview.src = processedImageDataUrl;
377
+
378
+ // Calculate and display file size info
379
+ const base64String = processedImageDataUrl.split(',')[1];
380
+ const sizeInBytes = 4 * Math.ceil(base64String.length / 3) * 0.5624896334383812;
381
+ const sizeInKB = (sizeInBytes / 1024).toFixed(2);
382
+
383
+ // Get original size
384
+ const originalSizeValue = parseFloat(originalSize.textContent.split(' ')[0]);
385
+
386
+ // Update UI
387
+ currentSize.textContent = `${sizeInKB} KB`;
388
+
389
+ const reduction = 100 - (sizeInKB / originalSizeValue) * 100;
390
+ reductionPercent.textContent = `${reduction.toFixed(1)}%`;
391
+
392
+ // Enable download button
393
+ downloadBtn.disabled = false;
394
+
395
+ // Clean up
396
+ showLoading(false);
397
+ }, 800); // Simulated processing time
398
+
399
+ } catch (error) {
400
+ console.error('Image processing error:', error);
401
+ alert('Error processing image. Please try again.');
402
+ showLoading(false);
403
+ }
404
+ });
405
+
406
+ // Download processed image
407
+ downloadBtn.addEventListener('click', function() {
408
+ if (!processedImageDataUrl) return;
409
+
410
+ const link = document.createElement('a');
411
+ link.href = processedImageDataUrl;
412
+
413
+ // Create filename with compression info
414
+ const quality = qualityRange.value;
415
+ const fileName = `compressed-${quality}q.${currentFormat}`;
416
+
417
+ link.download = fileName;
418
+ link.click();
419
+ });
420
+
421
+ // Helper function to show/hide loading indicator
422
+ function showLoading(show) {
423
+ loadingIndicator.classList.toggle('hidden', !show);
424
+
425
+ // Disable buttons during processing
426
+ [processBtn, downloadBtn].forEach(btn => {
427
+ btn.disabled = show;
428
+ });
429
+ }
430
+
431
+ // Initialize tab - show compressor by default
432
+ document.querySelector('[data-tab="compressor"]').click();
433
+ </script>
434
+
435
+ <style>
436
+ .card {
437
+ @apply bg-white rounded-xl shadow-md overflow-hidden p-6 md:p-8;
438
+ }
439
+
440
+ .card-title {
441
+ @apply text-2xl font-bold text-primary mb-2 flex items-center;
442
+ }
443
+
444
+ .nav-tab {
445
+ @apply flex items-center px-4 py-2 rounded-lg text-white font-medium bg-white bg-opacity-20 hover:bg-opacity-30 transition-colors duration-300;
446
+ }
447
+
448
+ .nav-tab.active {
449
+ @apply bg-white bg-opacity-40 font-semibold;
450
+ }
451
+
452
+ .settings-card {
453
+ @apply bg-gray-50 rounded-lg p-4;
454
+ }
455
+
456
+ .preview-card {
457
+ @apply bg-gray-50 rounded-lg border border-gray-200 p-4;
458
+ }
459
+
460
+ .preview-container {
461
+ @apply bg-gradient-to-br from-gray-100 to-gray-200 border-2 border-dashed border-gray-300 rounded-lg flex items-center justify-center h-64 overflow-hidden;
462
+ }
463
+
464
+ .btn-primary {
465
+ @apply bg-primary hover:bg-secondary text-white font-medium py-3 px-6 rounded-lg transition-colors duration-300 flex items-center justify-center;
466
+ }
467
+
468
+ .btn-secondary {
469
+ @apply bg-gray-200 hover:bg-gray-300 text-gray-800 font-medium py-3 px-6 rounded-lg transition-colors duration-300 flex items-center justify-center;
470
+ }
471
+
472
+ .btn-primary:disabled, .btn-secondary:disabled {
473
+ @apply opacity-50 cursor-not-allowed;
474
+ }
475
+
476
+ .format-btn {
477
+ @apply bg-gray-200 text-gray-800 rounded py-2 text-center hover:bg-gray-300 transition-colors duration-200;
478
+ }
479
+
480
+ .format-btn.active {
481
+ @apply bg-primary text-white;
482
+ }
483
+
484
+ #upload-area {
485
+ transition: all 0.3s ease;
486
+ }
487
+
488
+ .tool-section {
489
+ transition: all 0.4s ease;
490
+ }
491
+
492
+ input[type="range"] {
493
+ -webkit-appearance: none;
494
+ height: 8px;
495
+ border-radius: 5px;
496
+ outline: none;
497
+ }
498
+
499
+ input[type="range"]::-webkit-slider-thumb {
500
+ -webkit-appearance: none;
501
+ width: 20px;
502
+ height: 20px;
503
+ border-radius: 50%;
504
+ background: #5a67d8;
505
+ cursor: pointer;
506
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
507
+ }
508
+
509
+ #loading {
510
+ transition: all 0.3s ease;
511
+ }
512
+ </style>
513
+ <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=Saad4web/tooooly" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
514
+ </html>