Spaces:
Running
Running
Download index.html from vmipire/anycoder-c537bd3f: direct link, hf CLI and curl.
- Browser
- Download file 19.1 kB
-
https://huggingface.co/spaces/vmipire/anycoder-c537bd3f/resolve/main/index.html
- Command line
-
hf download hf://spaces/vmipire/anycoder-c537bd3f/index.html
-
curl -L -o index.html https://huggingface.co/spaces/vmipire/anycoder-c537bd3f/resolve/main/index.html
19.1 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Synapse // Rayfield Interface</title> | |
| <!-- Import FontAwesome for Icons --> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <!-- Import Google Fonts --> | |
| <link href="https://fonts.googleapis.com/css2?family=Rajdhani:wght=300;500;700&family=Share+Tech+Mono&display=rel" rel="stylesheet"> | |
| <style> | |
| :root { | |
| /* Palette Definition */ | |
| --bg-deep: #050505; | |
| --bg-panel: #0a0a0c; | |
| --rayfield-red: #ff2a2a; | |
| --rayfield-dark-red: #5c0f0f; | |
| --synapse-blue: #00f0ff; | |
| --synapse-dim: #005f66; | |
| --text-main: #e0e0e0; | |
| --text-dim: #888888; | |
| --glass: rgba(20, 20, 25, 0.7); | |
| --border: 1px solid rgba(255, 255, 255, 0.1); | |
| /* Typography */ | |
| --font-display: 'Rajdhani', sans-serif; | |
| --font-code: 'Share Tech Mono', monospace; | |
| } | |
| * { | |
| box-sizing: box-sizing; | |
| margin: 0; | |
| padding: 0; | |
| scrollbar-width: thin; | |
| scrollbar-color: var(--rayfield-red) var(--bg-deep); | |
| } | |
| body { | |
| background-color: var(--bg-deep); | |
| color: var(--text-main); | |
| font-family: var(--font-display); | |
| height: 100vh; | |
| overflow: hidden; | |
| display: flex; | |
| flex-direction: column; | |
| background-image: | |
| linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), | |
| url('https://images.unsplash.com/photo-1550684848-fac1c5b4e853?q=80&w=2070&auto=format&fit=crop'); | |
| background-size: cover; | |
| background-position: center; | |
| } | |
| /* CRT Scanline Effect Overlay */ | |
| .scanlines { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100vw; | |
| height: 100vh; | |
| background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06)); | |
| background-size: 100% 2px, 3px 100%; | |
| z-index: 999; | |
| pointer-events: none; | |
| opacity: 0.6; | |
| } | |
| /* --- Header --- */ | |
| header { | |
| height: 60px; | |
| border-bottom: var(--border); | |
| background: rgba(5, 5, 5, 0.9); | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 0 20px; | |
| backdrop-filter: blur(10px); | |
| z-index: 100; | |
| } | |
| .brand { | |
| display: flex; | |
| align-items: center; | |
| gap: 15px; | |
| } | |
| .brand-logo { | |
| width: 30px; | |
| height: 30px; | |
| background: var(--rayfield-red); | |
| clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); | |
| box-shadow: 0 0 10px var(--rayfield-red); | |
| } | |
| .brand-text { | |
| font-size: 1.2rem; | |
| font-weight: 700; | |
| letter-spacing: 2px; | |
| text-transform: uppercase; | |
| color: var(--text-main); | |
| } | |
| .brand-text span { | |
| color: var(--rayfield-red); | |
| } | |
| .status-bar { | |
| display: flex; | |
| gap: 20px; | |
| font-family: var(--font-code); | |
| font-size: 0.9rem; | |
| } | |
| .status-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .blink { | |
| animation: blinker 1.5s linear infinite; | |
| } | |
| @keyframes blinker { | |
| 50% { opacity: 0; } | |
| } | |
| /* --- Main Layout --- */ | |
| .container { | |
| display: flex; | |
| flex: 1; | |
| height: calc(100vh - 60px); | |
| overflow: hidden; | |
| } | |
| /* Sidebar */ | |
| .sidebar { | |
| width: 250px; | |
| background: rgba(0, 0, 0, 0.6); | |
| border-right: var(--border); | |
| padding: 20px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; | |
| transition: transform 0.3s ease; | |
| } | |
| .nav-btn { | |
| background: transparent; | |
| border: 1px solid transparent; | |
| color: var(--text-dim); | |
| padding: 12px 15px; | |
| font-family: var(--font-code); | |
| text-align: left; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| text-transform: uppercase; | |
| font-size: 0.8rem; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .nav-btn:hover, .nav-btn.active { | |
| color: var(--synapse-blue); | |
| border-left: 3px solid var(--synapse-blue); | |
| background: rgba(0, 240, 255, 0.05); | |
| } | |
| .nav-btn.active::before { | |
| content: ''; | |
| position: absolute; | |
| left: 0; | |
| top: 0; | |
| height: 100%; | |
| width: 2px; | |
| background: var(--synapse-blue); | |
| } | |
| /* Content Area */ | |
| .main-content { | |
| flex: 1; | |
| padding: 20px; | |
| display: grid; | |
| grid-template-columns: 2fr 1fr; | |
| grid-template-rows: 1fr 1fr; | |
| gap: 20px; | |
| overflow-y: auto; | |
| } | |
| /* Panels */ | |
| .panel { | |
| background: var(--glass); | |
| border: var(--border); | |
| border-radius: 4px; | |
| padding: 20px; | |
| position: relative; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .panel-header { | |
| font-family: var(--font-code); | |
| color: var(--synapse-blue); | |
| border-bottom: 1px solid rgba(0, 240, 255, 0.2); | |
| padding-bottom: 10px; | |
| margin-bottom: 15px; | |
| font-size: 0.9rem; | |
| display: flex; | |
| justify-content: space-between; | |
| } | |
| /* Synapse Visualizer (Top Left) */ | |
| .visualizer-panel { | |
| grid-column: 1 / 2; | |
| grid-row: 1 / 2; | |
| overflow: hidden; | |
| } | |
| .synapse-grid { | |
| display: grid; | |
| grid-template-columns: repeat(6, 1fr); | |
| gap: 10px; | |
| height: 100%; | |
| align-items: center; | |
| } | |
| .node { | |
| width: 10px; | |
| height: 10px; | |
| background: var(--synapse-dim); | |
| border-radius: 50%; | |
| transition: all 0.5s ease; | |
| box-shadow: 0 0 5px var(--synapse-dim); | |
| } | |
| .node.active { | |
| background: var(--synapse-blue); | |
| box-shadow: 0 0 15px var(--synapse-blue), 0 0 30px var(--synapse-blue); | |
| transform: scale(1.5); | |
| } | |
| /* Executor Console (Bottom Left) */ | |
| .console-panel { | |
| grid-column: 1 / 2; | |
| grid-row: 2 / 3; | |
| background: rgba(0, 0, 0, 0.8); | |
| font-family: var(--font-code); | |
| } | |
| .console-output { | |
| flex: 1; | |
| overflow-y: auto; | |
| color: var(--text-dim); | |
| font-size: 0.85rem; | |
| margin-bottom: 10px; | |
| padding-right: 10px; | |
| } | |
| .console-input-area { | |
| display: flex; | |
| gap: 10px; | |
| border-top: 1px solid var(--rayfield-dark-red); | |
| padding-top: 10px; | |
| } | |
| .prompt-symbol { | |
| color: var(--rayfield-red); | |
| font-weight: bold; | |
| line-height: 25px; | |
| } | |
| #command-input { | |
| flex: 1; | |
| background: transparent; | |
| border: none; | |
| color: var(--text-main); | |
| font-family: var(--font-code); | |
| outline: none; | |
| font-size: 0.9rem; | |
| } | |
| /* Rayfield Stats (Right Column) */ | |
| .stats-panel { | |
| grid-column: 2 / 3; | |
| grid-row: 1 / 3; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 15px; | |
| } | |
| .stat-card { | |
| background: rgba(255, 255, 255, 0.03); | |
| border: 1px solid rgba(255, 255, 255, 0.05); | |
| padding: 15px; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .stat-label { | |
| color: var(--text-dim); | |
| font-size: 0.8rem; | |
| text-transform: uppercase; | |
| } | |
| .stat-value { | |
| font-family: var(--font-code); | |
| font-size: 1.2rem; | |
| color: var(--rayfield-red); | |
| text-shadow: 0 0 5px var(--rayfield-red); | |
| } | |
| .bar-container { | |
| width: 100%; | |
| height: 4px; | |
| background: #222; | |
| margin-top: 10px; | |
| position: relative; | |
| } | |
| .bar-fill { | |
| height: 100%; | |
| background: var(--rayfield-red); | |
| width: 0%; | |
| transition: width 0.5s ease; | |
| box-shadow: 0 0 10px var(--rayfield-red); | |
| } | |
| /* Anycoder Link */ | |
| .anycoder-link { | |
| position: absolute; | |
| bottom: 20px; | |
| right: 20px; | |
| font-family: var(--font-code); | |
| color: var(--text-dim); | |
| font-size: 0.7rem; | |
| text-decoration: none; | |
| border: 1px solid var(--text-dim); | |
| padding: 5px 10px; | |
| transition: all 0.3s; | |
| z-index: 100; | |
| } | |
| .anycoder-link:hover { | |
| background: var(--text-main); | |
| color: var(--bg-deep); | |
| border-color: var(--text-main); | |
| } | |
| /* Animations */ | |
| @keyframes pulse-red { | |
| 0% { box-shadow: 0 0 5px var(--rayfield-red); } | |
| 50% { box-shadow: 0 0 20px var(--rayfield-red); } | |
| 100% { box-shadow: 0 0 5px var(--rayfield-red); } | |
| } | |
| /* Responsive */ | |
| @media (max-width: 768px) { | |
| .container { | |
| flex-direction: column; | |
| height: auto; | |
| overflow-y: auto; | |
| } | |
| .sidebar { | |
| width: 100%; | |
| flex-direction: row; | |
| overflow-x: auto; | |
| } | |
| .main-content { | |
| grid-template-columns: 1fr; | |
| grid-template-rows: auto; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .panel { | |
| min-height: 300px; | |
| } | |
| .stats-panel { | |
| grid-column: 1; | |
| grid-row: 1; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="scanlines"></div> | |
| <header> | |
| <div class="brand"> | |
| <div class="brand-logo"></div> | |
| <div class="brand-text">SYNAPSE <span>//</span> RAYFIELD</div> | |
| </div> | |
| <div class="status-bar"> | |
| <div class="status-item"> | |
| <i class="fas fa-circle blink" style="color: var(--synapse-blue);"></i> | |
| NET: ONLINE | |
| </div> | |
| <div class="status-item"> | |
| <i class="fas fa-shield-alt" style="color: var(--rayfield-red);"></i> | |
| SEC: ACTIVE | |
| </div> | |
| </div> | |
| </header> | |
| <div class="container"> | |
| <aside class="sidebar"> | |
| <button class="nav-btn active" onclick="switchTab('dashboard')">Dashboard</button> | |
| <button class="nav-btn" onclick="switchTab('executor')">Executor Console</button> | |
| <button class="nav-btn" onclick="switchTab('logs')">System Logs</button> | |
| <button class="nav-btn" onclick="switchTab('settings')">Config</button> | |
| </aside> | |
| <main class="main-content"> | |
| <!-- Visualizer Panel --> | |
| <div class="panel visualizer-panel"> | |
| <div class="panel-header"> | |
| <span>SYNAPSE NEURAL LINK</span> | |
| <span id="link-status">CONNECTED</span> | |
| </div> | |
| <div class="synapse-grid" id="synapse-grid"> | |
| <!-- Nodes generated by JS --> | |
| </div> | |
| </div> | |
| <!-- Stats Panel --> | |
| <div class="panel stats-panel"> | |
| <div class="panel-header"> | |
| <span>RAYFIELD SYSTEM RESOURCES</span> | |
| <i class="fas fa-microchip"></i> | |
| </div> | |
| <div class="stat-card"> | |
| <div> | |
| <div class="stat-label">CPU Load</div> | |
| <div class="bar-container"><div class="bar-fill" id="cpu-bar"></div></div> | |
| </div> | |
| <div class="stat-value" id="cpu-val">0%</div> | |
| </div> | |
| <div class="stat-card"> | |
| <div> | |
| <div class="stat-label">Memory Allocation</div> | |
| <div class="bar-container"><div class="bar-fill" id="ram-bar"></div></div> | |
| </div> | |
| <div class="stat-value" id="ram-val">0 GB</div> | |
| </div> | |
| <div class="stat-card"> | |
| <div> | |
| <div class="stat-label">Network I/O</div> | |
| <div class="bar-container"><div class="bar-fill" id="net-bar"></div></div> | |
| </div> | |
| <div class="stat-value" id="net-val">0 MB/s</div> | |
| </div> | |
| <div class="stat-card" style="border-color: var(--rayfield-red);"> | |
| <div class="stat-label">EXECUTOR STATUS</div> | |
| <div class="stat-value" style="color: var(--synapse-blue)">READY</div> | |
| </div> | |
| </div> | |
| <!-- Console Panel --> | |
| <div class="panel console-panel"> | |
| <div class="panel-header"> | |
| <span>COMMAND LINE INTERFACE</span> | |
| <span>ROOT@RAYFIELD</span> | |
| </div> | |
| <div class="console-output" id="console-output"> | |
| <div>> System initialized...</div> | |
| <div>> Synapse core loaded.</div> | |
| <div>> Rayfield AI engine connected.</div> | |
| <div>> Waiting for input...</div> | |
| </div> | |
| <div class="console-input-area"> | |
| <div class="prompt-symbol">>_</div> | |
| <input type="text" id="command-input" placeholder="Enter command..." autocomplete="off"> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| <!-- External Link Requirement --> | |
| <a href="https://huggingface.co/spaces/akhaliq/anycoder" class="anycoder-link" target="_blank"> | |
| Built with anycoder | |
| </a> | |
| <script> | |
| // --- Synapse Grid Generation --- | |
| const grid = document.getElementById('synapse-grid'); | |
| const totalNodes = 60; // 6 columns * 10 rows roughly | |
| for(let i = 0; i < totalNodes; i++) { | |
| let node = document.createElement('div'); | |
| node.classList.add('node'); | |
| node.id = `node-${i}`; | |
| grid.appendChild(node); | |
| } | |
| // --- Neural Activity Animation --- | |
| function animateSynapse() { | |
| const randomNode = Math.floor(Math.random() * totalNodes); | |
| const node = document.getElementById(`node-${randomNode}`); | |
| if(node) { | |
| node.classList.add('active'); | |
| setTimeout(() => { | |
| node.classList.remove('active'); | |
| }, 500); | |
| } | |
| } | |
| setInterval(animateSynapse, 100); | |
| // --- Mock Stats Logic --- | |
| function updateStats() { | |
| const cpu = Math.floor(Math.random() * 80) + 10; | |
| const ram = (Math.random() * 16).toFixed(1); | |
| const net = Math.floor(Math.random() * 500); | |
| document.getElementById('cpu-val').innerText = cpu + '%'; | |
| document.getElementById('cpu-bar').style.width = cpu + '%'; | |
| document.getElementById('ram-val').innerText = ram + ' GB'; | |
| document.getElementById('ram-bar').style.width = (ram / 16 * 100) + '%'; | |
| document.getElementById('net-val').innerText = net + ' MB/s'; | |
| document.getElementById('net-bar').style.width = (net / 500 * 100) + '%'; | |
| } | |
| setInterval(updateStats, 2000); | |
| // --- Console Logic --- | |
| const input = document.getElementById('command-input'); | |
| const output = document.getElementById('console-output'); | |
| input.addEventListener('keypress', function (e) { | |
| if (e.key === 'Enter') { | |
| const command = input.value; | |
| if(command.trim() === "") return; | |
| // Add user command | |
| const userLine = document.createElement('div'); | |
| userLine.style.color = 'var(--text-main)'; | |
| userLine.innerText = `> ${command}`; | |
| output.appendChild(userLine); | |
| // Simulate AI Processing | |
| const processingLine = document.createElement('div'); | |
| processingLine.style.color = 'var(--synapse-dim)'; | |
| processingLine.innerText = `> Processing via Rayfield AI...`; | |
| output.appendChild(processingLine); | |
| // Clear input | |
| input.value = ''; | |
| output.scrollTop = output.scrollHeight; | |
| // Simulate Response Delay | |
| setTimeout(() => { | |
| const responseLine = document.createElement('div'); | |
| responseLine.style.color = 'var(--rayfield-red)'; | |
| responseLine.innerText = `> [RAYFIELD]: Command "${command}" executed successfully. Synapse link stable.`; | |
| output.appendChild(responseLine); | |
| output.scrollTop = output.scrollHeight; | |
| }, 800); | |
| } | |
| }); | |
| // --- Tab Switching Logic (Visual only for this demo) --- | |
| function switchTab(tabName) { | |
| const buttons = document.querySelectorAll('.nav-btn'); | |
| buttons.forEach(btn => btn.classList.remove('active')); | |
| // Find the button that was clicked (passed via onclick, simplified logic here) | |
| // In a real app, we'd toggle content visibility. | |
| // For this UI demo, we'll just flash the console to simulate interaction. | |
| const consolePanel = document.querySelector('.console-panel'); | |
| consolePanel.style.borderColor = 'var(--rayfield-red)'; | |
| setTimeout(() => { | |
| consolePanel.style.borderColor = 'rgba(255, 255, 255, 0.1)'; | |
| }, 200); | |
| } | |
| // Initial highlight | |
| document.querySelectorAll('.nav-btn')[0].classList.add('active'); | |
| </script> | |
| </body> | |
| </html> |