Spaces:
Running
Running
WhatsApp group chat interface, 1 human user, multiple agent users. Upload image buttons, upload code button, connect to GitHub button, button to selector 1 out of 5 modes "design" "architect" "plan" "debug" "code".
31e1a75 verified Download index.html from SuperPauly/ai-group-chat-ui: direct link, hf CLI and curl.
- Browser
- Download file 6.62 kB
-
https://huggingface.co/spaces/SuperPauly/ai-group-chat-ui/resolve/main/index.html
- Command line
-
hf download hf://spaces/SuperPauly/ai-group-chat-ui/index.html
-
curl -L -o index.html https://huggingface.co/spaces/SuperPauly/ai-group-chat-ui/resolve/main/index.html
6.62 kB
| <html lang="en" class="h-full"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
| <title>AI Group Chat UI</title> | |
| <link rel="stylesheet" href="style.css" /> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script> | |
| tailwind.config = { | |
| darkMode: 'class', | |
| theme: { | |
| extend: { | |
| colors: { | |
| undefined: { | |
| 50: '#f3f7ff', | |
| 100: '#e6efff', | |
| 200: '#c6d8ff', | |
| 300: '#9cbaff', | |
| 400: '#6c95ff', | |
| 500: '#4475ff', | |
| 600: '#2b5ff2', | |
| 700: '#2149c4', | |
| 800: '#1d3e9e', | |
| 900: '#1d377f', | |
| 950: '#141f4d' | |
| } | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body class="bg-undefined-50 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100 min-h-full"> | |
| <div class="max-w-7xl mx-auto p-4"> | |
| <!-- Header --> | |
| <header class="mb-4"> | |
| <div class="flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between"> | |
| <div class="flex items-center gap-3"> | |
| <div class="h-10 w-10 rounded-xl bg-undefined-500 text-white grid place-items-center font-bold">G</div> | |
| <div> | |
| <h1 class="text-xl font-semibold tracking-tight">WhatsApp-style AI Group</h1> | |
| <p class="text-sm text-zinc-600 dark:text-zinc-400">1 human, multiple agent participants</p> | |
| </div> | |
| </div> | |
| <!-- Theme and Connect Controls --> | |
| <div class="flex items-center gap-2"> | |
| <button id="themeToggle" class="px-3 py-2 rounded-lg border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-100 dark:hover:bg-zinc-800 transition"> | |
| Toggle theme | |
| </button> | |
| <button id="githubConnectBtn" class="px-3 py-2 rounded-lg bg-zinc-900 text-white dark:bg-zinc-700 hover:opacity-90 transition"> | |
| Connect to GitHub | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Mode Selector --> | |
| <div class="mt-4 grid grid-cols-5 gap-2"> | |
| <button data-mode="design" class="mode-btn px-3 py-2 rounded-lg border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-100 dark:hover:bg-zinc-800 transition text-sm">Design</button> | |
| <button data-mode="architect" class="mode-btn px-3 py-2 rounded-lg border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-100 dark:hover:bg-zinc-800 transition text-sm">Architect</button> | |
| <button data-mode="plan" class="mode-btn px-3 py-2 rounded-lg border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-100 dark:hover:bg-zinc-800 transition text-sm">Plan</button> | |
| <button data-mode="debug" class="mode-btn px-3 py-2 rounded-lg border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-100 dark:hover:bg-zinc-800 transition text-sm">Debug</button> | |
| <button data-mode="code" class="mode-btn px-3 py-2 rounded-lg border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-100 dark:hover:bg-zinc-800 transition text-sm">Code</button> | |
| </div> | |
| </header> | |
| <!-- Chat Area --> | |
| <main class="grid grid-cols-1 lg:grid-cols-12 gap-4"> | |
| <section class="lg:col-span-12"> | |
| <div class="rounded-xl border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 overflow-hidden"> | |
| <div class="h-[64vh] overflow-y-auto p-4 space-y-4" id="chatBox" aria-live="polite"> | |
| <!-- Sample initial messages --> | |
| <div class="flex items-start gap-3"> | |
| <div class="h-10 w-10 rounded-full bg-undefined-500 grid place-items-center text-white font-bold">H</div> | |
| <div class="max-w-[80%]"> | |
| <div class="text-xs text-zinc-600 dark:text-zinc-400 mb-1">You</div> | |
| <div class="prose prose-sm dark:prose-invert max-w-none bg-zinc-100 dark:bg-zinc-800 rounded-2xl rounded-tl-sm px-4 py-2"> | |
| Welcome! Share images, code, or connect GitHub. Pick a mode: design, architect, plan, debug, or code. | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex items-start gap-3"> | |
| <div class="h-10 w-10 rounded-full bg-undefined-500 grid place-items-center text-white font-bold">A</div> | |
| <div class="max-w-[80%]"> | |
| <div class="text-xs text-zinc-600 dark:text-zinc-400 mb-1">Agent</div> | |
| <div class="prose prose-sm dark:prose-invert max-w-none bg-zinc-100 dark:bg-zinc-800 rounded-2xl rounded-tl-sm px-4 py-2"> | |
| Hi! I’m here to collaborate. What would you like to build today? | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Composer --> | |
| <div class="border-t border-zinc-200 dark:border-zinc-800 p-3"> | |
| <!-- Attachments Preview --> | |
| <div id="attachmentPreview" class="hidden mb-3 grid gap-2 sm:grid-cols-2"></div> | |
| <!-- Composer Controls --> | |
| <div class="flex items-center gap-2 mb-2"> | |
| <button id="uploadImageBtn" class="px-3 py-2 rounded-lg border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-100 dark:hover:bg-zinc-800 transition" title="Upload image">🖼️</button> | |
| <button id="uploadCodeBtn" class="px-3 py-2 rounded-lg border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-100 dark:hover:bg-zinc-800 transition" title="Upload code">📄</button> | |
| <button id="connectGitHubBtn" class="px-3 py-2 rounded-lg border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-100 dark:hover:bg-zinc-800 transition" title="Connect GitHub">🔗</button> | |
| <span class="ml-auto text-xs text-zinc-600 dark:text-zinc-400" id="modeIndicator">Mode: code</span> | |
| </div> | |
| <form id="composerForm" class="flex items-end gap-2"> | |
| <textarea id="messageInput" rows="1" placeholder="Type a message..." class="flex-1 resize-none rounded-xl border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 px-4 py-2 outline-none focus:ring-2 focus:ring-undefined-500"></textarea> | |
| <button id="sendBtn" type="submit" class="px-4 py-2 rounded-xl bg-undefined-500 text-white hover:opacity-90 disabled:opacity-50" title="Send message">Send</button> | |
| </form> | |
| <input type="file" id="imageInput" accept="image/*" class="hidden" /> | |
| <input type="file" id="codeInput" class="hidden" /> | |
| </div> | |
| </div> | |
| </section> | |
| </main> | |
| </div> | |
| <script src="script.js"></script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |