1import{r as e,j as s}from"./vendor-react-C9yDzYQD.js";import{B as r}from"./button-CcIRk75H.js";import{A as t}from"./AnimatedLogo-BHNlQQ7J.js";import{a as o}from"./runtime-utils-GN4cODRt.js";import{C as i,F as a}from"./chromeExtension-Ba1XSCfq.js";import{s as n}from"./passiveScrollSubscriptions-CS-jkkI4.js";import{L as l}from"./vendor-router-X7RJKav4.js";import{U as m}from"./users-DC2VReCB.js";function c({className:c,compactMobile:d=!1,showChromeExtension:x=!1,subtitle:h="Your own feed",tone:p="dark",revealOnScroll:b=!1}){const g="dark"===p,[f,u]=e.useState(!b);return e.useEffect(()=>{if(!b)return void u(!0);const e=()=>{u(e=>{const s=window.scrollY>160;return e===s?e:s})};return e(),n(window,e)},[b]),s.jsx("nav",{"aria-hidden":b&&!f,className:o("fixed inset-x-0 top-4 z-50 px-4 transition-all duration-500 ease-out",b&&!f?"invisible pointer-events-none -translate-y-[calc(100%+2rem)] opacity-0":"translate-y-0 opacity-100"),children:s.jsxs("div",{className:o("mx-auto flex w-full max-w-5xl items-center justify-between gap-3 rounded-[1.75rem] px-4 py-3 backdrop-blur-xl sm:px-5",g?"border border-white/10 bg-[linear-gradient(180deg,rgba(12,15,23,0.92),rgba(7,9,15,0.88))] shadow-[0_18px_50px_rgba(0,0,0,0.28)]":"border border-black/10 bg-[linear-gradient(180deg,rgba(255,255,255,0.16),rgba(255,255,255,0.11))] shadow-[0_18px_50px_rgba(17,17,17,0.08)]",c),children:[s.jsxs("div",{className:"flex items-center gap-2 sm:gap-3",children:[s.jsxs(l,{to:"/",className:"flex items-center gap-3 text-left transition-opacity hover:opacity-90",children:[s.jsx("div",{className:"h-[3.15rem] w-[3.15rem] overflow-hidden sm:h-[3.4rem] sm:w-[3.4rem]",children:s.jsx(t,{alt:"Echo logo"})}),s.jsxs("div",{className:"hidden sm:block",children:[s.jsx("p",{className:o("text-base font-semibold tracking-tight",g?"text-white":"text-[#171717]"),children:"Echo"}),s.jsx("p",{className:o("text-[10px] uppercase tracking-[0.22em]",g?"text-white/70":"text-[#171717]/60"),children:h})]})]}),s.jsx(r,{className:o("rounded-full bg-rose-600 px-4 text-sm font-semibold text-white shadow-[0_16px_34px_rgba(244,63,94,0.22)] hover:bg-rose-700 sm:px-5",d&&"hidden sm:inline-flex"),asChild:!0,children:s.jsxs(l,{to:"/community",children:[s.jsx(m,{className:"mr-2 h-4 w-4"}),"Community"]})})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[x&&s.jsx("div",{className:"hidden items-center gap-2 lg:flex",role:"group","aria-label":"Get the Echo browser extension",children:[{name:"Chrome",href:i,icon:"/landing/chrome-web-store-logo.webp"},{name:"Firefox",href:a,icon:"/landing/firefox-browser-logo.svg"}].map(e=>s.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer","aria-label":`Get Echo extension for ${e.name}`,className:o("inline-flex h-10 shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full px-3 text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-rose-500 focus-visible:ring-offset-2",g?"bg-white text-black hover:bg-white/90":"bg-[#171717] text-white hover:bg-[#171717]/90"),children:[s.jsx("img",{src:e.icon,alt:"",className:"h-5 w-5 shrink-0",decoding:"async"}),e.name]},e.name))}),s.jsx(r,{variant:"ghost",className:o("hidden rounded-full px-4 text-sm font-medium sm:inline-flex",g?"text-white hover:bg-white/10 hover:text-white":"text-[#171717] hover:bg-black/5 hover:text-[#171717]"),asChild:!0,children:s.jsx(l,{to:"/auth",children:"Log in"})}),s.jsx(r,{className:o("rounded-full bg-rose-600 px-4 text-sm font-semibold text-white shadow-[0_16px_34px_rgba(244,63,94,0.22)] hover:bg-rose-700 sm:px-5",d&&"px-3 text-xs sm:px-5 sm:text-sm"),asChild:!0,children:s.jsx(l,{to:"/auth?mode=signup",children:"Create your feed"})})]})]})})}export{c as PublicNavbar};
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.