File size: 2,921 Bytes
ac47538 8a0da71 ac47538 8a0da71 ac47538 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | class PayrollNavbar extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
nav {
background: white;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
position: fixed;
width: 100%;
top: 0;
z-index: 50;
}
.container {
max-width: 1280px;
margin: 0 auto;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 0.75rem;
font-weight: 700;
font-size: 1.25rem;
color: #1f2937;
text-decoration: none;
}
.logo-icon {
color: #3b82f6;
width: 1.75rem;
height: 1.75rem;
}
.nav-links {
display: flex;
gap: 2rem;
align-items: center;
}
.nav-link {
color: #4b5563;
font-weight: 500;
text-decoration: none;
transition: color 0.2s;
}
.nav-link:hover {
color: #3b82f6;
}
.cta-button {
background: #3b82f6;
color: white;
padding: 0.5rem 1.25rem;
border-radius: 0.375rem;
font-weight: 500;
transition: background 0.2s;
}
.cta-button:hover {
background: #2563eb;
}
.mobile-menu-button {
display: none;
background: none;
border: none;
color: #4b5563;
cursor: pointer;
}
@media (max-width: 768px) {
.nav-links {
display: none;
}
.mobile-menu-button {
display: block;
}
}
</style>
<nav>
<div class="container">
<a href="/" class="logo">
<img src="https://huggingface.co/spaces/MassCoder/rupeerocket-payroll-blastoff/resolve/main/images/OryFolksLogo.jpg" alt="Ory Folks Logo" class="h-8 w-auto">
Ory Folks
</a>
<div class="nav-links">
<a href="#features" class="nav-link">Features</a>
<a href="#pricing" class="nav-link">Pricing</a>
<a href="#testimonials" class="nav-link">Testimonials</a>
<a href="/dashboard.html" class="nav-link">Demo</a>
<a href="/signup.html" class="cta-button">Get Started</a>
</div>
<button class="mobile-menu-button">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M3 12H21M3 6H21M3 18H21"></path>
</svg>
</button>
</div>
</nav>
`;
}
}
customElements.define('payroll-navbar', PayrollNavbar); |