class HostingInfo extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
How to Host This Website
- GitHub Pages: Upload to a GitHub repository, go to Settings > Pages, and enable GitHub Pages for the main branch
- Netlify: Drag and drop your project folder into Netlify's dashboard or connect your GitHub repository
- Vercel: Import your Git repository and deploy with zero configuration
- Local Server: For testing, run
npx serve or python -m http.server 8000 in your project directory
For production hosting, consider services like Vercel, Netlify, or GitHub Pages.
`;
}
}
customElements.define('hosting-info', HostingInfo);