Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Image Generator - 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 Generator</h1> | |
| <p class="text-gray-400 mb-8">Create stunning visuals from text prompts or images</p> | |
| <div class="glass-effect rounded-2xl p-6 md:p-8 border border-gray-800"> | |
| <!-- Prompt Input --> | |
| <div class="mb-8"> | |
| <label class="block text-gray-400 mb-2">Describe what you want to create</label> | |
| <textarea | |
| class="w-full bg-gray-800 border border-gray-700 rounded-xl p-4 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent" | |
| rows="4" | |
| placeholder="A futuristic cityscape with flying cars and neon lights, cyberpunk style..."></textarea> | |
| </div> | |
| <!-- Options Grid --> | |
| <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="image" class="w-5 h-5"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold">Image Reference</h3> | |
| </div> | |
| <p class="text-gray-400 text-sm">Upload an image for style reference</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="droplet" class="w-5 h-5"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold">Style</h3> | |
| </div> | |
| <select class="w-full bg-gray-700 border border-gray-600 rounded-lg p-2 text-gray-300"> | |
| <option>None</option> | |
| <option>Realistic</option> | |
| <option>Abstract</option> | |
| <option>Cartoon</option> | |
| <option>Cyberpunk</option> | |
| </select> | |
| </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="settings" class="w-5 h-5"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold">Advanced Settings</h3> | |
| </div> | |
| <p class="text-gray-400 text-sm">Adjust generation parameters</p> | |
| </div> | |
| </div> | |
| <!-- Negative Prompt --> | |
| <div class="mb-8"> | |
| <label class="block text-gray-400 mb-2">Negative Prompt</label> | |
| <input | |
| type="text" | |
| class="w-full bg-gray-800 border border-gray-700 rounded-xl p-4 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent" | |
| placeholder="What to exclude from generation..."> | |
| </div> | |
| <!-- Generate 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"> | |
| Generate Image | |
| </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">Generated Image</h2> | |
| <div class="bg-gray-800 rounded-xl p-6"> | |
| <img src="http://static.photos/abstract/640x360/789" alt="Generated" class="rounded-lg w-full"> | |
| </div> | |
| <div class="mt-6"> | |
| <h3 class="text-lg font-semibold mb-2">Prompt Used</h3> | |
| <p class="bg-gray-800 p-4 rounded-lg">A futuristic cityscape with flying cars and neon lights, cyberpunk style, high detail, digital art</p> | |
| </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 generate button is clicked | |
| document.querySelector('button.w-full.py-4').addEventListener('click', function() { | |
| document.getElementById('results-section').classList.remove('hidden'); | |
| }); | |
| </script> | |
| </body> | |
| </html> |