bbc123321's picture
Only Wikipedia is working. The UI is trash. Make it red and black and the main screen is what you search with a tab for configuration. Please fix the proxy and literally everything that is broken.
22be3f8 verified
class CustomNavbar extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
width: 100%;
background-color: #0F0F0F;
position: sticky;
top: 0;
z-index: 50;
border-bottom: 1px solid #8B0000;
}
.nav-container {
max-width: 100%;
margin: 0 auto;
padding: 1rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.logo {
display: flex;
align-items: center;
font-weight: 700;
font-size: 1.5rem;
color: #FF0000;
text-decoration: none;
}
.logo-icon {
margin-right: 0.5rem;
color: #FF0000;
}
.status {
display: flex;
align-items: center;
font-size: 0.875rem;
}
.status-item {
margin-left: 1rem;
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
background: #1F1F1F;
color: #FF0000;
display: flex;
align-items: center;
}
.status-icon {
margin-right: 0.25rem;
}
</style>
<div class="nav-container">
<a href="/" class="logo">
<i data-feather="droplet" class="logo-icon"></i>
BloodProxy
</a>
<div class="status">
<div class="status-item" id="proxy-status">
<i data-feather="shield" class="status-icon"></i>
<span>Proxy: Off</span>
</div>
<div class="status-item" id="vpn-status">
<i data-feather="lock" class="status-icon"></i>
<span>VPN: Off</span>
</div>
</div>
</div>
`;
}
}
customElements.define('custom-navbar', CustomNavbar);