Download builder.html from Ff5372t/ai-agentic-app-builder-pro: direct link, hf CLI and curl.
- Browser
- Download file 8.26 kB
-
https://huggingface.co/spaces/Ff5372t/ai-agentic-app-builder-pro/resolve/main/builder.html
- Command line
-
hf download hf://spaces/Ff5372t/ai-agentic-app-builder-pro/builder.html
-
curl -L -o builder.html https://huggingface.co/spaces/Ff5372t/ai-agentic-app-builder-pro/resolve/main/builder.html
8.26 kB
| <html lang="en" class="dark"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>AI App Builder - Build Your AI Application</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script> | |
| tailwind.config = { | |
| darkMode: 'class', | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: { | |
| 50: '#f0f9ff', | |
| 100: '#e0f2fe', | |
| 200: '#bae6fd', | |
| 300: '#7dd3fc', | |
| 400: '#38bdf8', | |
| 500: '#0ea5e9', | |
| 600: '#0284c7', | |
| 700: '#0369a1', | |
| 800: '#075985', | |
| 900: '#0c4a6e', | |
| }, | |
| secondary: { | |
| 50: '#f8fafc', | |
| 100: '#f1f5f9', | |
| 200: '#e2e8f0', | |
| 300: '#cbd5e1', | |
| 400: '#94a3b8', | |
| 500: '#64748b', | |
| 600: '#475569', | |
| 700: '#334155', | |
| 800: '#1e293b', | |
| 900: '#0f172a', | |
| } | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body class="bg-gray-900 text-white min-h-screen flex flex-col"> | |
| <custom-navbar></custom-navbar> | |
| <main class="flex-1 pt-20"> | |
| <div class="container mx-auto px-6 py-8"> | |
| <div class="flex items-center justify-between mb-8"> | |
| <h1 class="text-4xl font-bold text-white">AI App Builder</h1> | |
| <div class="flex gap-4"> | |
| <button class="border border-gray-600 hover:border-primary-400 text-gray-300 hover:text-primary-400 px-6 py-3 rounded-xl font-semibold transition-all duration-300"> | |
| <i data-feather="save" class="mr-2"></i> | |
| Save Project | |
| </button> | |
| <button class="bg-primary-600 hover:bg-primary-700 text-white px-6 py-3 rounded-xl font-semibold transition-all duration-300"> | |
| <i data-feather="play" class="mr-2"></i> | |
| Run App | |
| </button> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-1 lg:grid-cols-4 gap-8"> | |
| <!-- AI Components Panel --> | |
| <div class="lg:col-span-1 bg-gray-800 rounded-2xl p-6"> | |
| <h2 class="text-2xl font-bold mb-6 text-white">AI Components</h2> | |
| <div class="space-y-4"> | |
| <div class="bg-gray-700 p-4 rounded-xl cursor-grab hover:bg-gray-600 transition-all duration-200"> | |
| <div class="flex items-center gap-3"> | |
| <i data-feather="message-square" class="text-primary-400"></i> | |
| <span class="font-semibold">Chat Interface</span> | |
| </div> | |
| <div class="bg-gray-700 p-4 rounded-xl cursor-grab hover:bg-gray-600 transition-all duration-200"> | |
| <div class="flex items-center gap-3"> | |
| <i data-feather="image" class="text-primary-400"></i> | |
| <span class="font-semibold">Image Generator</span> | |
| </div> | |
| <div class="bg-gray-700 p-4 rounded-xl cursor-grab hover:bg-gray-600 transition-all duration-200"> | |
| <div class="flex items-center gap-3"> | |
| <i data-feather="file-text" class="text-primary-400"></i> | |
| <span class="font-semibold">Document Analyzer</span> | |
| </div> | |
| <div class="bg-gray-700 p-4 rounded-xl cursor-grab hover:bg-gray-600 transition-all duration-200"> | |
| <div class="flex items-center gap-3"> | |
| <i data-feather="database" class="text-primary-400"></i> | |
| <span class="font-semibold">Data Processor</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Canvas --> | |
| <div class="lg:col-span-2 bg-gray-800 rounded-2xl p-6"> | |
| <h2 class="text-2xl font-bold mb-6 text-white">App Canvas</h2> | |
| <div class="h-96 border-2 border-dashed border-gray-600 rounded-xl flex items-center justify-center text-gray-400"> | |
| <div class="text-center"> | |
| <i data-feather="layout" class="w-16 h-16 mx-auto mb-4"></i> | |
| <p class="text-lg">Drag AI components here to build your application</p> | |
| </div> | |
| </div> | |
| <!-- Properties Panel --> | |
| <div class="lg:col-span-1 bg-gray-800 rounded-2xl p-6"> | |
| <h2 class="text-2xl font-bold mb-6 text-white">Properties</h2> | |
| <div class="space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-300 mb-2">App Name</label> | |
| <input type="text" class="w-full bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 text-white focus:border-primary-400 focus:ring-1 focus:ring-primary-400 outline-none" placeholder="My AI App"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-300 mb-2">AI Model</label> | |
| <select class="w-full bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 text-white focus:border-primary-400 focus:ring-1 focus:ring-primary-400 outline-none"> | |
| <option>GPT-4</option> | |
| <option>Claude-3</option> | |
| <option>Gemini Pro</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-300 mb-2">Temperature</label> | |
| <input type="range" min="0" max="1" step="0.1" class="w-full"> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <custom-footer></custom-footer> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/footer.js"></script> | |
| <script src="script.js"></script> | |
| <script> | |
| feather.replace(); | |
| // Drag and drop functionality | |
| const components = document.querySelectorAll('[class*="cursor-grab"]'); | |
| const canvas = document.querySelector('.border-dashed'); | |
| components.forEach(component => { | |
| component.setAttribute('draggable', 'true'); | |
| component.addEventListener('dragstart', (e) => { | |
| e.dataTransfer.setData('text/plain', component.querySelector('span').textContent); | |
| e.dataTransfer.effectAllowed = 'copy'; | |
| }); | |
| canvas.addEventListener('dragover', (e) => { | |
| e.preventDefault(); | |
| e.dataTransfer.dropEffect = 'copy'; | |
| canvas.classList.add('border-primary-400', 'bg-gray-700'); | |
| }); | |
| canvas.addEventListener('dragleave', () => { | |
| canvas.classList.remove('border-primary-400', 'bg-gray-700'); | |
| }); | |
| canvas.addEventListener('drop', (e) => { | |
| e.preventDefault(); | |
| const componentType = e.dataTransfer.getData('text/plain'); | |
| canvas.innerHTML = ` | |
| <div class="text-center p-8"> | |
| <i data-feather="check-circle" class="w-12 h-12 text-green-400 mx-auto mb-4"></i> | |
| <p class="text-lg text-white">${componentType} added to canvas!</p> | |
| </div> | |
| `; | |
| feather.replace(); | |
| }); | |
| </script> | |
| </body> | |
| </html> |