Spaces:
Running

securesign-galaxy / components /auth-header.js
Flaaaaw's picture
build a very simple register and login page, no need to much css decoration, make it simple, cause i want to practice javascript
6edbb19 verified
Raw History Blame Contribute Delete
514 Bytes
class AuthHeader extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
header {
background-color: #007bff;
color: white;
padding: 1rem;
text-align: center;
}
h1 {
margin: 0;
font-size: 1.5rem;
}
</style>
<header>
<h1>Auth Demo</h1>
</header>
`;
}
}
customElements.define('custom-auth-header', AuthHeader);