rushkid5's picture
https://rushkid5-dickpic-rater-pro.static.hf.space/index.html
a4dbd12 verified
class CustomHeader extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
}
header {
background: rgba(10, 7, 24, 0.8);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 100;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 12px;
}
.logo-icon {
width: 40px;
height: 40px;
background: linear-gradient(135deg, #8b5cf6, #60a5fa);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
}
.logo-text {
font-size: 1.5rem;
font-weight: 800;
background: linear-gradient(90deg, #8b5cf6, #60a5fa);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
nav ul {
display: flex;
list-style: none;
gap: 2rem;
}
nav a {
color: #cbd5e1;
text-decoration: none;
font-weight: 500;
transition: color 0.3s;
display: flex;
align-items: center;
gap: 6px;
}
nav a:hover {
color: #8b5cf6;
}
.user-actions {
display: flex;
align-items: center;
gap: 1rem;
}
.btn {
padding: 0.5rem 1.5rem;
border-radius: 50px;
font-weight: 600;
transition: all 0.3s;
cursor: pointer;
}
.btn-outline {
background: transparent;
border: 1px solid rgba(139, 92, 246, 0.5);
color: #c7d2fe;
}
.btn-outline:hover {
background: rgba(139, 92, 246, 0.1);
border-color: #8b5cf6;
}
.btn-primary {
background: linear-gradient(90deg, #8b5cf6, #60a5fa);
border: none;
color: white;
}
.btn-primary:hover {
background: linear-gradient(90deg, #7c3aed, #3b82f6);
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
@media (max-width: 768px) {
.container {
flex-direction: column;
gap: 1rem;
}
nav ul {
gap: 1rem;
}
}
</style>
<header>
<div class="container">
<div class="logo">
<div class="logo-icon">
<i data-feather="star" class="text-white w-5 h-5"></i>
</div>
<div class="logo-text">DickPic Rater Pro</div>
</div>
<nav>
<ul>
<li><a href="/"><i data-feather="home" class="w-4 h-4"></i> Home</a></li>
<li><a href="/"><i data-feather="upload" class="w-4 h-4"></i> Upload</a></li>
<li><a href="/about.html"><i data-feather="award" class="w-4 h-4"></i> About</a></li>
<li><a href="/about.html"><i data-feather="users" class="w-4 h-4"></i> Panel</a></li>
</ul>
</nav>
<div class="user-actions">
<button class="btn btn-outline">
<i data-feather="help-circle" class="w-4 h-4 mr-1"></i> Help
</button>
<button class="btn btn-primary">
<i data-feather="user" class="w-4 h-4 mr-1"></i> Account
</button>
</div>
</div>
</header>
`;
// Initialize feather icons after a short delay to ensure DOM is ready
setTimeout(() => {
if (typeof feather !== 'undefined') {
feather.replace();
}
}, 100);
}
}
customElements.define('custom-header', CustomHeader);