PageSourceSearch

https://mondobirra.org/assets/recensioni-ZYmmoURS.js

js mondobirra.org collected 2026-10-02 05:23:45 UTC 3,548 bytes, 1 lines download raw bytes

1import{r as e}from"./chunk-QTnfLwEv.js";import{t}from"./react-xd4aoMiW.js";import{t as n}from"./link-Dalx_LTv.js";import{t as r}from"./jsx-runtime-DsKLSDJq.js";import{n as i}from"./client-BBrMPsFK.js";import{n as a,t as o}from"./SiteChrome-CO15oJTW.js";import{t as s}from"./PageViewCounter-Blvun_7x.js";var c=e(t()),l=r();function u(){let[e,t]=(0,c.useState)([]),[r,u]=(0,c.useState)(!0);return(0,c.useEffect)(()=>{i.from(`news_posts`).select(`slug, title, excerpt, cover_url, published_at, author_name`).eq(`is_public`,!0).eq(`is_review`,!0).not(`published_at`,`is`,null).lte(`published_at`,new Date().toISOString()).order(`published_at`,{ascending:!1}).limit(100).then(({data:e})=>{e&&t(e),u(!1)})},[]),(0,l.jsxs)(`div`,{className:`min-h-screen bg-background text-foreground`,children:[(0,l.jsx)(a,{}),(0,l.jsx)(`section`,{className:`border-b border-border`,children:(0,l.jsxs)(`div`,{className:`mx-auto max-w-7xl px-6 py-16 lg:py-24`,children:[(0,l.jsxs)(`div`,{className:`mb-6 flex items-center gap-3 font-mono text-[11px] uppercase tracking-[0.3em] text-copper`,children:[(0,l.jsx)(`span`,{className:`h-px w-10 bg-copper`}),`Provato da noi`,e.length>0?` · ${e.length}`:``]}),(0,l.jsxs)(`h1`,{className:`max-w-3xl font-display text-5xl font-extrabold leading-[0.95] tracking-tight text-ink sm:text-6xl lg:text-7xl`,children:[`Le nostre `,(0,l.jsx)(`span`,{className:`italic text-amber-deep`,children:`recensioni`}),`.`]}),(0,l.jsx)(`p`,{className:`mt-8 max-w-2xl text-lg leading-relaxed text-malt`,children:`Birrerie, pub, birrifici e serate raccontati in prima persona: quello che abbiamo bevuto, mangiato e visto con i nostri occhi.`})]})}),(0,l.jsx)(`section`,{className:`mx-auto max-w-7xl px-6 py-16`,children:r?(0,l.jsx)(`p`,{className:`font-mono text-xs uppercase tracking-widest text-malt`,children:`Caricamento…`}):e.length===0?(0,l.jsxs)(`p`,{className:`text-malt`,children:[`Nessuna recensione pubblicata per ora.`,` `,(0,l.jsx)(n,{to:`/notizie`,className:`text-amber-deep hover:underline`,children:`Vai all'archivio notizie →`})]}):(0,l.jsx)(`div`,{className:`grid gap-6 md:grid-cols-2 lg:grid-cols-3`,children:e.map(e=>(0,l.jsx)(`article`,{className:`group flex flex-col overflow-hidden rounded-2xl border border-border bg-background transition hover:border-amber-deep`,children:(0,l.jsxs)(n,{to:`/p/$slug`,params:{slug:e.slug},className:`flex flex-1 flex-col`,children:[e.cover_url&&(0,l.jsx)(`div`,{className:`aspect-[16/10] w-full overflow-hidden bg-ink/5`,children:(0,l.jsx)(`img`,{src:e.cover_url,alt:e.title,loading:`lazy`,className:`h-full w-full object-cover transition duration-500 group-hover:scale-105`})}),(0,l.jsxs)(`div`,{className:`flex flex-1 flex-col p-5`,children:[(0,l.jsx)(`span`,{className:`font-mono text-[10px] uppercase tracking-widest text-copper`,children:`Recensione`}),(0,l.jsx)(`time`,{dateTime:e.published_at,className:`mt-1 font-mono text-[10px] uppercase tracking-widest text-amber-deep`,children:new Date(e.published_at).toLocaleDateString(`it-IT`,{day:`numeric`,month:`long`,year:`numeric`})}),(0,l.jsx)(`h2`,{className:`mt-2 font-display text-xl font-bold leading-tight text-ink`,children:e.title}),e.excerpt&&(0,l.jsx)(`p`,{className:`mt-2 text-sm text-malt line-clamp-3`,children:e.excerpt}),(0,l.jsx)(`span`,{className:`mt-4 inline-flex font-mono text-[11px] uppercase tracking-widest text-amber-deep`,children:`Leggi →`})]})]})},e.slug))})}),(0,l.jsx)(`div`,{className:`mx-auto max-w-6xl px-6 pb-10`,children:(0,l.jsx)(s,{slug:`recensioni`})}),(0,l.jsx)(o,{})]})}export{u 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.