Download task_020/solution/code/index.html from Lego-X/UXInteract: direct link, hf CLI and curl.
- Browser
- Download file 1.41 kB
-
https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_020/solution/code/index.html
- Command line
-
hf download hf://datasets/Lego-X/UXInteract/task_020/solution/code/index.html
-
curl -L -o index.html https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_020/solution/code/index.html
1.41 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Demo 1001 Layout Gap Fixture</title> | |
| <style> | |
| body { margin: 0; font-family: Arial, sans-serif; } | |
| .app { display: flex; min-height: 100vh; } | |
| .sidebar { width: 240px; background: #111827; color: white; transition: width .2s; } | |
| .sidebar.collapsed { width: 0; overflow: hidden; } | |
| .content-shell { flex: 1; margin-left: 0; min-width: 0; } | |
| .content { padding-left: 0; padding-top: 24px; } | |
| input { max-width: 100%; box-sizing: border-box; } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="app"> | |
| <aside class="sidebar" data-testid="sidebar">Sidebar</aside> | |
| <main class="content-shell" data-testid="content-shell"> | |
| <section class="content" data-testid="main-content"> | |
| <button data-testid="collapse-sidebar">Collapse</button> | |
| <button data-testid="show-prompt">Show prompt</button> | |
| <input data-testid="prompt-input" hidden> | |
| </section> | |
| </main> | |
| </div> | |
| <script> | |
| const sidebar = document.querySelector('[data-testid="sidebar"]'); | |
| document.querySelector('[data-testid="collapse-sidebar"]').addEventListener('click', () => sidebar.classList.toggle('collapsed')); | |
| document.querySelector('[data-testid="show-prompt"]').addEventListener('click', () => { | |
| document.querySelector('[data-testid="prompt-input"]').hidden = false; | |
| }); | |
| </script> | |
| </body> | |
| </html> | |