🖼️ BASE64埋め込み方式
const images = {
photo1: 'data:image/jpeg;base64,/9j/4AAQSkZJRg...',
photo2: 'data:image/jpeg;base64,/9j/4AAQSkZJRg...'
};
class GalleryComponent extends HTMLElement {
connectedCallback() {
this.innerHTML = `
<img src="${images.photo1}" />
<img src="${images.photo2}" />
`;
}
}