Ho bisogno di una landing page per proporre questo servizio di assistenza, creala a partire da questi contenuti, che sia gradevole esteriormente, innovativa, accattivante ed inviti l'utente a confermare un sopralluogo di un tecnico per la valutazione del costo reale del servizio, sotto il documento
4181fdf verified Download components/nav.js from PartneREvolution/techguardian-pro: direct link, hf CLI and curl.
- Browser
- Download file 3.51 kB
-
https://huggingface.co/spaces/PartneREvolution/techguardian-pro/resolve/main/components/nav.js
- Command line
-
hf download hf://spaces/PartneREvolution/techguardian-pro/components/nav.js
-
curl -L -o nav.js https://huggingface.co/spaces/PartneREvolution/techguardian-pro/resolve/main/components/nav.js
3.51 kB
| class TechguardianNav extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| width: 100%; | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| z-index: 1000; | |
| background-color: white; | |
| box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | |
| } | |
| nav { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 1rem 2rem; | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| } | |
| .logo { | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| color: #2563eb; | |
| display: flex; | |
| align-items: center; | |
| } | |
| .logo-icon { | |
| margin-right: 0.5rem; | |
| } | |
| .nav-links { | |
| display: flex; | |
| gap: 2rem; | |
| } | |
| .nav-link { | |
| color: #1f2937; | |
| font-weight: 500; | |
| transition: color 0.3s; | |
| text-decoration: none; | |
| } | |
| .nav-link:hover { | |
| color: #2563eb; | |
| } | |
| .cta-button { | |
| background-color: #2563eb; | |
| color: white; | |
| padding: 0.5rem 1.5rem; | |
| border-radius: 0.375rem; | |
| font-weight: 500; | |
| transition: background-color 0.3s; | |
| } | |
| .cta-button:hover { | |
| background-color: #1e40af; | |
| } | |
| .mobile-menu-button { | |
| display: none; | |
| background: none; | |
| border: none; | |
| cursor: pointer; | |
| } | |
| @media (max-width: 768px) { | |
| .nav-links, .cta-button { | |
| display: none; | |
| } | |
| .mobile-menu-button { | |
| display: block; | |
| } | |
| } | |
| </style> | |
| <nav> | |
| <a href="/" class="logo"> | |
| <i data-feather="shield" class="logo-icon"></i> | |
| TechGuardian Pro | |
| </a> | |
| <div class="nav-links"> | |
| <a href="#services" class="nav-link">Servizi</a> | |
| <a href="#benefits" class="nav-link">Vantaggi</a> | |
| <a href="#about" class="nav-link">Chi Siamo</a> | |
| <a href="#contact" class="nav-link">Contatti</a> | |
| </div> | |
| <a href="#contact" class="cta-button">Richiedi Sopralluogo</a> | |
| <button class="mobile-menu-button"> | |
| <i data-feather="menu"></i> | |
| </button> | |
| </nav> | |
| `; | |
| } | |
| } | |
| customElements.define('techguardian-nav', TechguardianNav); |