huge-vibes-clone / components /contact-button.js
visualside's picture
https://nouvii.com/ make the website like this
28498bf verified
Raw History Blame Contribute Delete
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);