Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>AI Chat - 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; | |
| } | |
| .chat-bubble { | |
| border-radius: 1rem; | |
| padding: 1rem; | |
| margin-bottom: 1rem; | |
| max-width: 80%; | |
| } | |
| .user-bubble { | |
| background: linear-gradient(90deg, #f97316, #f59e0b); | |
| margin-left: auto; | |
| } | |
| .ai-bubble { | |
| background: rgba(30, 41, 59, 0.7); | |
| margin-right: auto; | |
| } | |
| </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-8 flex-1 flex flex-col"> | |
| <div class="container mx-auto px-4 flex-1 flex flex-col"> | |
| <div class="max-w-4xl mx-auto flex-1 flex flex-col"> | |
| <h1 class="text-3xl font-bold mb-2">AI Chat Assistant</h1> | |
| <p class="text-gray-400 mb-6">Ask anything about creative design, image generation, or get help with your projects</p> | |
| <!-- Chat Container --> | |
| <div class="glass-effect rounded-2xl p-6 md:p-8 border border-gray-800 flex-1 flex flex-col"> | |
| <div class="flex-1 overflow-y-auto mb-6 space-y-4"> | |
| <!-- AI Message --> | |
| <div class="chat-bubble ai-bubble"> | |
| <p>Hello! I'm your AI creative assistant. How can I help you today with your design projects?</p> | |
| </div> | |
| <!-- User Message --> | |
| <div class="chat-bubble user-bubble"> | |
| <p>I need help creating a cyberpunk-style image of a futuristic city. Can you guide me?</p> | |
| </div> | |
| <!-- AI Response --> | |
| <div class="chat-bubble ai-bubble"> | |
| <p>Certainly! For a cyberpunk cityscape, try using prompts like "futuristic cityscape with neon lights, flying cars, rain-slicked streets, towering skyscrapers, cyberpunk aesthetic, high detail, digital art". You can also specify color palettes focusing on blues, purples, and bright neon accents.</p> | |
| </div> | |
| </div> | |
| <!-- Input Area --> | |
| <div class="flex"> | |
| <input | |
| type="text" | |
| class="flex-1 bg-gray-800 border border-gray-700 rounded-l-xl p-4 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent" | |
| placeholder="Type your message..."> | |
| <button class="bg-gradient-to-r from-primary-500 to-secondary-500 px-6 rounded-r-xl font-medium hover:opacity-90 transition-opacity"> | |
| Send | |
| </button> | |
| </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 | |
| }); | |
| </script> | |
| </body> | |
| </html> |