Spaces:
Running
Running
Download components/contact-button.js from visualside/huge-vibes-clone: direct link, hf CLI and curl.
- Browser
- Download file 721 Bytes
-
https://huggingface.co/spaces/visualside/huge-vibes-clone/resolve/main/components/contact-button.js
- Command line
-
hf download hf://spaces/visualside/huge-vibes-clone/components/contact-button.js
-
curl -L -o contact-button.js https://huggingface.co/spaces/visualside/huge-vibes-clone/resolve/main/components/contact-button.js
721 Bytes
| class ContactButton extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| .contact-button { | |
| display: inline-block; | |
| padding: 12px 24px; | |
| background-color: #000; | |
| color: white; | |
| border-radius: 50px; | |
| font-weight: 500; | |
| transition: all 0.3s ease; | |
| text-decoration: none; | |
| } | |
| .contact-button:hover { | |
| background-color: #333; | |
| transform: translateY(-2px); | |
| } | |
| </style> | |
| <a href="/contact" class="contact-button"> | |
| Get in touch | |
| </a> | |
| `; | |
| } | |
| } | |
| customElements.define('contact-button', ContactButton); |