class SoftwareCard extends HTMLElement { static get observedAttributes() { return ['name', 'category', 'url', 'version', 'seed']; } connectedCallback() { this.render(); } attributeChangedCallback() { this.render(); } render() { const name = this.getAttribute('name') || 'Software Name'; const category = this.getAttribute('category') || 'Category'; const url = this.getAttribute('url') || '#'; const version = this.getAttribute('version') || '1.0.0'; const seed = this.getAttribute('seed') || '1'; const categoryColors = { '음악 제작': 'bg-purple-500/20 text-purple-400', '비디오 편집': 'bg-pink-500/20 text-pink-400', 'AI 도구': 'bg-cyan-500/20 text-cyan-400', '유틸리티': 'bg-blue-500/20 text-blue-400', 'iOS 도구': 'bg-gray-500/20 text-gray-400', '시스템 도구': 'bg-yellow-500/20 text-yellow-400', '데이터 복구': 'bg-green-500/20 text-green-400', '개발': 'bg-indigo-500/20 text-indigo-400', '비디오 도구': 'bg-red-500/20 text-red-400', '오디오 도구': 'bg-orange-500/20 text-orange-400', '3D 디자인': 'bg-teal-500/20 text-teal-400', '게임 개발': 'bg-violet-500/20 text-violet-400' }; const categoryClass = categoryColors[category] || 'bg-primary/20 text-primary'; this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `
${name}
${category}

${name}

v${version}
4.8

향상된 기능과 완전한 기능을 갖춘 프리미엄 버전입니다. 모든 업데이트와 프리미엄 지원이 포함됩니다.

`; // Initialize feather icons setTimeout(() => { if (typeof feather !== 'undefined') { feather.replace(); } }, 100); } } customElements.define('software-card', SoftwareCard);