Spaces:
Running
Running
Download components/header.js from wilko66/dataviz-dynamo: direct link, hf CLI and curl.
- Browser
- Download file 1.66 kB
-
https://huggingface.co/spaces/wilko66/dataviz-dynamo/resolve/main/components/header.js
- Command line
-
hf download hf://spaces/wilko66/dataviz-dynamo/components/header.js
-
curl -L -o header.js https://huggingface.co/spaces/wilko66/dataviz-dynamo/resolve/main/components/header.js
1.66 kB
| class CustomHeader extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| header { | |
| background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); | |
| color: white; | |
| box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); | |
| } | |
| .logo { | |
| font-weight: 700; | |
| font-size: 1.5rem; | |
| letter-spacing: -0.025em; | |
| } | |
| .logo-icon { | |
| margin-right: 0.5rem; | |
| } | |
| nav a { | |
| transition: all 0.2s ease; | |
| } | |
| nav a:hover { | |
| opacity: 0.8; | |
| } | |
| </style> | |
| <header class="py-4 px-6"> | |
| <div class="container mx-auto flex justify-between items-center"> | |
| <div class="logo flex items-center"> | |
| <i data-feather="paperclip" class="logo-icon"></i> | |
| <span>File Attacher Pro</span> | |
| </div> | |
| <nav class="flex space-x-6"> | |
| <a href="index.html" class="flex items-center"> | |
| <i data-feather="home" class="mr-1"></i> Home | |
| </a> | |
| <a href="ops-report.html" class="flex items-center"> | |
| <i data-feather="bar-chart-2" class="mr-1"></i> Reports | |
| </a> | |
| <a href="#" class="flex items-center"> | |
| <i data-feather="help-circle" class="mr-1"></i> Help | |
| </a> | |
| <a href="#" class="flex items-center"> | |
| <i data-feather="user" class="mr-1"></i> Account | |
| </a> | |
| </nav> | |
| </div> | |
| </header> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-header', CustomHeader); |