PageSourceSearch

https://datamoon.com/assets/PostCard-HPpVBF6p.js

js datamoon.com collected 2026-10-09 22:41:41 UTC 2,701 bytes, 1 lines download raw bytes

1import{Dt as e,Mt as t}from"./index-CA1ge1_T.js";import{t as n}from"./arrow-right-h9VePQF4.js";import{t as r}from"./clock-CdK92bqV.js";import{t as i}from"./badge-D-oiRj2B.js";var a=t();function o({post:t}){return(0,a.jsxs)(e,{to:`/${t.slug}`,className:`group bg-background flex flex-col`,children:[(0,a.jsx)(`div`,{className:`aspect-[16/10] overflow-hidden`,children:(0,a.jsx)(`img`,{src:t.image,alt:t.title,className:`w-full h-full object-cover group-hover:scale-[1.03] transition-transform duration-500`,loading:`lazy`,width:1200,height:675})}),(0,a.jsxs)(`div`,{className:`p-6 flex flex-col flex-1`,children:[(0,a.jsxs)(`div`,{className:`flex items-center gap-3 mb-3`,children:[(0,a.jsx)(i,{variant:`outline`,className:`text-[10px] font-mono uppercase tracking-wider`,children:t.category}),(0,a.jsxs)(`span`,{className:`text-xs text-muted-foreground flex items-center gap-1`,children:[(0,a.jsx)(r,{className:`h-3 w-3`}),t.readTime]})]}),(0,a.jsx)(`h3`,{className:`font-bold leading-snug mb-3 group-hover:text-foreground/70 transition-colors tracking-tight`,children:t.title}),(0,a.jsx)(`p`,{className:`text-sm text-muted-foreground line-clamp-2 mb-4 flex-1`,children:t.excerpt}),(0,a.jsxs)(`div`,{className:`flex items-center justify-between mt-auto pt-4 border-t border-border`,children:[(0,a.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:new Date(t.date+`T12:00:00`).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`})}),(0,a.jsx)(n,{className:`h-4 w-4 text-foreground/40 group-hover:text-foreground group-hover:translate-x-1 transition-all`})]})]})]})}function s({posts:e}){return(0,a.jsx)(`div`,{className:`grid md:grid-cols-2 lg:grid-cols-3 gap-px bg-border border border-border rounded-xl overflow-hidden`,children:e.map(e=>(0,a.jsx)(o,{post:e},e.slug))})}function c({basePath:e,page:t,totalPages:n}){if(n<=1)return null;let r=t=>t===1?e:`${e}?page=${t}`;return(0,a.jsxs)(`nav`,{"aria-label":`Pagination`,className:`mt-12 flex flex-wrap items-center justify-center gap-2`,children:[t>1&&(0,a.jsx)(`a`,{href:r(t-1),rel:`prev`,className:`min-h-11 px-4 inline-flex items-center border border-border rounded-lg text-sm hover:bg-muted`,children:`Previous`}),Array.from({length:n},(e,t)=>t+1).map(e=>(0,a.jsx)(`a`,{href:r(e),"aria-current":e===t?`page`:void 0,className:`min-h-11 min-w-11 px-3 inline-flex items-center justify-center rounded-lg text-sm border ${e===t?`bg-foreground text-background border-foreground`:`border-border hover:bg-muted`}`,children:e},e)),t<n&&(0,a.jsx)(`a`,{href:r(t+1),rel:`next`,className:`min-h-11 px-4 inline-flex items-center border border-border rounded-lg text-sm hover:bg-muted`,children:`Next`})]})}export{s as n,c as t};

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.