PageSourceSearch

https://ccddelaware.com/assets/Blog-B9lcRbEJ.js

js ccddelaware.com collected 2026-10-09 21:58:22 UTC 13,787 bytes, 1 lines download raw bytes

1import{u as S,r as n,t as L,j as e,S as F,p as d,N as P,l as h,d as N,g as z,o as v,L as E,x as R,I,F as M}from"./index-DnETfeXS.js";import{C as y}from"./calendar-GXsi01Yr.js";const T="https://d2xsxph8kpxj0f.cloudfront.net/310519663095347379/doxAhW8SuzrDFUfWqd7xv8/hero-abstract-LUzoXTz4wxFCycQCWkzz65.webp",D=["All","Parenting","Wellness","Mental Health","Child Development","Child Therapy","Teen Mental Health","School Support","Team Spotlight"];function H(){const{t:a}=S(),[l,g]=n.useState(1),[c,u]=n.useState("All"),[r,A]=n.useState("en"),b=12,{data:f,isLoading:j}=L.blog.list.useQuery({page:l,limit:b,language:r}),o=f?.posts??[],C=f?.total??0,i=Math.ceil(C/b),s=l===1&&o.length>0?o[0]:null,x=l===1?o.slice(1):o,B=n.useMemo(()=>c==="All"?x:x.filter(t=>t.category?.toLowerCase()===c.toLowerCase()),[x,c]),w=t=>new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),k=t=>{u(t)},p=t=>{A(t),g(1)};return e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:68",className:"min-h-screen flex flex-col bg-[#FDF8F4]",children:[e.jsx(F,{"data-loc":"client/src/pages/Blog.tsx:69",title:d.blog.title,description:d.blog.description,keywords:d.blog.keywords,path:d.blog.path}),e.jsx(P,{"data-loc":"client/src/pages/Blog.tsx:75"}),e.jsxs("main",{"data-loc":"client/src/pages/Blog.tsx:76",className:"flex-1",children:[e.jsxs("section",{"data-loc":"client/src/pages/Blog.tsx:80",className:"relative overflow-hidden bg-gradient-to-br from-[#2A5C5A] via-[#1c9cbc]/80 to-[#2A5C5A]",children:[e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:82",className:"absolute inset-0 opacity-15",style:{backgroundImage:`url(${T})`,backgroundSize:"cover",backgroundPosition:"center"}}),e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:92",className:"absolute -top-24 -left-24 w-80 h-80 bg-white/5 rounded-full blur-3xl"}),e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:93",className:"absolute -bottom-16 -right-16 w-72 h-72 bg-[#C4A882]/10 rounded-full blur-3xl"}),e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:94",className:"absolute top-1/3 right-1/4 w-48 h-48 bg-white/5 rounded-full blur-2xl"}),e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:95",className:"absolute bottom-1/4 left-1/3 w-36 h-36 bg-[#1c9cbc]/15 rounded-full blur-2xl"}),e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:98",className:"absolute top-8 right-12 opacity-10",children:e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:99",className:"grid grid-cols-4 gap-3",children:Array.from({length:16}).map((t,m)=>e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:101",className:"w-2 h-2 bg-white rounded-full"},m))})}),e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:105",className:"absolute bottom-12 left-8 opacity-10",children:e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:106",className:"grid grid-cols-3 gap-3",children:Array.from({length:9}).map((t,m)=>e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:108",className:"w-2 h-2 bg-[#C4A882] rounded-full"},m))})}),e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:113",className:"relative z-10 max-w-6xl mx-auto px-4 pt-16 pb-12 md:pt-20 md:pb-16",children:[e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:115",className:"text-center mb-10 md:mb-14",children:[e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:116",className:"inline-flex items-center gap-2 bg-white/10 backdrop-blur-sm text-white text-sm font-medium px-5 py-2 rounded-full mb-5 border border-white/10",children:[e.jsx(h,{"data-loc":"client/src/pages/Blog.tsx:117",className:"w-4 h-4"}),a("blog.badge","Resources & Insights")]}),e.jsx("h1",{"data-loc":"client/src/pages/Blog.tsx:120",className:"font-fraunces text-4xl md:text-5xl lg:text-6xl font-bold text-white mb-4",children:a("blog.title","Our Blog")}),e.jsx("p",{"data-loc":"client/src/pages/Blog.tsx:123",className:"text-lg md:text-xl text-white/75 max-w-2xl mx-auto leading-relaxed",children:a("blog.subtitle","Expert insights on child therapy, teen mental health, parenting strategies, and more.")})]}),s&&!j&&e.jsx(N,{"data-loc":"client/src/pages/Blog.tsx:130",href:`/blog/${s.slug}`,className:"group block",children:e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:134",className:"bg-white/10 backdrop-blur-md rounded-2xl overflow-hidden border border-white/15 hover:bg-white/15 transition-all duration-500 shadow-2xl",children:e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:135",className:"grid md:grid-cols-2 gap-0",children:[s.featuredImage&&e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:138",className:"aspect-[16/10] md:aspect-auto overflow-hidden",children:e.jsx("img",{"data-loc":"client/src/pages/Blog.tsx:139",src:s.featuredImage,alt:s.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700"})}),e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:148",className:"p-6 md:p-10 flex flex-col justify-center overflow-hidden",children:[e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:149",className:"flex items-center gap-3 mb-4",children:[e.jsxs("span",{"data-loc":"client/src/pages/Blog.tsx:150",className:"inline-flex items-center gap-1.5 bg-white/20 text-white text-xs font-semibold px-3 py-1 rounded-full uppercase tracking-wide",children:[e.jsx(z,{"data-loc":"client/src/pages/Blog.tsx:151",className:"w-3 h-3"}),"Latest"]}),s.category&&e.jsx("span",{"data-loc":"client/src/pages/Blog.tsx:155",className:"text-xs font-medium text-white/60 uppercase tracking-wide",children:s.category})]}),e.jsx("h2",{"data-loc":"client/src/pages/Blog.tsx:160",className:"font-fraunces text-2xl md:text-3xl font-bold text-white mb-4 group-hover:text-white/90 transition-colors leading-tight",children:s.title}),s.excerpt&&e.jsx("p",{"data-loc":"client/src/pages/Blog.tsx:164",className:"text-white/70 text-base mb-6 line-clamp-3 leading-relaxed",children:s.excerpt}),e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:168",className:"flex items-center justify-between",children:[e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:169",className:"flex items-center gap-2 text-white/50 text-sm",children:[e.jsx(y,{"data-loc":"client/src/pages/Blog.tsx:170",className:"w-4 h-4"}),e.jsx("span",{"data-loc":"client/src/pages/Blog.tsx:171",children:w(s.publishedAt)})]}),e.jsxs("span",{"data-loc":"client/src/pages/Blog.tsx:173",className:"flex items-center gap-2 text-white font-medium group-hover:gap-3 transition-all",children:["Read Article",e.jsx(v,{"data-loc":"client/src/pages/Blog.tsx:175",className:"w-5 h-5"})]})]})]})]})})})]}),e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:186",className:"absolute bottom-0 left-0 right-0",children:e.jsx("svg",{"data-loc":"client/src/pages/Blog.tsx:187",viewBox:"0 0 1440 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-full",preserveAspectRatio:"none",children:e.jsx("path",{"data-loc":"client/src/pages/Blog.tsx:188",d:"M0 60L48 55C96 50 192 40 288 35C384 30 480 30 576 33.3C672 36.7 768 43.3 864 45C960 46.7 1056 43.3 1152 38.3C1248 33.3 1344 26.7 1392 23.3L1440 20V60H1392C1344 60 1248 60 1152 60C1056 60 960 60 864 60C768 60 672 60 576 60C480 60 384 60 288 60C192 60 96 60 48 60H0Z",fill:"#FDF8F4"})})})]}),e.jsx("section",{"data-loc":"client/src/pages/Blog.tsx:196",className:"pt-8 pb-4 overflow-hidden",children:e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:197",className:"max-w-6xl mx-auto px-4",children:[e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:199",className:"flex justify-center mb-4",children:e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:200",className:"inline-flex rounded-full border border-gray-200 bg-white p-1 shadow-sm",children:[e.jsx("button",{"data-loc":"client/src/pages/Blog.tsx:201",onClick:()=>p("all"),className:`px-4 py-1.5 rounded-full text-sm font-medium transition-all ${r==="all"?"bg-[#2A5C5A] text-white shadow-sm":"text-gray-600 hover:text-[#2A5C5A]"}`,children:a("blog.allLanguages","All")}),e.jsx("button",{"data-loc":"client/src/pages/Blog.tsx:211",onClick:()=>p("en"),className:`px-4 py-1.5 rounded-full text-sm font-medium transition-all ${r==="en"?"bg-[#2A5C5A] text-white shadow-sm":"text-gray-600 hover:text-[#2A5C5A]"}`,children:"English"}),e.jsx("button",{"data-loc":"client/src/pages/Blog.tsx:221",onClick:()=>p("es"),className:`px-4 py-1.5 rounded-full text-sm font-medium transition-all ${r==="es"?"bg-[#2A5C5A] text-white shadow-sm":"text-gray-600 hover:text-[#2A5C5A]"}`,children:"Español"})]})}),e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:234",className:"flex flex-wrap gap-2 justify-center",children:D.map(t=>e.jsx("button",{"data-loc":"client/src/pages/Blog.tsx:236",onClick:()=>k(t),className:`px-4 py-2 rounded-full text-sm font-medium transition-all duration-300 border ${c===t?"bg-[#2A5C5A] text-white border-[#2A5C5A] shadow-md":"bg-white text-gray-600 border-gray-200 hover:border-[#2A5C5A]/40 hover:text-[#2A5C5A] hover:bg-[#2A5C5A]/5"}`,children:t},t))})]})}),e.jsx("section",{"data-loc":"client/src/pages/Blog.tsx:255",className:"py-10 md:py-14",children:e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:256",className:"max-w-6xl mx-auto px-4",children:j?e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:258",className:"flex justify-center items-center py-20",children:e.jsx(E,{"data-loc":"client/src/pages/Blog.tsx:259",className:"w-8 h-8 animate-spin text-[#2A5C5A]"})}
1):B.length===0&&c!=="All"?e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:262",className:"text-center py-16",children:[e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:263",className:"w-16 h-16 bg-[#2A5C5A]/10 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(h,{"data-loc":"client/src/pages/Blog.tsx:264",className:"w-8 h-8 text-[#2A5C5A]/50"})}),e.jsx("p",{"data-loc":"client/src/pages/Blog.tsx:266",className:"text-gray-500 text-lg mb-2",children:"No articles in this category yet."}),e.jsx("button",{"data-loc":"client/src/pages/Blog.tsx:267",onClick:()=>u("All"),className:"text-[#2A5C5A] font-medium hover:underline",children:"View all articles"})]}):o.length===0?e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:275",className:"text-center py-20",children:e.jsx("p",{"data-loc":"client/src/pages/Blog.tsx:276",className:"text-gray-500 text-lg",children:a("blog.noPosts","No articles yet. Check back soon!")})}):e.jsxs(e.Fragment,{children:[e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:280",className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:B.map(t=>e.jsxs(N,{"data-loc":"client/src/pages/Blog.tsx:282",href:`/blog/${t.slug}`,className:"group bg-white rounded-2xl shadow-sm hover:shadow-xl transition-all duration-300 overflow-hidden border border-gray-100 hover:-translate-y-1",children:[t.featuredImage?e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:289",className:"aspect-[16/10] overflow-hidden",children:e.jsx("img",{"data-loc":"client/src/pages/Blog.tsx:290",src:t.featuredImage,alt:t.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}):e.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:298",className:"aspect-[16/10] bg-gradient-to-br from-[#2A5C5A]/10 to-[#C4A882]/20 flex items-center justify-center",children:e.jsx(h,{"data-loc":"client/src/pages/Blog.tsx:299",className:"w-10 h-10 text-[#2A5C5A]/20"})}),e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:303",className:"p-6 overflow-hidden",children:[t.category&&e.jsx("span",{"data-loc":"client/src/pages/Blog.tsx:306",className:"inline-block text-xs font-semibold text-[#2A5C5A] bg-[#2A5C5A]/10 px-3 py-1 rounded-full mb-3 uppercase tracking-wide",children:t.category}),e.jsx("h2",{"data-loc":"client/src/pages/Blog.tsx:312",className:"font-fraunces text-lg font-bold text-gray-900 mb-2 group-hover:text-[#2A5C5A] transition-colors line-clamp-2",children:t.title}),t.excerpt&&e.jsx("p",{"data-loc":"client/src/pages/Blog.tsx:318",className:"text-gray-600 text-sm mb-4 line-clamp-3",children:t.excerpt}),e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:324",className:"flex items-center justify-between mt-auto pt-2",children:[e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:325",className:"flex items-center gap-1.5 text-gray-400 text-xs",children:[e.jsx(y,{"data-loc":"client/src/pages/Blog.tsx:326",className:"w-3.5 h-3.5"}),e.jsx("span",{"data-loc":"client/src/pages/Blog.tsx:327",children:w(t.publishedAt)})]}),e.jsxs("span",{"data-loc":"client/src/pages/Blog.tsx:329",className:"flex items-center gap-1 text-[#2A5C5A] text-sm font-medium group-hover:gap-2 transition-all",children:[a("blog.readMore","Read"),e.jsx(v,{"data-loc":"client/src/pages/Blog.tsx:331",className:"w-4 h-4"})]})]})]})]},t.id))}),i>1&&e.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:341",className:"flex justify-center items-center gap-4 mt-12",children:[e.jsxs("button",{"data-loc":"client/src/pages/Blog.tsx:342",onClick:()=>g(t=>Math.max(1,t-1)),disabled:l===1,className:"flex items-center gap-1 px-4 py-2 rounded-lg border border-gray-200 text-gray-600 hover:bg-gray-50 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[e.jsx(R,{"data-loc":"client/src/pages/Blog.tsx:347",className:"w-4 h-4"}),a("blog.prev","Previous")]}),e.jsx("span",{"data-loc":"client/src/pages/Blog.tsx:350",className:"text-sm text-gray-500",children:a("blog.pageOf","Page {{current}} of {{total}}",{current:l,total:i})}),e.jsxs("button",{"data-loc":"client/src/pages/Blog.tsx:353",onClick:()=>g(t=>Math.min(i,t+1)),disabled:l===i,className:"flex items-center gap-1 px-4 py-2 rounded-lg border border-gray-200 text-gray-600 hover:bg-gray-50 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[a("blog.next","Next"),e.jsx(I,{"data-loc":"client/src/pages/Blog.tsx:359",className:"w-4 h-4"})]})]})]})})})]}),e.jsx(M,{"data-loc":"client/src/pages/Blog.tsx:368"})]})}
1export{H 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.