1import{r as s,i as n,j as e,L as d,l as m,c,C as x,m as u,A as g}from"./index-BYkFCx3B.js";import{P as p}from"./PageHero-D8foT27q.js";function j(){const[r,i]=s.useState([]),[a,l]=s.useState(!0);return s.useEffect(()=>{n.from("news").select("*").eq("published",!0).order("date",{ascending:!1}).then(({data:t})=>{i(t??[]),l(!1)})},[]),e.jsxs(d,{children:[e.jsx(p,{eyebrow:"Co je nového",title:"Aktuality",subtitle:"Novinky, soutÄže, soustÅedÄnà a důležité termÃny â vÅ¡e na jednom mÃstÄ."}),e.jsx("section",{className:"py-20",children:e.jsxs("div",{className:"mx-auto max-w-7xl px-6 grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[a&&e.jsx("p",{className:"text-muted-foreground text-sm",children:"NaÄÃtámâ¦"}),!a&&r.length===0&&e.jsx("p",{className:"text-muted-foreground text-sm",children:"ZatÃm žádné aktuality."}),r.map(t=>{const o=m(t);return e.jsxs(c,{to:"/aktuality/$slug",params:{slug:t.slug},className:"group bg-card border border-border rounded-xl overflow-hidden hover:border-primary hover:shadow-[var(--shadow-soft)] transition-all",children:[o&&e.jsx("div",{className:"aspect-[16/10] overflow-hidden bg-muted flex items-center justify-center",children:e.jsx("img",{src:o,alt:t.title,loading:"lazy",className:"w-full h-full object-contain group-hover:scale-105 transition-transform duration-500"})}),e.jsxs("div",{className:"p-5",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-2",children:[e.jsx(x,{size:12})," ",u(t.date)]}),e.jsx("h3",{className:"font-display text-xl tracking-wider text-foreground mb-2 group-hover:text-primary transition-colors",children:t.title}),e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-3",children:t.excerpt}),e.jsxs("div",{className:"mt-4 inline-flex items-center gap-2 text-sm text-primary font-medium",children:["ÄÃst vÃce ",e.jsx(g,{size:14,className:"group-hover:translate-x-1 transition-transform"})]})]})]},t.id)})]})})]})}export{j as component};
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.