PageSourceSearch

https://withgems.com/assets/Nav-LkZbLwdy.js

js withgems.com collected 2026-10-09 22:55:48 UTC 2,761 bytes, 1 lines download raw bytes

1import{r as a,j as s}from"./app-C4Kq0qwe.js";import{L as f,c as u}from"./structuredData-DVvW7n11.js";import{a as o,B as x}from"./Seo-BiujKJGZ.js";import{a as h,b}from"./Footer-Dedo5CrK.js";const i=[{label:"How it works",href:"#how"},{label:"Results",href:"#results"},{label:"FAQ",href:"#faq"},{label:"For creators",href:"/creators"}],d=(r,t)=>t.startsWith("#")?`${r}${t}`:t;function w({base:r}){return s.jsxs("a",{href:r||"/",className:"flex items-center gap-2.5",children:[s.jsx("span",{className:"logo-mask h-7 w-7 text-lp3-ink"}),s.jsx("span",{className:"font-cooper text-xl leading-none text-lp3-ink",children:"Gems"})]})}function g({base:r=""}={}){const[t,c]=a.useState(!1),[n,l]=a.useState(!1);return a.useEffect(()=>{const e=()=>c(window.scrollY>24);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),a.useEffect(()=>{if(!n)return;const e=p=>p.key==="Escape"&&l(!1),m=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",e),()=>{document.body.style.overflow=m,window.removeEventListener("keydown",e)}},[n]),s.jsxs("header",{className:u("sticky top-0 z-50 w-full border-b bg-white/85 backdrop-blur-xl transition-colors duration-300",t?"border-lp3-line":"border-transparent"),children:[s.jsxs("div",{className:"mx-auto flex h-16 w-full max-w-6xl items-center justify-between px-5 sm:px-8",children:[s.jsx(w,{base:r}),s.jsx("nav",{className:"hidden items-center gap-8 md:flex","aria-label":"Landing sections",children:i.map(e=>s.jsx("a",{href:d(r,e.href),className:"text-sm font-medium text-lp3-ink/85 transition-opacity hover:text-lp3-ink",children:e.label},e.href))}),s.jsxs("div",{className:"flex items-center gap-5",children:[s.jsx("a",{href:o,className:"hidden text-sm font-medium text-lp3-ink/85 hover:text-lp3-ink sm:block",children:"Sign in"}),s.jsx(f,{href:x,target:"_blank",rel:"noopener",children:"Request a demo"}),s.jsx("button",{type:"button",onClick:()=>l(e=>!e),"aria-expanded":n,"aria-controls":"lp3-mobile-menu","aria-label":n?"Close menu":"Open menu",className:"-mr-1.5 grid h-9 w-9 place-items-center rounded-lg text-lp3-ink focus-visible:ring-2 focus-visible:ring-lp3-orange-deep focus-visible:outline-none md:hidden",children:n?s.jsx(h,{className:"h-5.5 w-5.5","aria-hidden":!0}):s.jsx(b,{className:"h-5.5 w-5.5","aria-hidden":!0})})]})]}),n&&s.jsx("nav",{id:"lp3-mobile-menu","aria-label":"Landing sections",className:"border-t border-lp3-line bg-white px-5 pt-2 pb-5 md:hidden",children:[...i,{label:"Sign in",href:o}].map(e=>s.jsx("a",{href:d(r,e.href),onClick:()=>l(!1),className:"block border-b border-lp3-line py-3.5 text-base font-medium text-lp3-ink last:border-b-0",children:e.label},e.href))})]})}export{g as N};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.