class ProfileCard extends HTMLElement { constructor() { super(); this.attachShadow({ mode: 'open' }); } connectedCallback() { const type = this.getAttribute('type') || 'courage'; const name = this.getAttribute('name') || ''; const title = this.getAttribute('title') || ''; const description = this.getAttribute('description') || ''; const image = this.getAttribute('image') || 'http://static.photos/people/200x200'; const source = this.getAttribute('source') || '#'; this.shadowRoot.innerHTML = `