Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Image Editor - AI Creative Studio</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script> | |
| <script> | |
| tailwind.config = { | |
| darkMode: 'class', | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: { | |
| 500: '#f97316', // orange-500 | |
| }, | |
| secondary: { | |
| 500: '#f59e0b', // amber-500 | |
| } | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <style> | |
| .glass-effect { | |
| backdrop-filter: blur(10px); | |
| background: rgba(15, 23, 42, 0.7); | |
| } | |
| .gradient-text { | |
| background: linear-gradient(90deg, #f97316, #f59e0b); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| .card-hover { | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| } | |
| .card-hover:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-900 text-white min-h-screen"> | |
| <!-- Background Animation --> | |
| <div id="vanta-bg" class="fixed top-0 left-0 w-full h-full -z-10"></div> | |
| <!-- Header --> | |
| <header class="glass-effect sticky top-0 z-50 border-b border-gray-800"> | |
| <div class="container mx-auto px-4 py-4 flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <div class="w-10 h-10 rounded-lg bg-gradient-to-r from-primary-500 to-secondary-500 flex items-center justify-center"> | |
| <i data-feather="aperture" class="text-white"></i> | |
| </div> | |
| <h1 class="text-2xl font-bold gradient-text">AI Creative Studio</h1> | |
| </div> | |
| <nav class="hidden md:flex space-x-8"> | |
| <a href="image-to-prompt.html" class="font-medium hover:text-primary-500 transition-colors">Image to Prompt</a> | |
| <a href="image-generator.html" class="font-medium hover:text-primary-500 transition-colors">Image Generator</a> | |
| <a href="image-editor.html" class="font-medium hover:text-primary-500 transition-colors">Image Editor</a> | |
| <a href="ai-ad-generator.html" class="font-medium hover:text-primary-500 transition-colors">AI Ad Generator</a> | |
| <a href="ai-chat.html" class="font-medium hover:text-primary-500 transition-colors">AI Chat</a> | |
| </nav> | |
| <div class="flex items-center space-x-4"> | |
| <button class="px-4 py-2 rounded-lg bg-gradient-to-r from-primary-500 to-secondary-500 font-medium hover:opacity-90 transition-opacity"> | |
| Sign In | |
| </button> | |
| <button class="md:hidden"> | |
| <i data-feather="menu" class="w-6 h-6"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <section class="py-16"> | |
| <div class="container mx-auto px-4"> | |
| <div class="max-w-4xl mx-auto"> | |
| <h1 class="text-3xl font-bold mb-2">AI Image Editor</h1> | |
| <p class="text-gray-400 mb-8">Enhance and modify your images with AI-powered tools</p> | |
| <div class="glass-effect rounded-2xl p-6 md:p-8 border border-gray-800"> | |
| <!-- Upload Area --> | |
| <div class="rounded-xl p-12 mb-8 bg-gray-800 border border-gray-700"> | |
| <div class="flex flex-col items-center justify-center"> | |
| <i data-feather="upload-cloud" class="w-12 h-12 text-primary-500 mb-4"></i> | |
| <h3 class="text-2xl font-semibold mb-2">Upload an image to edit</h3> | |
| <p class="text-gray-400 mb-6">or choose from your recent uploads</p> | |
| <button class="px-6 py-3 rounded-lg bg-gradient-to-r from-primary-500 to-secondary-500 font-medium"> | |
| Choose File | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Editing Tools --> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8"> | |
| <div class="bg-gray-800 rounded-xl p-6 card-hover"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-10 h-10 rounded-lg bg-primary-500 flex items-center justify-center mr-3"> | |
| <i data-feather="wand" class="w-5 h-5"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold">AI Enhance</h3> | |
| </div> | |
| <p class="text-gray-400 text-sm">Automatically improve image quality</p> | |
| </div> | |
| <div class="bg-gray-800 rounded-xl p-6 card-hover"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-10 h-10 rounded-lg bg-secondary-500 flex items-center justify-center mr-3"> | |
| <i data-feather="scissors" class="w-5 h-5"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold">Background Remove</h3> | |
| </div> | |
| <p class="text-gray-400 text-sm">Remove background with one click</p> | |
| </div> | |
| <div class="bg-gray-800 rounded-xl p-6 card-hover"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-10 h-10 rounded-lg bg-primary-500 flex items-center justify-center mr-3"> | |
| <i data-feather="sun" class="w-5 h-5"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold">Color Adjust</h3> | |
| </div> | |
| <p class="text-gray-400 text-sm">Adjust brightness, contrast, and saturation</p> | |
| </div> | |
| </div> | |
| <!-- Advanced Tools --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8"> | |
| <div class="bg-gray-800 rounded-xl p-6 card-hover"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-10 h-10 rounded-lg bg-secondary-500 flex items-center justify-center mr-3"> | |
| <i data-feather="edit-3" class="w-5 h-5"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold">Object Removal</h3> | |
| </div> | |
| <p class="text-gray-400 text-sm">Remove unwanted objects from your image</p> | |
| </div> | |
| <div class="bg-gray-800 rounded-xl p-6 card-hover"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-10 h-10 rounded-lg bg-primary-500 flex items-center justify-center mr-3"> | |
| <i data-feather="copy" class="w-5 h-5"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold">Image Resize</h3> | |
| </div> | |
| <p class="text-gray-400 text-sm">Resize image while maintaining quality</p> | |
| </div> | |
| </div> | |
| <!-- Apply Button --> | |
| <button class="w-full py-4 rounded-xl bg-gradient-to-r from-primary-500 to-secondary-500 font-bold text-lg hover:opacity-90 transition-opacity"> | |
| Apply Edits | |
| </button> | |
| </div> | |
| <!-- Results Section --> | |
| <div id="results-section" class="mt-12 glass-effect rounded-2xl p-6 md:p-8 border border-gray-800 hidden"> | |
| <h2 class="text-2xl font-bold mb-6">Edited Image</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div class="bg-gray-800 rounded-xl p-6"> | |
| <h3 class="text-lg font-semibold mb-4">Original</h3> | |
| <img src="http://static.photos/technology/640x360/123" alt="Original" class="rounded-lg w-full"> | |
| </div> | |
| <div class="bg-gray-800 rounded-xl p-6"> | |
| <h3 class="text-lg font-semibold mb-4">Edited</h3> | |
| <img src="http://static.photos/abstract/640x360/456" alt="Edited" class="rounded-lg w-full"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer class="py-8 border-t border-gray-800"> | |
| <div class="container mx-auto px-4 text-center"> | |
| <p class="text-gray-500"> | |
| © 2023 AI Creative Studio. All rights reserved. | |
| </p> | |
| </div> | |
| </footer> | |
| <script> | |
| feather.replace(); | |
| VANTA.GLOBE({ | |
| el: "#vanta-bg", | |
| mouseControls: true, | |
| touchControls: true, | |
| gyroControls: false, | |
| minHeight: 200.00, | |
| minWidth: 200.00, | |
| scale: 1.00, | |
| scaleMobile: 1.00, | |
| color: 0xf97316, | |
| color2: 0xf59e0b, | |
| backgroundColor: 0x0f172a | |
| }); | |
| // Show results when apply button is clicked | |
| document.querySelector('button.w-full.py-4').addEventListener('click', function() { | |
| document.getElementById('results-section').classList.remove('hidden'); | |
| }); | |
| </script> | |
| </body> | |
| </html> |