class CustomCarCard extends HTMLElement { connectedCallback() { const title = this.getAttribute('title') || 'Classic Car'; const price = this.getAttribute('price') || '0'; const tokens = this.getAttribute('tokens') || '0'; const image = this.getAttribute('image') || 'http://static.photos/automotive/640x360/99'; const model = this.getAttribute('model') || '#'; this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `
${title}

${title}

$${price}
${tokens} GTR
`; } } customElements.define('custom-car-card', CustomCarCard);