{
const template = `
`;
const css = ` footer {
padding: 1em 0;
background-color: var(--headerFontColor);
color: var(--backgroundColor);
}
footer ul {
max-width: 500px;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
white-space: nowrap;
padding: 0;
margin: 0 auto;
list-style: none;
opacity: 0.7;
}
a {
margin: 0 1em;
text-decoration: none;
color: var(--backgroundColor);
} `;
window.customElements.define(
"footer-svp",
class extends HTMLElement {
// static observedAttributes = ["attribut1", "attribut2", "attribut3"];
constructor() {
super();
this.attachShadow({ mode: "open" });
this.shadowRoot.innerHTML = template;
const style = new CSSStyleSheet();
style.replaceSync(css);
this.shadowRoot.adoptedStyleSheets = [style];
}
// connectedCallback() {}
// attributeChangedCallback(name, oldValue, newValue) {}
}
);
}