FDxMinh's picture
Tạo cogs và webs cho redbot discord như webs dyno của bot dyno trong discord để quản lý redbot với tất cả chức năng của nó có và cóg của nó, chỉnh sửa cấu hình, quản lý server và nhiều chức năng khác như của dyno bit
b154756 verified
class CustomNavbar extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
nav {
background: rgba(17, 24, 39, 0.9);
backdrop-filter: blur(10px);
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
z-index: 100;
border-bottom: 1px solid rgba(79, 70, 229, 0.3);
}
.logo {
color: white;
font-weight: bold;
font-size: 1.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.logo-icon {
color: #818cf8;
}
ul {
display: flex;
gap: 1.5rem;
list-style: none;
margin: 0;
padding: 0;
}
a {
color: #d1d5db;
text-decoration: none;
font-weight: 500;
transition: color 0.2s;
display: flex;
align-items: center;
gap: 0.5rem;
}
a:hover {
color: #c7d2fe;
}
.active {
color: #818cf8;
}
.auth-buttons {
display: flex;
gap: 1rem;
}
.btn-login {
background: transparent;
border: 1px solid #4f46e5;
color: #c7d2fe;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
font-weight: 500;
transition: all 0.2s;
}
.btn-login:hover {
background: #4f46e5;
}
.btn-signup {
background: #4f46e5;
border: 1px solid #4f46e5;
color: white;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
font-weight: 500;
transition: all 0.2s;
}
.btn-signup:hover {
background: #4338ca;
border-color: #4338ca;
}
.mobile-menu-button {
display: none;
background: none;
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
}
@media (max-width: 768px) {
ul {
display: none;
}
.auth-buttons {
display: none;
}
.mobile-menu-button {
display: block;
}
.mobile-menu {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: rgba(17, 24, 39, 0.95);
backdrop-filter: blur(10px);
padding: 1rem;
border-bottom: 1px solid rgba(79, 70, 229, 0.3);
}
.mobile-menu ul {
display: flex;
flex-direction: column;
gap: 1rem;
}
}
</style>
<nav>
<div class="logo">
<span class="logo-icon">🤖</span>
<span>RedBot Manager</span>
</div>
<ul>
<li><a href="/"><i data-feather="home"></i> Home</a></li>
<li><a href="/dashboard.html"><i data-feather="layout"></i> Dashboard</a></li>
<li><a href="/cogs.html"><i data-feather="package"></i> Cogs</a></li>
<li><a href="/servers.html"><i data-feather="server"></i> Servers</a></li>
<li><a href="/docs.html"><i data-feather="book"></i> Documentation</a></li>
</ul>
<div class="auth-buttons">
<button class="btn-login">Login</button>
<button class="btn-signup">Sign Up</button>
</div>
<button class="mobile-menu-button" id="mobile-menu-button">
<i data-feather="menu"></i>
</button>
<div class="mobile-menu hidden" id="mobile-menu">
<ul>
<li><a href="/"><i data-feather="home"></i> Home</a></li>
<li><a href="/dashboard.html"><i data-feather="layout"></i> Dashboard</a></li>
<li><a href="/cogs.html"><i data-feather="package"></i> Cogs</a></li>
<li><a href="/servers.html"><i data-feather="server"></i> Servers</a></li>
<li><a href="/docs.html"><i data-feather="book"></i> Documentation</a></li>
<li><a href="#"><i data-feather="log-in"></i> Login</a></li>
<li><a href="#"><i data-feather="user-plus"></i> Sign Up</a></li>
</ul>
</div>
</nav>
`;
}
}
customElements.define('custom-navbar', CustomNavbar);