VZXdev's picture
сделай web приложение которое позволяет накручивать подписчиков roblox,, 2 страницы, главная, и основная где есть все для этого. Стиль: деловой, черный liqud glass
115ecdf verified
Raw History Blame Contribute Delete
8.72 kB
class CustomNavbar extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
}
nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 50;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(20px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-container {
max-width: 1280px;
margin: 0 auto;
padding: 0 1rem 0 1rem;
}
.nav-content {
display: flex;
align-items: center;
justify-content: space-between;
height: 4rem;
}
.logo-section {
display: flex;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 0.75rem;
}
.logo img {
height: 2rem;
width: 2rem;
border-radius: 50%;
}
.logo-text {
font-size: 1.25rem;
font-weight: bold;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.nav-links {
display: none;
align-items: center;
gap: 1rem;
}
.nav-link {
color: #9ca3af;
padding: 0.5rem 0.75rem;
border-radius: 0.375rem;
text-decoration: none;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.3s ease;
}
.nav-link:hover {
color: white;
background: rgba(255, 255, 255, 0.05);
}
.nav-link.active {
color: white;
background: rgba(102, 126, 234, 0.2);
}
.nav-actions {
display: none;
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 0.5rem 1rem;
border-radius: 0.375rem;
text-decoration: none;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}
.mobile-menu-btn {
display: flex;
align-items: center;
justify-content: center;
padding: 0.5rem;
border-radius: 0.375rem;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: #9ca3af;
cursor: pointer;
transition: all 0.3s ease;
}
.mobile-menu-btn:hover {
color: white;
background: rgba(255, 255, 255, 0.1);
}
.mobile-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.95);
backdrop-filter: blur(20px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
padding: 1rem;
}
.mobile-menu.active {
display: block;
}
.mobile-nav-link {
display: block;
color: #9ca3af;
padding: 0.75rem 1rem;
border-radius: 0.375rem;
text-decoration: none;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.3s ease;
}
.mobile-nav-link:hover {
color: white;
background: rgba(255, 255, 255, 0.05);
}
.mobile-nav-link.active {
color: white;
background: rgba(102, 126, 234, 0.2);
}
@media (min-width: 768px) {
.nav-links {
display: flex;
}
.nav-actions {
display: flex;
}
.mobile-menu-btn {
display: none;
}
}
@media (min-width: 1024px) {
.nav-container {
padding: 0 2rem;
}
}
</style>
<nav>
<div class="nav-container">
<div class="nav-content">
<div class="logo-section">
<a href="index.html" class="logo">
<img src="https://static.photos/minimal/40x40/42" alt="Logo">
<span class="logo-text">RobloxBoost Pro</span>
</a>
</div>
<div class="nav-links">
<a href="index.html" class="nav-link">Home</a>
<a href="dashboard.html" class="nav-link active">Dashboard</a>
<a href="#features" class="nav-link">Features</a>
<a href="#pricing" class="nav-link">Pricing</a>
<a href="#support" class="nav-link">Support</a>
</div>
<div class="nav-actions">
<a href="dashboard.html" class="btn-primary">Get Started</a>
</div>
<button class="mobile-menu-btn" onclick="toggleMobileMenu()">
<i data-feather="menu"></i>
</button>
</div>
</div>
<div class="mobile-menu" id="mobile-menu">
<a href="index.html" class="mobile-nav-link">Home</a>
<a href="dashboard.html" class="mobile-nav-link active">Dashboard</a>
<a href="#features" class="mobile-nav-link">Features</a>
<a href="#pricing" class="mobile-nav-link">Pricing</a>
<a href="#support" class="mobile-nav-link">Support</a>
<a href="dashboard.html" class="mobile-nav-link" style="margin-top: 1rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);">Get Started</a>
</div>
</nav>
`;
// Inject feather icons script
const featherScript = document.createElement('script');
featherScript.src = 'https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js';
featherScript.onload = () => {
if (typeof feather !== 'undefined') {
feather.replace();
}
};
this.shadowRoot.appendChild(featherScript);
}
}
customElements.define('custom-navbar', CustomNavbar);