1import{j as e,a as d}from"./query-B0f0997C.js";import{i as v,H as N}from"./index-CMcXCNXM.js";import{g as w,a as C,b as P,c as S,d as E,p as A,B as M}from"./BlogGrid-BDjbHPE6.js";import"./react-vendor-sxpV3IEI.js";import"./radix-ui-C4BRaaeA.js";function k({title:n="Blog",subtitle:s="Thoughts, stories, and ideas",variant:c="default",backgroundImage:i}){return c==="minimal"?e.jsx("div",{className:"border-b border-border bg-background",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-8",children:[e.jsx("h1",{className:"text-3xl font-bold text-foreground",children:n}),s&&e.jsx("p",{className:"text-muted-foreground mt-2",children:s})]})}):c==="centered"?e.jsxs("div",{className:"relative bg-background border-b border-border",children:[i&&e.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:`url(${i})`,backgroundSize:"cover",backgroundPosition:"center"}}),e.jsxs("div",{className:"relative max-w-4xl mx-auto px-4 py-24 text-center",children:[e.jsx("h1",{className:"text-5xl md:text-6xl font-bold text-foreground mb-6",children:n}),s&&e.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:s})]})]}):e.jsxs("div",{className:"relative bg-gradient-to-br from-primary/5 to-accent/5 border-b border-border overflow-hidden",children:[i&&e.jsx("div",{className:"absolute inset-0 opacity-5",style:{backgroundImage:`url(${i})`,backgroundSize:"cover",backgroundPosition:"center"}}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 py-20 md:py-28",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsx("h1",{className:"text-4xl md:text-6xl font-bold text-foreground mb-6 leading-tight",children:n}),s&&e.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground leading-relaxed",children:s})]})}),e.jsx("div",{className:"absolute top-0 right-0 -mt-12 -mr-12 w-64 h-64 bg-primary/10 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 left-0 -mb-12 -ml-12 w-96 h-96 bg-accent/10 rounded-full blur-3xl"})]})}function _(){const[n,s]=v(),[c,i]=d.useState([]),[p,u]=d.useState([]),[x,h]=d.useState([]),r=n.get("category"),o=n.get("tag"),b=parseInt(n.get("page")||"1",10);d.useEffect(()=>{let t;r?t=w(r):o?t=C(o):t=P(),i(t),u(S()),h(E())},[r,o]);const{posts:f,pagination:a}=A(c,b,9),g=()=>s({}),y=t=>s({category:t}),j=t=>s({tag:t}),m=t=>{const l={page:t.toString()};r&&(l.category=r),o&&(l.tag=o),s(l)};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsxs(N,{children:[e.jsx("title",{children:"Educator Insights Blog | M-SCEA Memphis"}),e.jsx("meta",{name:"description",content:"Advocacy updates, professional development tips, contract news, and stories from Memphis-Shelby County educators. Published by M-SCEA."}),e.jsx("link",{rel:"canonical",href:"https://mscea.org/blog"}),e.jsx("meta",{property:"og:title",content:"Educator Insights Blog | M-SCEA Memphis"}),e.jsx("meta",{property:"og:description",content:"Advocacy updates, professional development tips, contract news, and stories from Memphis-Shelby County educators."}),e.jsx("meta",{property:"og:url",content:"https://mscea.org/blog"}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:image",content:"https://mscea.org/assets/www.mscea.org%20(2).png"}),e.jsx("meta",{property:"og:image:width",content:"1200"}),e.jsx("meta",{property:"og:image:height",content:"630"}),e.jsx("meta",{property:"og:site_name",content:"M-SCEA"}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:"Educator Insights Blog | M-SCEA Memphis"}),e.jsx("meta",{name:"twitter:description",content:"Advocacy updates, professional development tips, contract news, and stories from Memphis-Shelby County educators."}),e.jsx("meta",{name:"twitter:image",content:"https://mscea.org/assets/www.mscea.org%20(2).png"}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Blog",name:"Educator Insights â M-SCEA",description:"Advocacy updates, professional development tips, contract news, and stories from Memphis-Shelby County educators.",url:"https://mscea.org/blog",publisher:{"@type":"Organization",name:"Memphis-Shelby County Education Association",url:"https://mscea.org"}})})]}),e.jsx("h1",{className:"sr-only",children:"Educator Insights â M-SCEA Blog"}),e.jsx(k,{title:"Educator Insights",subtitle:"Advocacy updates, professional development tips, contract news, and stories from Memphis-Shelby County educators",variant:"default"}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-12",children:[e.jsxs("div",{className:"mb-8 flex flex-wrap items-center gap-4",children:[(r||o)&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"Filters:"}),r&&e.jsxs("span",{className:"inline-flex items-center gap-2 px-3 py-1.5 bg-primary text-primary-foreground rounded-full text-sm font-medium",children:["Category: ",r,e.jsx("button",{onClick:g,className:"hover:opacity-80 transition-opacity","aria-label":"Clear filter",children:"Ã"})]}),o&&e.jsxs("span",{className:"inline-flex items-center gap-2 px-3 py-1.5 bg-primary text-primary-foreground rounded-full text-sm font-medium",children:["Tag: ",o,e.jsx("button",{onClick:g,className:"hover:opacity-80 transition-opacity","aria-label":"Clear filter",children:"Ã"})]})]}),p.length>0&&!r&&e.jsx("div",{className:"relative",children:e.jsxs("select",{className:"px-4 py-2 bg-card border border-border rounded-lg text-foreground text-sm font-medium hover:border-primary transition-colors cursor-pointer",onChange:t=>y(t.target.value),value:"",children:[e.jsx("option",{value:"",children:"Filter by category"}),p.map(t=>e.jsx("option",{value:t,children:t},t))]})}),x.length>0&&!o&&e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("span",{className:"text-sm text-muted-foreground self-center",children:"Tags:"}),x.slice(0,5).map(t=>e.jsxs("button",{onClick:()=>j(t),className:"px-3 py-1.5 text-xs font-medium bg-accent text-accent-foreground rounded-full hover:bg-accent/80 transition-colors",children:["#",t]},t))]})]}),e.jsx("div",{className:"mb-6",children:e.jsxs("p",{className:"text-sm text-muted-foreground",children:[a.totalPosts," ",a.totalPosts===1?"post":"posts",r&&` in ${r}`,o&&` tagged with ${o}`]})}),e.jsx(M,{posts:f,variant:"default",columns:3}),a.totalPages>1&&e.jsxs("div",{className:"mt-12 flex justify-center items-center gap-2",children:[e.jsx("button",{onClick:()=>m(a.currentPage-1),disabled:!a.hasPreviousPage,className:"px-4 py-2 bg-card border border-border rounded-lg text-foreground font-medium hover:border-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Previous"}),e.jsx("div",{className:"flex gap-2",children:Array.from({length:a.totalPages},(t,l)=>l+1).map(t=>e.jsx("button",{onClick:()=>m(t),className:`w-10 h-10 rounded-lg font-medium transition-colors ${t===a.currentPage?"bg-primary text-primary-foreground":"bg-card border border-border text-foreground hover:border-primary"}`,children:t},t))}),e.jsx("button",{onClick:()=>m(a.currentPage+1),disabled:!a.hasNextPage,className:"px-4 py-2 bg-card border border-border rounded-lg text-foreground font-medium hover:border-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Next"})]})]})]})}export{_ 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.