Download task_019/environment/code/index.html from Lego-X/UXInteract: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_019/environment/code/index.html
- Command line
-
hf download hf://datasets/Lego-X/UXInteract/task_019/environment/code/index.html
-
curl -L -o index.html https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_019/environment/code/index.html
1.23 kB
| <html lang="zh-CN"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Sidebar Spacing Fixture</title> | |
| <style> | |
| body { margin: 0; font-family: Arial, sans-serif; } | |
| .app { display: flex; min-height: 100vh; } | |
| .sidebar { width: 240px; background: #1f2937; color: white; padding: 16px; } | |
| .sidebar.collapsed { width: 0; padding: 0; overflow: hidden; } | |
| .content-shell { flex: 1; display: flex; justify-content: center; } | |
| .content { width: min(900px, 100%); padding: 24px 0; } | |
| .placeholder { border: 1px dashed #aaa; padding: 20px; } | |
| </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="toggle-sidebar">Toggle</button> | |
| <div class="placeholder" data-testid="placeholder">Placeholder</div> | |
| </section> | |
| </main> | |
| </div> | |
| <script> | |
| document.querySelector('[data-testid="toggle-sidebar"]').addEventListener('click', () => { | |
| document.querySelector('[data-testid="sidebar"]').classList.toggle('collapsed'); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |