CommandPrompt's picture
I want it all in Spanish even more high tech and called simply >_teleprompter
6917ab6 verified
class CustomNavbar extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
nav {
background: rgba(31, 41, 55, 0.8);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-weight: 700;
font-size: 1.25rem;
color: white;
display: flex;
align-items: center;
gap: 0.5rem;
}
.nav-links {
display: flex;
gap: 1.5rem;
}
.nav-link {
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
transition: color 0.2s;
font-weight: 500;
}
.nav-link:hover {
color: white;
}
@media (max-width: 768px) {
.nav-container {
flex-direction: column;
padding: 1rem;
}
.nav-links {
margin-top: 1rem;
flex-wrap: wrap;
justify-content: center;
}
}
</style>
<nav>
<div class="nav-container">
<a href="/" class="logo">
<i data-feather="terminal"></i>
>_teleprompter
</a>
<div class="nav-links">
<a href="/" class="nav-link">Inicio</a>
<a href="/templates" class="nav-link">Plantillas</a>
<a href="/features" class="nav-link">Características</a>
<a href="/pricing" class="nav-link">Precios</a>
<a href="/contact" class="nav-link">Contacto</a>
</div>
</div>
</nav>
`;
}
}
customElements.define('custom-navbar', CustomNavbar);