class CustomFeatureCard extends HTMLElement { connectedCallback() { const icon = this.getAttribute('icon') || 'box'; const title = this.getAttribute('title') || 'Feature'; const description = this.getAttribute('description') || 'Feature description goes here'; this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `

${title}

${description}

`; } } customElements.define('custom-feature-card', CustomFeatureCard);