class PortfolioCard extends HTMLElement { constructor() { super(); const shadow = this.attachShadow({ mode: "open" }); const icon = this.getAttribute("icon") || "fas fa-code"; const title = this.getAttribute("title") || "Project Title"; const desc = this.getAttribute("desc") || "Project description goes here."; const tags = (this.getAttribute("tags") || "").split(","); const link = this.getAttribute("link") || "#"; const collaboration = this.getAttribute("collaboration") || ""; shadow.innerHTML = `
`; } } customElements.define("portfolio-card", PortfolioCard);