Spaces:
Running
Running
Download index.html from sergiomcfly/anycoder-bd504a4a: direct link, hf CLI and curl.
- Browser
- Download file 23.6 kB
-
https://huggingface.co/spaces/sergiomcfly/anycoder-bd504a4a/resolve/main/index.html
- Command line
-
hf download hf://spaces/sergiomcfly/anycoder-bd504a4a/index.html
-
curl -L -o index.html https://huggingface.co/spaces/sergiomcfly/anycoder-bd504a4a/resolve/main/index.html
23.6 kB
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>NextStep - Continuity Workspace</title> | |
| <!-- Import Icons --> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <!-- Google Fonts --> | |
| <link href="https://fonts.googleapis.com/css2?family=Inter:wght=300;400;600;700&family=Fira+Code:wght=400&display=swap" rel="stylesheet"> | |
| <style> | |
| :root { | |
| --bg-dark: #0f1115; | |
| --bg-card: #181b21; | |
| --bg-card-hover: #20242b; | |
| --primary: #4f46e5; | |
| --primary-glow: rgba(79, 70, 229, 0.4); | |
| --accent: #0ea5e9; | |
| --text-main: #f3f4f6; | |
| --text-muted: #9ca3af; | |
| --border: #2d3342; | |
| --success: #10b981; | |
| --font-main: 'Inter', sans-serif; | |
| --font-code: 'Fira Code', monospace; | |
| } | |
| * { | |
| box-sizing: box-box; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| body { | |
| background-color: var(--bg-dark); | |
| color: var(--text-main); | |
| font-family: var(--font-main); | |
| line-height: 1.6; | |
| overflow-x: hidden; | |
| background-image: | |
| radial-gradient(at 0% 0%, rgba(49, 49, 120, 0.15) 0px, transparent 50%), | |
| radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.1) 0px, transparent 50%), | |
| radial-gradient(at 100% 100%, rgba(79, 70, 229, 0.1) 0px, transparent 50%); | |
| } | |
| /* --- Layout --- */ | |
| .app-container { | |
| max-width: 1400px; | |
| margin: 0 auto; | |
| padding: 0 20px; | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| /* --- Header --- */ | |
| header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 20px 0; | |
| border-bottom: 1px solid var(--border); | |
| margin-bottom: 40px; | |
| } | |
| .brand { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| font-weight: 700; | |
| font-size: 1.2rem; | |
| color: var(--text-main); | |
| } | |
| .brand i { | |
| color: var(--primary); | |
| font-size: 1.4rem; | |
| } | |
| .anycoder-badge { | |
| background: rgba(255, 255, 255, 0.05); | |
| border: 1px solid var(--border); | |
| padding: 8px 16px; | |
| border-radius: 20px; | |
| font-size: 0.85rem; | |
| color: var(--text-muted); | |
| transition: all 0.3s ease; | |
| text-decoration: none; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .anycoder-badge:hover { | |
| background: rgba(255, 255, 255, 0.1); | |
| border-color: var(--primary); | |
| color: var(--text-main); | |
| box-shadow: 0 0 15px var(--primary-glow); | |
| } | |
| /* --- Main Grid --- */ | |
| .dashboard-grid { | |
| display: grid; | |
| grid-template-columns: 2.5fr 1fr; | |
| gap: 30px; | |
| } | |
| /* --- Section Styles --- */ | |
| section { | |
| background: var(--bg-card); | |
| border-radius: 16px; | |
| border: 1px solid var(--border); | |
| padding: 25px; | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| } | |
| h2 { | |
| font-size: 1.1rem; | |
| font-weight: 600; | |
| margin-bottom: 20px; | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| color: var(--text-main); | |
| } | |
| h2 i { | |
| color: var(--accent); | |
| opacity: 0.8; | |
| } | |
| /* --- Project Cards --- */ | |
| .project-list { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); | |
| gap: 20px; | |
| } | |
| .project-card { | |
| background: rgba(255, 255, 255, 0.02); | |
| border: 1px solid var(--border); | |
| border-radius: 12px; | |
| padding: 20px; | |
| position: relative; | |
| overflow: hidden; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| cursor: pointer; | |
| group: hover; | |
| } | |
| .project-card:hover { | |
| transform: translateY(-5px); | |
| border-color: var(--primary); | |
| box-shadow: 0 10px 30px -10px var(--primary-glow); | |
| background: var(--bg-card-hover); | |
| } | |
| .card-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: start; | |
| margin-bottom: 15px; | |
| } | |
| .card-icon { | |
| width: 40px; | |
| height: 40px; | |
| background: linear-gradient(135deg, var(--primary), var(--accent)); | |
| border-radius: 8px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: white; | |
| font-size: 1.1rem; | |
| } | |
| .status-badge { | |
| font-size: 0.7rem; | |
| padding: 4px 8px; | |
| border-radius: 4px; | |
| background: rgba(255,255,255,0.1); | |
| color: var(--text-muted); | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .status-badge.active { | |
| background: rgba(16, 185, 129, 0.2); | |
| color: var(--success); | |
| } | |
| .project-title { | |
| font-weight: 600; | |
| margin-bottom: 8px; | |
| font-size: 1rem; | |
| } | |
| .project-desc { | |
| font-size: 0.85rem; | |
| color: var(--text-muted); | |
| margin-bottom: 15px; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 2; | |
| line-clamp: 2; | |
| overflow: hidden; | |
| } | |
| .progress-container { | |
| width: 100%; | |
| height: 4px; | |
| background: rgba(255,255,255,0.1); | |
| border-radius: 2px; | |
| overflow: hidden; | |
| margin-bottom: 10px; | |
| } | |
| .progress-bar { | |
| height: 100%; | |
| background: var(--primary); | |
| border-radius: 2px; | |
| width: 0%; /* JS will fill this */ | |
| transition: width 1s ease-out; | |
| } | |
| .last-activity { | |
| font-size: 0.75rem; | |
| color: var(--text-muted); | |
| display: flex; | |
| align-items: center; | |
| gap: 5px; | |
| } | |
| /* --- Terminal / AI Reader --- */ | |
| .terminal-container { | |
| background: #0d0d0d; | |
| border: 1px solid var(--border); | |
| border-radius: 8px; | |
| padding: 15px; | |
| font-family: var(--font-code); | |
| font-size: 0.85rem; | |
| height: 300px; | |
| overflow: hidden; | |
| position: relative; | |
| } | |
| .terminal-header { | |
| display: flex; | |
| gap: 6px; | |
| margin-bottom: 15px; | |
| } | |
| .dot { | |
| width: 8px; | |
| height: 8px; | |
| border-radius: 4px; | |
| background: #333; | |
| } | |
| .dot.red { background: #ff5f56; } | |
| .dot.yellow { background: #ffbd2e; } | |
| .dot.green { background: #27c93f; } | |
| .terminal-content { | |
| color: var(--text-muted); | |
| } | |
| .terminal-line { | |
| display: flex; | |
| margin-bottom: 5px; | |
| opacity: 0; | |
| animation: fadeIn 0.3s forwards; | |
| } | |
| .terminal-line.success { color: var(--success); } | |
| .terminal-line.warning { color: #ffbd2e; } | |
| .terminal-line.info { color: var(--accent); } | |
| .cursor { | |
| display: inline-block; | |
| width: 8px; | |
| height: 15px; | |
| background: var(--primary); | |
| animation: blink 1s infinite; | |
| margin-left: 5px; | |
| } | |
| /* --- Action Area --- */ | |
| .action-area { | |
| margin-top: 20px; | |
| display: flex; | |
| gap: 10px; | |
| } | |
| .btn { | |
| padding: 10px 20px; | |
| border-radius: 8px; | |
| border: none; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| font-family: var(--font-main); | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| font-size: 0.9rem; | |
| } | |
| .btn-primary { | |
| background: var(--primary); | |
| color: white; | |
| box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39); | |
| } | |
| .btn-primary:hover { | |
| background: #4338ca; | |
| transform: translateY(-2px); | |
| box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5); | |
| } | |
| .btn-glass { | |
| background: rgba(255,255,255,0.05); | |
| color: var(--text-main); | |
| border: 1px solid var(--border); | |
| } | |
| .btn-glass:hover { | |
| background: rgba(255,255,255,0.1); | |
| } | |
| /* --- Animations --- */ | |
| @keyframes blink { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0; } | |
| } | |
| @keyframes fadeIn { | |
| to { opacity: 1; } | |
| } | |
| /* --- Responsive --- */ | |
| @media (max-width: 900px) { | |
| .dashboard-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| header { | |
| flex-direction: column; | |
| gap: 15px; | |
| align-items: flex-start; | |
| } | |
| .anycoder-badge { | |
| margin-left: -4px; | |
| } | |
| } | |
| /* --- Overlay Modal --- */ | |
| .modal-overlay { | |
| position: fixed; | |
| top: 0; left: 0; width: 100%; height: 100%; | |
| background: rgba(0,0,0,0.8); | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| z-index: 100; | |
| opacity: 0; | |
| pointer-events: none; | |
| transition: opacity 0.3s; | |
| } | |
| .modal-overlay.open { | |
| opacity: 1; | |
| pointer-events: all; | |
| } | |
| .modal-content { | |
| background: var(--bg-card); | |
| width: 90%; | |
| max-width: 500px; | |
| padding: 30px; | |
| border-radius: 16px; | |
| border: 1px solid var(--border); | |
| transform: scale(0.9); | |
| transition: transform 0.3s; | |
| } | |
| .modal-overlay.open .modal-content { | |
| transform: scale(1); | |
| } | |
| .modal-title { | |
| font-size: 1.5rem; | |
| margin-bottom: 10px; | |
| } | |
| .input-group { | |
| margin-bottom: 20px; | |
| } | |
| .input-field { | |
| width: 100%; | |
| background: rgba(0,0,0,0.2); | |
| border: 1px solid var(--border); | |
| padding: 12px; | |
| color: white; | |
| border-radius: 6px; | |
| font-family: var(--font-main); | |
| } | |
| .input-field:focus { | |
| outline: none; | |
| border-color: var(--primary); | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="app-container"> | |
| <!-- Header --> | |
| <header> | |
| <div class="brand"> | |
| <i class="fa-solid fa-brain"></i> | |
| <span>NextStep Workspace</span> | |
| </div> | |
| <!-- CRITICAL LINK --> | |
| <a href="https://huggingface.co/spaces/akhaliq/anycoder" class="anycoder-badge"> | |
| <i class="fa-solid fa-code"></i> | |
| Built with anycoder | |
| </a> | |
| </header> | |
| <main class="dashboard-grid"> | |
| <!-- Left Column: Projects --> | |
| <div class="left-column"> | |
| <section> | |
| <h2><i class="fa-solid fa-layer-group"></i> Projetos em Continuidade</h2> | |
| <div class="project-list"> | |
| <!-- Project 1 --> | |
| <div class="project-card" onclick="selectProject('ecommerce')"> | |
| <div class="card-header"> | |
| <div class="card-icon"><i class="fa-solid fa-shop"></i></div> | |
| <span class="status-badge active">Em andamento</span> | |
| </div> | |
| <div class="project-title">E-commerce React</div> | |
| <div class="project-desc">Refatoração do checkout e integração com Stripe API. Pendente: Webhooks.</div> | |
| <div class="progress-container"> | |
| <div class="progress-bar" style="width: 65%"></div> | |
| </div> | |
| <div class="last-activity"> | |
| <i class="fa-regular fa-clock"></i> Há 2 horas | |
| </div> | |
| </div> | |
| <!-- Project 2 --> | |
| <div class="project-card" onclick="selectProject('dashboard')"> | |
| <div class="card-header"> | |
| <div class="card-icon"><i class="fa-solid fa-chart-pie"></i></div> | |
| <span class="status-badge">Planejamento</span> | |
| </div> | |
| <div class="project-title">Dashboard Admin</div> | |
| <div class="project-desc">Setup inicial de autenticação JWT e estrutura de layout responsivo.</div> | |
| <div class="progress-container"> | |
| <div class="progress-bar" style="width: 20%"></div> | |
| </div> | |
| <div class="last-activity"> | |
| <i class="fa-regular fa-clock"></i> Há 2 dias | |
| </div> | |
| </div> | |
| <!-- Project 3 --> | |
| <div class="project-card" onclick="selectProject('mobile')"> | |
| <div class="card-header"> | |
| <div class="card-icon"><i class="fa-solid fa-mobile-screen"></i></div> | |
| <span class="status-badge active">Debug</span> | |
| </div> | |
| <div class="project-title">App Flutter Delivery</div> | |
| <div class="project-desc">Correção de bug no mapa de localização em iOS. Problema com permissions.</div> | |
| <div class="progress-container"> | |
| <div class="progress-bar" style="width: 85%"></div> | |
| </div> | |
| <div class="last-activity"> | |
| <i class="fa-regular fa-clock"></i> Hoje | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Terminal / Status Section --> | |
| <section style="margin-top: 30px;"> | |
| <h2><i class="fa-solid fa-terminal"></i> Contexto do Sistema</h2> | |
| <div class="terminal-container"> | |
| <div class="terminal-header"> | |
| <div class="dot red"></div> | |
| <div class="dot yellow"></div> | |
| <div class="dot green"></div> | |
| </div> | |
| <div class="terminal-content" id="terminal-output"> | |
| <div class="terminal-line info">> Sistema inicializado...</div> | |
| <div class="terminal-line">> Esperando seleção de projeto.</div> | |
| <div class="cursor"></div> | |
| </div> | |
| </div> | |
| <div class="action-area"> | |
| <button class="btn btn-glass" onclick="clearTerminal()"> | |
| <i class="fa-solid fa-trash"></i> Limpar | |
| </button> | |
| <button class="btn btn-primary" onclick="triggerAnalysis()"> | |
| <i class="fa-solid fa-play"></i> Ler e Continuar | |
| </button> | |
| </div> | |
| </section> | |
| </div> | |
| <!-- Right Column: Stats & Info --> | |
| <div class="right-column"> | |
| <section style="height: 100%;"> | |
| <h2><i class="fa-solid fa-circle-info"></i> Detalhes</h2> | |
| <div style="margin-bottom: 20px;"> | |
| <h3 style="font-size: 0.9rem; color: var(--text-muted); margin-bottom: 5px;">Total de Código</h3> | |
| <div style="font-size: 2rem; font-weight: 700; color: var(--accent);">14,802 <span style="font-size: 1rem;">lines</span></div> | |
| </div> | |
| <div style="margin-bottom: 20px;"> | |
| <h3 style="font-size: 0.9rem; color: var(--text-muted); margin-bottom: 5px;">Status de Build</h3> | |
| <div style="display: flex; align-items: center; gap: 10px;"> | |
| <i class="fa-solid fa-circle-check" style="color: var(--success);"></i> | |
| <span>Passado (Main)</span> | |
| </div> | |
| </div> | |
| <div style="margin-bottom: 20px;"> | |
| <h3 style="font-size: 0.9rem; color: var(--text-muted); margin-bottom: 5px;">Dependências</h3> | |
| <div style="display: flex; gap: 5px; flex-wrap: wrap;"> | |
| <span class="status-badge">React</span> | |
| <span class="status-badge">TypeScript</span> | |
| <span class="status-badge">Tailwind</span> | |
| </div> | |
| </div> | |
| <div style="background: rgba(79, 70, 229, 0.1); padding: 15px; border-radius: 8px; border: 1px solid rgba(79, 70, 229, 0.2);"> | |
| <p style="font-size: 0.85rem; color: var(--text-main);"> | |
| <i class="fa-solid fa-lightbulb" style="color: var(--primary);"></i> | |
| <strong>Sugestão AI:</br> | |
| O módulo de autenticação parece desatualizado. Recomendo atualizar as chaves JWT.</strong> | |
| </p> | |
| </div> | |
| </section> | |
| </div> | |
| </main> | |
| </div> | |
| <!-- Modal --> | |
| <div class="modal-overlay" id="continueModal"> | |
| <div class="modal-content"> | |
| <h3 class="modal-title">Continuar Desenvolvimento</h3> | |
| <p style="color: var(--text-muted); margin-bottom: 20px;">O sistema analisou o contexto. Qual é o próximo passo?</p> | |
| <div class="input-group"> | |
| <input type="text" class="input-field" placeholder="Ex: Implementar a função de login social..." id="userInput"> | |
| </div> | |
| <div style="display: flex; justify-content: flex-end; gap: 10px;"> | |
| <button class="btn btn-glass" onclick="closeModal()">Cancelar</button> | |
| <button class="btn btn-primary" onclick="startTask()">Iniciar Task</button> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| const terminalOutput = document.getElementById('terminal-output'); | |
| const modal = document.getElementById('continueModal'); | |
| let selectedProject = null; | |
| // Mock Data for Terminal | |
| const logs = { | |
| ecommerce: [ | |
| { text: "Analizando src/components/Checkout.jsx...", type: "info" }, | |
| { text: "Detectando 3 erros de sintaxe no render...", type: "warning" }, | |
| { text: "Stripe API Key encontrada no .env...", type: "success" }, | |
| { text: "Contexto carregado. Pronto para continuar.", type: "info" } | |
| ], | |
| dashboard: [ | |
| { text: "Lendo package.json...", type: "info" }, | |
| { text: "Dependências: react, vite, tailwind...", type: "info" }, | |
| { text: "Verificando rotas de autenticação...", type: "warning" }, | |
| { text: "Ambiente de desenvolvimento pronto.", type: "success" } | |
| ], | |
| mobile: [ | |
| { text: "Compilando build para iOS...", type: "info" }, | |
| { text: "Aviso: Permissão de localização não solicitada...", type: "warning" }, | |
| { text: "Crash report detectado em MapView...", type: "warning" }, | |
| { text: "Foco no bug de localização.", type: "info" } | |
| ] | |
| }; | |
| function selectProject(id) { | |
| selectedProject = id; | |
| clearTerminal(); | |
| // Visual feedback on selection | |
| document.querySelectorAll('.project-card').forEach(card => { | |
| card.style.borderColor = 'var(--border)'; | |
| }); | |
| // Find the clicked card (in a real app we'd use IDs) | |
| // Here we just trigger the terminal based on the id passed | |
| // Simulate loading terminal | |
| addTerminalLine(`> Selecionado projeto: ${id.toUpperCase()}`, 'info'); | |
| setTimeout(() => { | |
| addTerminalLine(`> Carregando arquivos de ${id}...`, 'info'); | |
| }, 500); | |
| } | |
| function triggerAnalysis() { | |
| if (!selectedProject) { | |
| addTerminalLine("> Erro: Selecione um projeto primeiro.", "warning"); | |
| return; | |
| } | |
| const projectLogs = logs[selectedProject]; | |
| // Simulate AI Reading Process | |
| projectLogs.forEach((log, index) => { | |
| setTimeout(() => { | |
| addTerminalLine(log.text, log.type); | |
| }, index * 800 + 500); | |
| }); | |
| setTimeout(() => { | |
| modal.classList.add('open'); | |
| }, projectLogs.length * 800 + 1000); | |
| } | |
| function addTerminalLine(text, type = '') { | |
| const div = document.createElement('div'); | |
| div.className = `terminal-line ${type}`; | |
| div.textContent = text; | |
| // Insert before the cursor | |
| const cursor = terminalOutput.querySelector('.cursor'); | |
| terminalOutput.insertBefore(div, cursor); | |
| // Auto scroll | |
| terminalOutput.scrollTop = terminalOutput.scrollHeight; | |
| } | |
| function clearTerminal() { | |
| terminalOutput.innerHTML = '<div class="terminal-line info">> Sistema inicializado...</div><div class="cursor"></div>'; | |
| } | |
| function closeModal() { | |
| modal.classList.remove('open'); | |
| } | |
| function startTask() { | |
| const input = document.getElementById('userInput').value; | |
| if(input) { | |
| addTerminalLine(`> Task criada: ${input}`, 'success'); | |
| closeModal(); | |
| // Reset for demo | |
| setTimeout(() => { | |
| alert("Task enviada para o workspace!"); | |
| }, 500); | |
| } else { | |
| alert("Por favor, descreva a tarefa."); | |
| } | |
| } | |
| // Initialize default | |
| addTerminalLine("> Olá! Selecione um projeto para que eu possa ler o código e continuar.", "info"); | |
| </script> | |
| </body> | |
| </html> |