ConstantinePr's picture
remove the website name now that we have the logo
3507f25 verified
Raw History Blame Contribute Delete
1.07 kB
class CustomLogo extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
.logo-container {
display: flex;
align-items: center;
gap: 0.75rem;
text-decoration: none !important;
}
.logo-img {
height: 40px;
width: auto;
}
@media (max-width: 640px) {
.logo-img {
height: 32px;
}
.logo-text {
font-size: 1.25rem;
}
}
</style>
<div class="logo-container">
<img src="https://huggingface.co/spaces/ConstantinePr/shockwire-electrics/resolve/main/images/W&L_logo_Web_use_Orange_A.png"
alt="Wire&Light Logo" class="logo-img">
</div>
`;
}
}
customElements.define('custom-logo', CustomLogo);