Krydev32's picture
If something's missing why it's not showing anything in the preview, check this other code.
865f3dd verified
raw
history blame contribute delete
539 Bytes
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background-color: #f1f5fd;
padding: 1rem;
text-align: center;
margin-top: 2rem;
}
p {
margin: 0;
color: #436bd9;
}
</style>
<footer>
<p>&copy; 2023 TKQuest. All rights reserved.</p>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);