Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Opus AI Website Builder</title> | |
| <meta name="description" content="Generate sophisticated websites through natural language chat"> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tailwindcss/ui@latest/dist/tailwind-ui.min.css"> | |
| <script src="https://unpkg.com/lucide@latest"></script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| background-color: #f9fafb; | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen bg-gray-50"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12"> | |
| <div class="text-center mb-12"> | |
| <h1 class="text-4xl font-extrabold text-gray-900 sm:text-5xl sm:tracking-tight lg:text-6xl"> | |
| Opus AI Website Builder | |
| </h1> | |
| <p class="mt-5 max-w-xl mx-auto text-xl text-gray-500"> | |
| Generate sophisticated, modern websites through natural language | |
| </p> | |
| </div> | |
| <div class="bg-white shadow-xl rounded-lg overflow-hidden"> | |
| <div class="md:flex"> | |
| <div class="md:w-1/2 p-6 border-r border-gray-200"> | |
| <div class="h-full flex flex-col"> | |
| <div class="flex-1 overflow-y-auto" id="chat-container"> | |
| <!-- Chat messages will be inserted here --> | |
| </div> | |
| <div class="mt-4"> | |
| <form id="prompt-form" class="flex"> | |
| <input type="text" id="user-prompt" | |
| class="flex-1 border border-gray-300 rounded-l-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500" | |
| placeholder="Describe the website you want to create..."> | |
| <button type="submit" | |
| class="bg-blue-600 text-white px-4 py-2 rounded-r-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| Generate | |
| </button> | |
| </form> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="md:w-1/2 p-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-lg font-medium text-gray-900">Live Preview</h3> | |
| <div class="flex space-x-2"> | |
| <button class="px-3 py-1 text-sm bg-gray-100 rounded-md">Desktop</button> | |
| <button class="px-3 py-1 text-sm bg-gray-100 rounded-md">Tablet</button> | |
| <button class="px-3 py-1 text-sm bg-gray-100 rounded-md">Mobile</button> | |
| </div> | |
| </div> | |
| <div class="border border-gray-200 rounded-md h-96 overflow-auto"> | |
| <iframe id="website-preview" class="w-full h-full" sandbox="allow-same-origin allow-scripts"></iframe> | |
| </div> | |
| <div class="mt-4 flex justify-end"> | |
| <button id="export-btn" class="px-4 py-2 bg-green-600 text-white rounded-md hover:bg-green-700"> | |
| <i data-lucide="download" class="w-4 h-4 mr-2"></i> Export Website | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Initialize Lucide icons | |
| lucide.createIcons(); | |
| // TODO: Add chat functionality and preview generation | |
| </script> | |
| </body> | |
| </html> | |