Download components/payroll-navbar.js from MassCoder/rupeerocket-payroll-blastoff: direct link, hf CLI and curl.
- Browser
- Download file 2.92 kB
-
https://huggingface.co/spaces/MassCoder/rupeerocket-payroll-blastoff/resolve/main/components/payroll-navbar.js
- Command line
-
hf download hf://spaces/MassCoder/rupeerocket-payroll-blastoff/components/payroll-navbar.js
-
curl -L -o payroll-navbar.js https://huggingface.co/spaces/MassCoder/rupeerocket-payroll-blastoff/resolve/main/components/payroll-navbar.js
2.92 kB
| 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); |