timoon811's picture
мне нужен сайт под предиктора краш игр, на нем должен быть заголовок 3 пункта 1 кнопка на сайт казино , 2 пункт кнопка получить прогноз и рядом поле в которое он будет приходить а так же ниже отзывы и фото выигрышей место классный футуристический стиль
e98fb12 verified
raw
history blame
2.2 kB
class CustomNavbar extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
nav {
background: rgba(17, 24, 39, 0.8);
backdrop-filter: blur(10px);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid rgba(56, 182, 255, 0.2);
position: sticky;
top: 0;
z-index: 100;
}
.logo {
font-weight: 700;
font-size: 1.5rem;
background: linear-gradient(90deg, #3b82f6, #8b5cf6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
display: flex;
align-items: center;
}
.logo-icon {
margin-right: 0.5rem;
}
ul {
display: flex;
gap: 1.5rem;
list-style: none;
margin: 0;
padding: 0;
}
a {
color: #e5e7eb;
text-decoration: none;
font-weight: 500;
transition: all 0.2s;
position: relative;
}
a:hover {
color: #3b82f6;
}
a::after {
content: '';
position: absolute;
bottom: -4px;
left: 0;
width: 0;
height: 2px;
background: linear-gradient(90deg, #3b82f6, #8b5cf6);
transition: width 0.3s;
}
a:hover::after {
width: 100%;
}
@media (max-width: 768px) {
nav {
flex-direction: column;
padding: 1rem;
}
ul {
margin-top: 1rem;
gap: 1rem;
}
}
</style>
<nav>
<a href="/" class="logo">
<i data-feather="activity" class="logo-icon"></i>
CrashOracle Pro
</a>
<ul>
<li><a href="/">Home</a></li>
<li><a href="#predict">Predictions</a></li>
<li><a href="#testimonials">Testimonials</a></li>
</ul>
</nav>
`;
}
}
customElements.define('custom-navbar', CustomNavbar);