Download examples/astra_session3.html from thevareoz/astra-browser-core: direct link, hf CLI and curl.
- Browser
- Download file 3.47 kB
-
https://huggingface.co/thevareoz/astra-browser-core/resolve/main/examples/astra_session3.html
- Command line
-
hf download hf://thevareoz/astra-browser-core/examples/astra_session3.html
-
curl -L -o astra_session3.html https://huggingface.co/thevareoz/astra-browser-core/resolve/main/examples/astra_session3.html
3.47 kB
| <html lang="es"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Astra v3 — Sesión 3 Showcase</title> | |
| <style> | |
| body { background: #0a0f1a; color: #e2e8f0; padding: 18px 24px; } | |
| .banner { background: #111827; border: 1px solid #1e293b; border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; } | |
| .kicker { color: #38bdf8; font-size: 12px; font-weight: bold; font-family: monospace; margin-bottom: 4px; } | |
| .form-bar { display: grid; grid-template-columns: 1fr 190px; gap: 12px; margin-top: 10px; } | |
| .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; } | |
| .card { background: #131c2e; border: 1px solid #24324a; border-radius: 10px; padding: 12px; } | |
| .label { color: #7dd3fc; font-size: 12px; font-weight: bold; font-family: monospace; margin-bottom: 6px; } | |
| .status { color: #6ee7b7; font-size: 13px; font-family: monospace; margin-top: 8px; } | |
| .sub { color: #94a3b8; font-size: 12px; margin-top: 8px; } | |
| button { background: #0284c7; color: #ffffff; border-radius: 6px; padding: 10px 14px; font-weight: bold; font-size: 13px; } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="banner"> | |
| <div class="kicker">SESIÓN 3 • TIPOGRAFÍA TRUETYPE VECTORIAL • JPEG NATIVO • CSS GRID • FORMULARIOS + FETCH()</div> | |
| <h1 id="title-out">Astra v3: Listo para interacción</h1> | |
| <div class="form-bar"> | |
| <input id="query-box" type="text" placeholder="Escribe un comando o consulta aquí..."> | |
| <button id="run-btn">Ejecutar Consulta</button> | |
| </div> | |
| <div id="api-status" class="status">Esperando fetch() y eventos de teclado...</div> | |
| </div> | |
| <div class="grid3"> | |
| <div class="card"> | |
| <div class="label">DECODIFICADOR JPEG DCT (C++20 PURO)</div> | |
| <img src="astra_nebula.jpg" width="368" height="210"> | |
| <p class="sub">JPEG YCbCr 4:2:0 decodificado desde cero sin libjpeg.</p> | |
| </div> | |
| <div class="card"> | |
| <div class="label">DECODIFICADOR PNG NATIVO (FILTROS + ZLIB)</div> | |
| <img src="astra_badge.png" width="368" height="210"> | |
| <p class="sub">PNG RGBA 8-bit compuesto en ARGB32 con suavizado.</p> | |
| </div> | |
| <div class="card"> | |
| <div class="label">ASTRA3D v2 + SHADERS BLINN-PHONG</div> | |
| <astra-3d scene="torus" style="height: 210px;"></astra-3d> | |
| <p class="sub">Rasterizador 3D Z-buffer con normales suaves.</p> | |
| </div> | |
| </div> | |
| <script> | |
| let meta = fetch("astra_data.json").json(); | |
| let tracker = fetch("https://doubleclick.net/ad.js"); | |
| localStorage.setItem("session", "3"); | |
| document.querySelector("#api-status").textContent = | |
| "fetch(JSON): " + meta.engine + " | Shield blocked tracker: " + tracker.blockedByShield + " | LS=" + localStorage.getItem("session"); | |
| let box = document.querySelector("#query-box"); | |
| box.addEventListener("input", function() { | |
| document.querySelector("#title-out").textContent = "Escribiendo: " + box.value; | |
| }); | |
| box.addEventListener("submit", function() { | |
| document.querySelector("#title-out").textContent = "Enviado (Enter): " + box.value.toUpperCase(); | |
| document.querySelector("#api-status").textContent = "Formulario procesado por AstraJS v3 • " + JSON.stringify({ query: box.value, ok: true }); | |
| }); | |
| document.querySelector("#run-btn").addEventListener("click", function() { | |
| document.querySelector("#title-out").textContent = "Ejecutado (Click): " + box.value.toUpperCase(); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |