CreitinGameplays's picture
make the entire site blurry with transparency effects, add color picker. Overall it should be blurry
6245e6e verified
class CustomNavbar extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
width: 100%;
position: sticky;
top: 0;
z-index: 50;
background-color: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
max-width: 1280px;
margin: 0 auto;
}
.logo {
display: flex;
align-items: center;
font-weight: 700;
font-size: 1.25rem;
color: var(--primary-600);
text-decoration: none;
}
.logo-icon {
margin-right: 0.5rem;
color: var(--primary-500);
}
.nav-links {
display: flex;
gap: 1.5rem;
}
.nav-link {
color: var(--gray-600);
text-decoration: none;
font-weight: 500;
transition: color 0.2s;
}
.nav-link:hover {
color: var(--primary-600);
}
.mobile-menu-btn {
display: none;
background: none;
border: none;
cursor: pointer;
color: var(--gray-600);
}
@media (max-width: 768px) {
.nav-links {
display: none;
}
.mobile-menu-btn {
display: block;
}
}
</style>
<nav>
<a href="/" class="logo">
<i data-feather="droplet" class="logo-icon"></i>
Pixel Palette
</a>
<div class="nav-links">
<a href="#" class="nav-link">Features</a>
<a href="#" class="nav-link">Explore</a>
<a href="#" class="nav-link">Pricing</a>
<a href="#" class="nav-link">Resources</a>
<a href="#" class="nav-link">Sign In</a>
</div>
<button class="mobile-menu-btn">
<i data-feather="menu"></i>
</button>
</nav>
`;
}
}
customElements.define('custom-navbar', CustomNavbar);