PageSourceSearch

https://www.truvis.ai/assets/Insights-DhkR5t-3.js

js truvis.ai collected 2026-10-05 13:57:56 UTC 8,695 bytes, 1 lines download raw bytes

1import{r as a,e as C,j as e,m as n,b as k}from"./index-XjcTDRdy.js";import{S as f}from"./search-CYAM-BsL.js";import{C as S}from"./clock-DTIEQP29.js";import{C as A}from"./chevron-right-Jw98VWzi.js";import{C as I}from"./circle-check-big-D8qaYZxt.js";import{S as T}from"./share-2-BMdwP-86.js";function K({onBack:p,onOpenPost:i}){const[s,c]=a.useState(""),[o,d]=a.useState("All"),[g,x]=a.useState(null),b=["All","AI & Trust","Enterprise Data","Governance"],[j,u]=a.useState([]),[w,v]=a.useState(!0);a.useEffect(()=>{let t=!1;return C().then(l=>{t||u(l)}).catch(()=>{t||u([])}).finally(()=>{t||v(!1)}),()=>{t=!0}},[]);const m=t=>{if(!t.href)return;if(t.external){window.open(t.href,"_blank","noopener,noreferrer");return}const l=t.slug;l&&i?i(l):window.location.href=t.href},N=t=>t?t.startsWith("http")?t:window.location.origin+t:window.location.href,h=j.filter(t=>{const l=t.title.toLowerCase().includes(s.toLowerCase())||t.excerpt.toLowerCase().includes(s.toLowerCase())||(t.author.name??"").toLowerCase().includes(s.toLowerCase()),r=o==="All"||t.category===o;return l&&r}),y=(t,l,r)=>{t.stopPropagation(),navigator.clipboard.writeText(l),x(r),setTimeout(()=>{x(null)},2e3)};return e.jsxs("div",{className:"bg-white min-h-screen relative overflow-hidden flex flex-col",children:[e.jsxs("div",{className:"absolute inset-0 -z-10 bg-gradient-to-b from-neutral-50/70 via-white to-neutral-50/50 overflow-hidden",children:[e.jsx(n.div,{animate:{x:[0,15,-15,0],y:[0,-20,20,0],opacity:[.12,.18,.1,.12]},transition:{duration:18,repeat:1/0,ease:"easeInOut"},className:"absolute -top-12 right-20 w-[450px] h-[450px] rounded-full bg-gradient-to-br from-blue-200/20 to-purple-100/10 blur-[90px] pointer-events-none"}),e.jsx(n.div,{animate:{x:[0,-25,20,0],y:[0,30,-30,0],opacity:[.08,.15,.08,.08]},transition:{duration:22,repeat:1/0,ease:"easeInOut"},className:"absolute bottom-20 left-10 w-[500px] h-[500px] rounded-full bg-gradient-to-tr from-emerald-100/15 to-amber-100/10 blur-[100px] pointer-events-none"}),e.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,#80808007_1px,transparent_1px),linear-gradient(to_bottom,#80808007_1px,transparent_1px)] bg-[size:14px_24px] pointer-events-none"})]}),e.jsx("div",{className:"mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8 pt-6 pb-12 md:pt-8 md:pb-16 flex-1 flex flex-col",children:e.jsxs(n.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.3},className:"flex-1 flex flex-col",children:[e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs(n.button,{onClick:p,className:"group mb-4 inline-flex items-center gap-2 text-xs font-semibold text-neutral-500 hover:text-neutral-900 transition-colors cursor-pointer focus:outline-none h-11",children:[e.jsx(k,{className:"h-4 w-4 transition-transform group-hover:-translate-x-0.5"}),e.jsx("span",{children:"Back to Home"})]}),e.jsxs("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight text-neutral-900 leading-tight mb-5",children:["Founders'"," ",e.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-[#0C25A3] to-[#51419E]",children:"Insights."})]}),e.jsx("p",{className:"text-lg md:text-xl text-neutral-500 font-medium leading-relaxed",children:"Explore insights from the TruFlow founders and product team on building trusted AI, governing enterprise data, and transforming compliance into continuous, evidence-backed intelligence."})]}),e.jsxs("div",{className:"mt-12 space-y-8 flex-1 flex flex-col",children:[e.jsx("div",{className:"py-2 space-y-4",children:e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"text-xs font-mono font-bold text-neutral-400 uppercase tracking-wider mr-2",children:"Topic:"}),b.map(t=>e.jsx("button",{onClick:()=>d(t),className:`text-[10px] font-semibold uppercase tracking-wider px-3 py-1.5 rounded-full border transition-all cursor-pointer h-8 flex items-center ${o===t?"bg-neutral-900 border-neutral-900 text-white shadow-sm":"bg-white border-neutral-200 text-neutral-500 hover:text-neutral-900 hover:border-neutral-300"}`,children:t},t))]}),e.jsxs("div",{className:"relative flex-1 max-w-md w-full ml-auto",children:[e.jsx(f,{className:"absolute left-3.5 to
1p-1/2 -translate-y-1/2 h-4 w-4 text-neutral-400"}),e.jsx("input",{type:"text",value:s,onChange:t=>c(t.target.value),placeholder:"Search articles by title, content, or author...",className:"w-full bg-neutral-50/40 border border-neutral-200 rounded-xl pl-10 pr-4 py-3 text-xs font-medium text-neutral-900 placeholder-neutral-400 focus:outline-none focus:border-indigo-500 focus:bg-white transition-all h-10"})]})]})}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:h.map(t=>{const l=g===(t.slug??t.title);return e.jsxs(n.div,{layout:!0,onClick:()=>m(t),className:"bg-white border rounded-2xl p-6 shadow-sm flex flex-col justify-between transition-all duration-300 relative overflow-hidden group hover:shadow-md border-neutral-200/80 cursor-pointer text-left",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between gap-2 mb-4",children:[e.jsx("span",{className:"inline-flex items-center rounded-full bg-neutral-50 border border-neutral-200/60 px-2.5 py-0.5 text-[9px] font-bold uppercase tracking-wider text-neutral-600",children:t.category}),e.jsxs("span",{className:"text-[10px] font-mono font-medium text-neutral-400 flex items-center gap-1",children:[e.jsx(S,{className:"h-3 w-3"}),t.readTime]})]}),e.jsxs("div",{className:"flex items-center gap-2.5 mb-4 select-none",children:[e.jsx("div",{className:"h-8 w-8 rounded-full overflow-hidden border border-neutral-200/80 bg-neutral-50 shrink-0",children:e.jsx("img",{src:t.author.avatar??"/logo.png",alt:t.author.name??"TruVis",onError:r=>{r.currentTarget.src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?auto=format&fit=crop&w=80&q=80"},className:"h-full w-full object-cover",referrerPolicy:"no-referrer"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-[11px] font-bold text-neutral-800 leading-none",children:t.author.name}),e.jsx("span",{className:"text-[9px] text-neutral-400 font-semibold uppercase tracking-wider leading-none mt-0.5 block",children:t.author.role})]})]}),e.jsx("h3",{className:"text-base font-bold text-neutral-900 tracking-tight leading-snug mb-3 group-hover:text-indigo-600 transition-colors",children:t.title}),e.jsx("p",{className:"text-xs font-medium text-neutral-500 leading-relaxed mb-6",children:t.excerpt})]}),e.jsxs("div",{className:"mt-auto pt-4 border-t border-neutral-100 flex items-center gap-2",children:[e.jsxs("a",{href:t.href??void 0,target:t.external?"_blank":void 0,rel:"noopener noreferrer",onClick:r=>{r.stopPropagation(),!(r.metaKey||r.ctrlKey||r.shiftKey||r.button!==0)&&(t.external||(r.preventDefault(),m(t)))},className:"flex-1 flex h-10 items-center justify-center gap-1.5 rounded-xl text-xs font-semibold bg-[#0C25A3] hover:bg-[#091C7A] text-white transition-all cursor-pointer select-none",children:[e.jsx("span",{children:"Read Full Article"}),e.jsx(A,{className:"h-3.5 w-3.5 shrink-0"})]}),e.jsx("button",{onClick:r=>y(r,N(t.href),t.slug??t.title),className:"h-10 w-10 border border-neutral-200 rounded-xl flex items-center justify-center hover:bg-neutral-50 hover:border-neutral-300 transition-all text-neutral-400 hover:text-neutral-700 cursor-pointer focus:outline-none",title:"Copy Link to Clipboard",children:l?e.jsx(I,{className:"h-4 w-4 text-emerald-500 shrink-0"}):e.jsx(T,{className:"h-4 w-4 shrink-0"})})]})]},t.slug??t.title)})}),!w&&h.length===0&&e.jsxs("div",{className:"col-span-full bg-neutral-50/60 border border-neutral-150 rounded-2xl py-12 px-6 text-center space-y-4",children:[e.jsx("div",{className:"mx-auto h-12 w-12 rounded-full bg-neutral-100 flex items-center justify-center text-neutral-400",children:e.jsx(f,{className:"h-6 w-6"})}),e.jsxs("div",{className:"space-y-1 max-w-md mx-auto",children:[e.jsx("h4",{className:"text-sm font-bold text-neutral-900",children:"No Insights Found"}),e.jsx("p",{className:"text-xs font-medium text-neutral-500 leading-relaxed",children:"We couldn't find any articles matching your search query or topic filter. Clear search parameters to view all founder articles."})]}),e.jsx("div",{className:"pt-2",children:e.jsx("button",{onClick:()=>{c(""),d("All")},className:"inline-flex items-center gap-1.5 text-xs font-bold text-[#0C25A3] hover:text-[#02447e] transition-all cursor-pointer h-9 px-4 roun
1ded-lg bg-blue-50/50 hover:bg-blue-50 border border-blue-100",children:"Reset Search Filters"})})]})]})]})})]})}export{K as default};

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.