class CustomFeatureCard extends HTMLElement { constructor() { super(); this.icon = this.getAttribute('icon') || 'code'; this.title = this.getAttribute('title') || 'Feature'; this.description = this.getAttribute('description') || 'Description'; this.ctaText = this.getAttribute('cta-text') || 'Try Now'; this.color = this.getAttribute('color') || 'primary'; } connectedCallback() { this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `
`; setTimeout(() => { if (typeof feather !== 'undefined') { feather.replace(); } }, 100); } } customElements.define('custom-feature-card', CustomFeatureCard);