1import{d,j as e,P as n,L as r,s as o}from"./index-408BZkP3.js";import{C as l}from"./chevron-left-BTF4FHev.js";const m=()=>{const{data:a,isLoading:t}=d({queryKey:["dameklub-news"],queryFn:async()=>{const{data:s}=await o.from("dameklub_news").select("*").eq("status","published").order("publish_date",{ascending:!1});return s||[]}});return e.jsxs(n,{children:[e.jsx("section",{className:"topbar-gradient py-10 md:py-16",children:e.jsxs("div",{className:"container",children:[e.jsxs(r,{to:"/dameklubben",className:"inline-flex items-center gap-1 text-topbar-foreground/70 hover:text-topbar-foreground text-sm mb-3 transition-colors",children:[e.jsx(l,{className:"w-4 h-4"})," Dameklubben"]}),e.jsx("h1",{className:"font-heading text-3xl md:text-5xl text-topbar-foreground tracking-wide",children:"Nyheder"})]})}),e.jsx("section",{className:"container py-10 md:py-14",children:t?e.jsx("div",{className:"animate-pulse text-muted-foreground",children:"Indlæser..."}):a&&a.length>0?e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(s=>e.jsxs(r,{to:`/dameklubben/nyheder/${s.slug}`,className:"bg-card border border-border rounded-lg overflow-hidden hover:shadow-xl hover:border-primary/30 transition-all group",children:[s.featured_image&&e.jsx("img",{loading:"lazy",decoding:"async",src:s.featured_image,alt:s.title,className:"w-full h-48 object-cover"}),e.jsxs("div",{className:"p-5",children:[e.jsx("h2",{className:"font-heading text-base text-foreground group-hover:text-primary transition-colors mb-2",children:s.title}),s.excerpt&&e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-3",children:s.excerpt}),s.publish_date&&e.jsx("p",{className:"text-xs text-muted-foreground mt-3",children:new Date(s.publish_date).toLocaleDateString("da-DK")})]})]},s.id))}):e.jsx("p",{className:"text-muted-foreground",children:"Der er ingen nyheder endnu."})})]})};export{m 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.