kirikir13's picture
get this running please and adapt the script to run huggingface models (gguf, and safetensor, make sure vision use option in settings is fully functional and then rework it to run on my huggingFace spaces page rework # EvE_2_D Syre
a0b2440 verified
class CustomNavbar extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
nav {
background: rgba(15, 23, 42, 0.8);
backdrop-filter: blur(10px);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.logo {
color: #818cf8;
font-weight: bold;
font-size: 1.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.logo-icon {
width: 24px;
height: 24px;
}
ul {
display: flex;
gap: 1.5rem;
list-style: none;
margin: 0;
padding: 0;
}
a {
color: #e2e8f0;
text-decoration: none;
transition: color 0.2s;
display: flex;
align-items: center;
gap: 0.3rem;
font-weight: 500;
}
a:hover {
color: #818cf8;
}
@media (max-width: 768px) {
nav {
flex-direction: column;
padding: 1rem;
}
ul {
margin-top: 1rem;
flex-wrap: wrap;
justify-content: center;
}
}
</style>
<nav>
<a href="/" class="logo">
<svg class="logo-icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 2L2 7L12 12L22 7L12 2Z" stroke="#818cf8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M2 17L12 22L22 17" stroke="#818cf8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M2 12L12 17L22 12" stroke="#818cf8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<span>EvE 2 D Syre</span>
</a>
<ul>
<li><a href="/"><i data-feather="home"></i> Home</a></li>
<li><a href="/models.html"><i data-feather="cpu"></i> Models</a></li>
<li><a href="/settings.html"><i data-feather="settings"></i> Settings</a></li>
<li><a href="/api.html"><i data-feather="key"></i> API Keys</a></li>
</ul>
</nav>
`;
}
}
customElements.define('custom-navbar', CustomNavbar);