Spaces:
Running
Running
Download components/auth-header.js from Flaaaaw/securesign-galaxy: direct link, hf CLI and curl.
- Browser
- Download file 514 Bytes
-
https://huggingface.co/spaces/Flaaaaw/securesign-galaxy/resolve/main/components/auth-header.js
- Command line
-
hf download hf://spaces/Flaaaaw/securesign-galaxy/components/auth-header.js
-
curl -L -o auth-header.js https://huggingface.co/spaces/Flaaaaw/securesign-galaxy/resolve/main/components/auth-header.js
514 Bytes
| class AuthHeader extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| header { | |
| background-color: #007bff; | |
| color: white; | |
| padding: 1rem; | |
| text-align: center; | |
| } | |
| h1 { | |
| margin: 0; | |
| font-size: 1.5rem; | |
| } | |
| </style> | |
| <header> | |
| <h1>Auth Demo</h1> | |
| </header> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-auth-header', AuthHeader); | |