PageSourceSearch

https://www.smartlinks.app/assets/edge-Cl9eXs1W.js

js smartlinks.app collected 2026-09-30 06:30:26 UTC 11,819 bytes, 1 lines download raw bytes

1import{d as k,e as S,r as l,j as e,c as g,L as p}from"./index-Gw1vDBr1.js";import{u as R}from"./useServerFn-CRqGpUag.js";import{R as L}from"./RelatedLinks--QtyD4zV.js";import{S as y}from"./sparkles-CasMR0zY.js";import{S as T,L as j}from"./search-DG3YWQJd.js";const E=k({method:"POST"}).handler(S("876790e271565306b421d63657255492d5cc8d7a556b6e0f58fe4a856f41d057"));function I(){const t=R(E),[a,r]=l.useState(""),[s,n]=l.useState(null),[o,b]=l.useState(!1),[d,c]=l.useState(null),[m,x]=l.useState(null),[N,u]=l.useState(null);async function w(v){v.preventDefault();const h=a.trim();if(!(h.length<2)){b(!0),c(null),x(null),u(null),n(h);try{const i=await t({data:{company:h}});i.error||!i.report?c(i.error??"Something went wrong."):(x(i.report),u(i.sourceUrl))}catch(i){console.error(i),c("Something went wrong. Try again.")}finally{b(!1)}}}function f(){x(null),c(null),n(null),u(null)}return e.jsxs("main",{className:"bg-[#f7f6f2]",children:[e.jsx(z,{company:a,setCompany:r,onSubmit:w,loading:o,hasResult:!!m||!!d}),o&&e.jsx(C,{company:s??""}),d&&!o&&e.jsx("section",{className:"container mx-auto px-6 py-12",children:e.jsxs("div",{className:"mx-auto max-w-2xl rounded-2xl border border-rose-200 bg-rose-50 p-6 text-rose-900",children:[e.jsx("p",{className:"font-medium",children:"We couldn't generate your Edge report."}),e.jsx("p",{className:"mt-2 text-sm text-rose-800",children:d}),e.jsx("button",{type:"button",onClick:f,className:"mt-4 inline-flex h-9 items-center rounded-md border border-rose-300 bg-white px-3 text-sm font-medium text-rose-900 hover:bg-rose-100",children:"Try again"})]})}),m&&!o&&e.jsx(F,{report:m,sourceUrl:N,onReset:f}),!m&&!o&&!d&&e.jsx(W,{})]})}function z({company:t,setCompany:a,onSubmit:r,loading:s,hasResult:n}){return e.jsxs("section",{className:"relative overflow-hidden border-b border-stone-200",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-stone-950 via-stone-900 to-indigo-950"}),e.jsx("div",{className:"absolute inset-0 opacity-30 [background:radial-gradient(60%_50%_at_50%_0%,#6366f1_0%,transparent_60%)]"}),e.jsx("div",{className:"relative container mx-auto px-6 py-20 lg:py-28",children:e.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-white/15 bg-white/5 px-3 py-1 text-[12px] font-medium uppercase tracking-[0.08em] text-white/70 backdrop-blur",children:[e.jsx(y,{className:"size-3.5"}),"The SmartLinks Edge"]}),e.jsxs("h1",{className:"mt-6 font-serif text-4xl italic leading-[1.05] text-white sm:text-5xl lg:text-6xl",children:["See what SmartLinks would do for"," ",e.jsx("span",{className:"bg-gradient-to-r from-indigo-300 via-violet-300 to-amber-200 bg-clip-text text-transparent",children:"your brand"}),"."]}),e.jsx("p",{className:"mx-auto mt-6 max-w-2xl text-base text-white/70 sm:text-lg",children:"Drop in your company name or website. In under a minute, we'll read your business and show you exactly where connected products give you the edge — and where the category is already moving."}),e.jsxs("form",{onSubmit:r,className:"mx-auto mt-10 max-w-xl",children:[e.jsxs("div",{className:"flex flex-col gap-3 rounded-2xl border border-white/15 bg-white/5 p-2 backdrop-blur sm:flex-row sm:items-center sm:gap-2",children:[e.jsxs("div",{className:"flex flex-1 items-center gap-3 px-3",children:[e.jsx(T,{className:"size-4 shrink-0 text-white/50"}),e.jsx("input",{type:"text",value:t,onChange:o=>a(o.target.value),placeholder:"e.g. acmewines.com or Acme Wine Co.",className:"w-full bg-transparent py-3 text-base text-white placeholder:text-white/40 focus:outline-none",disabled:s,autoFocus:!0})]}),e.jsx("button",{type:"submit",disabled:s||t.trim().length<2,className:"inline-flex h-12 items-center justify-center gap-2 rounded-xl bg-white px-5 text-sm font-semibold text-stone-900 transition-colors hover:bg-amber-100 disabled:cursor-not-allowed disabled:opacity-60",children:s?e.jsxs(e.Fragment,{children:[e.jsx(j,{className:"size-4 animate-spin"}),"Reading…"]}):e.jsxs(e.Fragment,{children:[n?"Run again":"Get my edge",e.jsx(g,{className:"size-4"})]})})]}),e.jsx("p",{className:"mt-3 text-xs text-white/70",children:"We'll fetch your homepage and surface the moves that matter. Nothing's stored."})]})]})})]})}function C({company:t}){const a=["Reading your homepage","Mapping your category","Spotting the gaps","Building your edge"];return e.jsx("section",{className:"container mx-auto px-6 py-16",children:e.jsxs("div",{className:"mx-auto max-w-2xl text-center",children:[e.jsx(j,{className:"mx-auto 
1size-8 animate-spin text-brand"}),e.jsxs("h2",{className:"mt-6 font-serif text-2xl italic text-stone-900",children:["Researching ",t,"…"]}),e.jsx("p",{className:"mt-2 text-sm text-stone-600",children:"This takes about 20–40 seconds. Hold tight."}),e.jsx("ul",{className:"mx-auto mt-8 grid max-w-md gap-2 text-left text-sm text-stone-600",children:a.map((r,s)=>e.jsxs("li",{className:"flex items-center gap-3 rounded-lg border border-stone-200 bg-white px-4 py-3",style:{animation:`pulse 1.8s ease-in-out ${s*.25}s infinite`},children:[e.jsx("span",{className:"inline-flex size-6 items-center justify-center rounded-full bg-brand-soft text-[12px] font-semibold text-brand",children:s+1}),r]},r))})]})})}function F({report:t,sourceUrl:a,onReset:r}){return e.jsx("section",{className:"container mx-auto px-6 py-16",children:e.jsxs("div",{className:"mx-auto max-w-3xl",children:[e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-stone-200 bg-white px-3 py-1 text-[12px] font-medium uppercase tracking-[0.08em] text-stone-600",children:[e.jsx(y,{className:"size-3.5 text-brand"}),"Edge report"]}),e.jsx("button",{type:"button",onClick:r,className:"text-xs font-medium text-stone-600 underline-offset-2 hover:text-stone-900 hover:underline",children:"Try another company"})]}),e.jsx("h2",{className:"mt-6 font-serif text-4xl italic leading-tight text-stone-900 sm:text-5xl",children:t.companyName}),e.jsx("p",{className:"mt-4 text-lg leading-relaxed text-stone-700",children:t.companySummary}),a&&e.jsxs("p",{className:"mt-2 text-xs text-stone-600",children:["Read from"," ",e.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 hover:underline",children:new URL(a).hostname})]}),e.jsxs("div",{className:"mt-12 rounded-2xl border border-stone-900/10 bg-stone-900 p-8 text-stone-100 shadow-xl",children:[e.jsx("p",{className:"text-[12px] font-semibold uppercase tracking-[0.08em] text-amber-200/80",children:"Where the category is moving"}),e.jsx("p",{className:"mt-3 text-lg leading-relaxed text-stone-100",children:t.industryEdge})]}),e.jsxs("div",{className:"mt-14",children:[e.jsx("p",{className:"text-[12px] font-semibold uppercase tracking-[0.08em] text-stone-600",children:"Your edge"}),e.jsxs("h3",{className:"mt-2 font-serif text-3xl italic text-stone-900",children:[t.edges.length," ways SmartLinks puts you ahead"]}),e.jsx("ol",{className:"mt-8 space-y-6",children:t.edges.map((s,n)=>e.jsxs("li",{className:"flex gap-5 rounded-2xl border border-stone-200 bg-white p-6 shadow-sm transition-shadow hover:shadow-md",children:[e.jsx("div",{className:"flex size-10 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-indigo-500 to-violet-600 text-sm font-bold text-white",children:n+1}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h4",{className:"text-lg font-semibold text-stone-900",children:s.headline}),e.jsx("p",{className:"mt-2 text-stone-700",children:s.body})]})]},n))})]}),e.jsxs("div",{className:"mt-14",children:[e.jsx("p",{className:"text-[12px] font-semibold uppercase tracking-[0.08em] text-stone-600",children:"What this looks like"}),e.jsx("h3",{className:"mt-2 font-serif text-3xl italic text-stone-900",children:"SmartLinks solutions built for you"}),e.jsx("div",{className:"mt-6 grid gap-3 sm:grid-cols-2",children:t.recommendedSolutions.map(s=>e.jsxs(p,{to:s.slug,className:"group flex flex-col justify-between rounded-2xl border border-stone-200 bg-white p-5 transition-colors hover:border-brand hover:bg-brand-soft",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-semibold text-stone-900 group-hover:text-brand",children:s.title}),e.jsx("p",{className:"mt-2 text-sm text-stone-600",children:s.why})]}),e.jsxs("div",{className:"mt-4 inline-flex items-center gap-1 text-xs font-medium text-brand",children:["Explore ",e.jsx(g,{className:"size-3.5"})]})]},s.slug))})]}),e.jsxs("div",{className:"mt-16 rounded-3xl border border-stone-200 bg-gradient-to-br from-amber-50 via-rose-50 to-indigo-50 p-8 text-center sm:p-12",children:[e.jsx("h3",{className:"font-serif text-3xl italic text-stone-900 sm:text-4xl",children:"Your next move"}),e.jsx("p",{className:"mx-auto mt-4 max-w-xl text-stone-700",children:t.closingMove}),e.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:[e.jsxs(p,{to:"/contact",className:"inline-flex h-11 items-center gap-2 rounded-md bg-stone-900 px-5 text-sm font-semibold text-white transition-colors hover:bg-stone-700",children:["Book a walkthrough ",e.jsx(g,{className:"size-4"})]}),e.jsx(p,{to:"/solutions",className:"inline-flex h-11 items-center rounded-md border border-stone-300 bg-white px-5 text-sm font-semibold text-stone-900 transition-colors hover:border-stone-400",children:"Browse all solutions"})]}),e.jsx("p",{className:"mt-6 text-[12px] text-stone-600",children:"This report is generated by AI from public information. Treat it as a sharp starting point, not a contract."})]})]})})}function W(){return e.jsxs(e.Fragment,{children:[e.jsx("section",{className:"container mx-auto px-6 py-20",children:e.jsx("div",{className:"mx-auto grid max-w-4xl gap-8 sm:grid-cols-3",children:[{title:"Built on your business",body:"We read your homepage — your products, your customers, your category — so the report speaks your language, not ours."},{title:"Grounded in real solutions",body:"Every recommendation links back to a SmartLinks solution we actually build. No hallucinated promises."},{title:"Ready to act on",body:"Take the report into a walkthrough, or turn it into a full proposal. No deck-building required."}].map(t=>e.jsxs("div",{className:"rounded-2xl border border-stone-200 bg-white p-6",children:[e.jsx("div",{className:"text-sm font-semibold text-stone-900",children:t.title}),e.jsx("p",{className:"mt-2 text-sm leading-relaxed text-stone-600",children:t.body})]},t.title))})}),e.jsx(L,{tone:"stone",heading:"Where SmartLinks shows up at the edge.",intro:"The edge isn't a single thing. Here's how SmartLinks fits the physical surfaces of your business.",links:[{to:"/retail-shelf-edge",eyebrow:"Retail",title:"Retail shelf edge",body:"Shelf-edge tags, promotions and analytics for retail teams and CPG brands.",icon:"fa-store"},{to:"/asset-operations",eyebrow:"Industrial",title:"Asset operations",body:"QR and NFC tags on industrial assets — manuals, history, parts, work orders.",icon:"fa-screwdriver-wrench"},{to:"/hub",eyebrow:"Platform",title:"SmartLinks Hub",body:"The connected-identity platform behind every edge surface and tag.",icon:"fa-layer-group"},{to:"/gs1-digital-link",eyebrow:"Standards",title:"GS1 Digital Link",body:"The identifier standard that makes the edge a resolvable URL, not just a barcode.",icon:"fa-barcode"},{to:"/solutions",eyebrow:"Industries",title:"Solutions by category",body:"How edge plays out by product type — food, apparel, beauty, industrial and more.",icon:"fa-grid-2"}
1,{to:"/personas",eyebrow:"Audiences",title:"Who reads the edge",body:"Customers, technicians, retailers — each meets the same record through a different tag.",icon:"fa-users"}]})]})}export{I as component};

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.