1import{r as e}from"./useRouter-BSqnphaZ.js";import{n as t,r as n,t as r}from"./useBaseQuery-BkFEI4fB.js";import{c as i,z as a}from"./index-D85siHr5.js";import{g as o,t as s}from"./site-layout-KqN4sCMM.js";import{t as c}from"./arrow-right-fa1yDw7E.js";function l(e,i){return r({...e,enabled:!0,suspense:!0,throwOnError:t,placeholderData:void 0},n,i)}var u=o(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),d=e();function f(e){return new Date(e).toLocaleDateString(`en-ZA`,{year:`numeric`,month:`long`,day:`numeric`})}function p(){let{data:e}=l(i);return(0,d.jsxs)(s,{children:[(0,d.jsx)(`section`,{className:`bg-black text-cream`,children:(0,d.jsxs)(`div`,{className:`mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:px-8 lg:py-24`,children:[(0,d.jsx)(`div`,{className:`text-xs font-bold uppercase tracking-widest text-primary`,children:`The Dairy Den`}),(0,d.jsxs)(`h1`,{className:`mt-2 font-display text-5xl leading-[0.95] sm:text-6xl lg:text-7xl`,children:[`Blog`,(0,d.jsx)(`span`,{className:`text-primary`,children:`.`})]}),(0,d.jsx)(`p`,{className:`mt-5 max-w-2xl text-lg text-cream/80`,children:`News, new flavours, behind-the-scenes stories and sweet updates from our family-run stores across Cape Town.`})]})}),(0,d.jsx)(`section`,{className:`mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:px-8 lg:py-24`,children:e.length===0?(0,d.jsx)(`p`,{className:`text-center text-muted-foreground`,children:`No posts yet â check back soon!`}):(0,d.jsx)(`div`,{className:`grid gap-8 sm:grid-cols-2 lg:grid-cols-3`,children:e.map(e=>(0,d.jsxs)(`article`,{className:`group flex flex-col overflow-hidden rounded-2xl border border-border bg-card shadow-soft transition hover:-translate-y-1 hover:shadow-lift`,children:[e.cover_image_url?(0,d.jsx)(`div`,{className:`aspect-[4/3] overflow-hidden bg-secondary`,children:(0,d.jsx)(`img`,{src:e.cover_image_url,alt:e.title,loading:`lazy`,className:`h-full w-full object-cover transition duration-700 group-hover:scale-105`})}):(0,d.jsx)(`div`,{className:`aspect-[4/3] bg-gradient-neon`}),(0,d.jsxs)(`div`,{className:`flex flex-1 flex-col p-6`,children:[(0,d.jsxs)(`div`,{className:`flex items-center gap-2 text-xs font-semibold uppercase tracking-widest text-muted-foreground`,children:[(0,d.jsx)(u,{className:`h-3.5 w-3.5 text-primary`}),f(e.published_at),(0,d.jsx)(`span`,{"aria-hidden":!0,children:`â¢`}),(0,d.jsx)(`span`,{children:e.author})]}),(0,d.jsx)(`h2`,{className:`mt-3 font-display text-2xl leading-tight`,children:e.title}),e.excerpt?(0,d.jsx)(`p`,{className:`mt-3 flex-1 text-muted-foreground`,children:e.excerpt}):null]})]},e.id))})}),(0,d.jsx)(`section`,{className:`bg-secondary/40 py-16`,children:(0,d.jsxs)(`div`,{className:`mx-auto max-w-3xl px-4 text-center sm:px-6`,children:[(0,d.jsxs)(`h2`,{className:`font-display text-3xl sm:text-4xl`,children:[`Come taste it for `,(0,d.jsx)(`span`,{className:`italic font-light`,children:`yourself`}),(0,d.jsx)(`span`,{className:`text-primary`,children:`.`})]}),(0,d.jsx)(`p`,{className:`mt-4 text-lg text-muted-foreground`,children:`Visit one of our 5 stores across Cape Town.`}),(0,d.jsxs)(a,{to:`/locations`,className:`mt-6 inline-flex items-center gap-2 rounded-full bg-primary px-6 py-3 text-sm font-bold text-primary-foreground shadow-soft hover:bg-primary/90`,children:[`Find a store `,(0,d.jsx)(c,{className:`h-4 w-4`})]})]})})]})}export{p 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.