1import{j as e,r as t,s as p}from"./index-Cm8tpdlj.js";import{C as i}from"./Container-DeYjqjXS.js";import{P as d}from"./ProjectCard-ClgxlBXF.js";import{a as j}from"./index-C-rT9sI3.js";import"./use-in-view-B5g15Qfm.js";function r({children:l}){return e.jsx("div",{className:`${l} min-w-[350px]`,children:e.jsxs("div",{className:"space-y-5 h-[330px] rounded-2xl shadow-xl bg-[#ffffff] p-4",children:[e.jsx("div",{className:"h-36 rounded-lg bg-gray-100"}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"h-6 w-2/5 rounded-lg bg-gray-100"}),e.jsx("div",{className:"h-3 w-4/5 rounded-lg bg-gray-100"}),e.jsx("div",{className:"h-3 w-4/5 rounded-lg bg-gray-100"})]})]})})}function b(){const[l,c]=t.useState(null),[o,x]=t.useState(""),[a,f]=t.useState([]);t.useEffect(()=>{p.getPosts([]).then(s=>{s&&c(s.documents)})},[]);const u=s=>{const n=s.target.value;x(n);const m=l.filter(h=>h.title.toLowerCase().includes(n.toLowerCase()));f(m)};return e.jsxs("div",{className:"w-full py-8 flex flex-col items-center",children:[e.jsx("h1",{className:"text-3xl text-pretty mt-20 lg:hidden font-satisfy",children:"Explore"}),e.jsxs("div",{className:"flex items-center rounded-lg justify-center gap-3 focus:outline-offset-1 outline outline-[2px] outline-violet-300 border-indigo-500 border-[3px] focus:shadow-xl transition-all hover:shadow-lg py-0 px-2 my-20",children:[e.jsx(j,{})," ",e.jsx("input",{onChange:u,value:o,type:"text",placeholder:"search",className:"w-80 py-2 border-none outline-none transition-all border rounded-lg "})]}),a.length===0?e.jsx(i,{children:e.jsx("div",{className:"flex flex-wrap justify-center",children:l!==null?l.map(s=>e.jsx("div",{className:" m-4 p-2 w-4/2 lg:w-1/4",children:e.jsx(d,{...s})},s.$id)):e.jsxs("div",{className:"flex w-full flex-wrap gap-9 justify-center ",children:[e.jsx(r,{children:"w-[350px]"}),e.jsx(r,{children:"w-[350px]"}),e.jsx(r,{children:"w-[350px]"})]})})}):e.jsx(i,{children:e.jsx("div",{className:"flex flex-wrap justify-center",children:a.map(s=>e.jsx("div",{className:" m-4 p-2 w-4/2 lg:w-1/4",children:e.jsx(d,{...s})},s.$id))})})]})}export{b 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.