class AchievementCard extends HTMLElement { connectedCallback() { this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `
🏆

${this.getAttribute('title')}

${this.getAttribute('description')}

${this.getAttribute('date')}
`; } } customElements.define('achievement-card', AchievementCard);