mithunparambath's picture
Specfication tab in not resposive can you remove it
c790d5d verified
raw
history blame
2.31 kB
class CustomNavbar extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
nav {
background: rgba(255,255,255,0.95);
backdrop-filter: blur(10px);
border-bottom: 1px solid #e5e7eb;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
transition: all 0.3s ease;
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
.nav-content {
display: flex;
justify-content: space-between;
align-items: center;
height: 70px;
}
.logo {
font-size: 1.5rem;
font-weight: 700;
color: #111827;
text-decoration: none;
}
.logo span {
color: #ff6600;
}
.nav-links {
display: flex;
gap: 2rem;
align-items: center;
}
.nav-link {
color: #374151;
text-decoration: none;
font-weight: 500;
transition: color 0.3s ease;
}
.nav-link:hover {
color: #ff6600;
}
.mobile-menu-btn {
display: none;
background: none;
border: none;
cursor: pointer;
color: #374151;
}
@media (max-width: 768px) {
.nav-links {
display: none;
}
.mobile-menu-btn {
display: block;
}
}
</style>
<nav>
<div class="nav-container">
<div class="nav-content">
<a href="/" class="logo">
Nano<span>Matter</span>
</a>
<div class="nav-links">
<a href="#about" class="nav-link">About</a>
<a href="#service" class="nav-link">Services</a>
<a href="#partnerships" class="nav-link">Partnerships</a>
<a href="#contact" class="nav-link">Contact</a>
</div>
<button class="mobile-menu-btn">
<i data-feather="menu"></i>
</button>
</div>
</div>
</nav>
`;
}
}
customElements.define('custom-navbar', CustomNavbar);