PageSourceSearch

https://downundervisa.com/assets/PostCard-DUwjTgtE.js

js downundervisa.com collected 2026-10-09 05:15:08 UTC 4,928 bytes, 1 lines download raw bytes

1import{v as n,j as e,L as r}from"./main-Bo0oayNO.js";import{b as a,a as i}from"./ui-utils-CNoARbDA.js";function o({post:s,variant:l="default"}){const{authorPageUrl:t}=n();return l==="compact"?e.jsxs("article",{className:"group",children:[e.jsx(r,{to:"/posts/$slug",params:{slug:s.slug},children:e.jsx("h3",{className:"font-semibold text-foreground group-hover:text-primary transition-colors line-clamp-2",children:s.title})}),e.jsx("p",{className:"text-sm text-foreground-muted mt-1",children:a(s.publishedAt)})]}):l==="card"?e.jsxs("article",{className:"post-card-navy group hover:-translate-y-1 transition-all duration-300 shadow-card hover:shadow-card-hover",children:[s.featuredImage&&e.jsx(r,{to:"/posts/$slug",params:{slug:s.slug},className:"block overflow-hidden",children:e.jsx("img",{src:s.featuredImage,alt:s.title,loading:"lazy",className:"post-image group-hover:scale-105 transition-transform duration-300"})}),e.jsxs("div",{className:"post-content",children:[s.categories&&s.categories.length>0&&e.jsx(r,{to:"/posts",search:{category:s.categories[0].slug,page:void 0,tag:void 0,q:void 0},className:"post-category hover:underline",children:s.categories[0].name}),e.jsx(r,{to:"/posts/$slug",params:{slug:s.slug},children:e.jsx("h2",{className:"post-title group-hover:text-primary transition-colors",children:s.title})}),s.excerpt&&e.jsx("p",{className:"post-excerpt",children:s.excerpt}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"post-meta",children:[e.jsx("time",{dateTime:s.publishedAt?.toISOString?.()||"",children:a(s.publishedAt)}),s.readingTime&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"·"}),e.jsx("span",{children:i(s.readingTime)})]})]}),e.jsxs(r,{to:"/posts/$slug",params:{slug:s.slug},className:"read-more",children:["Read more",e.jsx("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]})]}):e.jsx("article",{className:`bg-background rounded-theme shadow-xs border transition-shadow hover:shadow-md ${s.isFeatured?"border-accent ring-1 ring-accent/20":"border-border"}`,children:e.jsxs("div",{className:"flex flex-col sm:flex-row",children:[e.jsx(r,{to:"/posts/$slug",params:{slug:s.slug},className:"block flex-shrink-0 sm:w-48 md:w-56",children:e.jsx("img",{src:s.featuredImage||"/uploads/DUV-News-Pic-2.png",alt:s.title,loading:"lazy",className:"w-full h-48 sm:h-full object-cover rounded-t-theme sm:rounded-t-none sm:rounded-l-theme"})}),e.jsxs("div",{className:"flex flex-col justify-center p-5 min-w-0 flex-1 bg-background-alt sm:rounded-r-theme",children:[(s.isFeatured||s.isSticky)&&e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.isFeatured&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-accent/10 text-accent",children:[e.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:e.jsx("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})}),"Featured"]}),s.isSticky&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-primary/10 text-primary",children:[e.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"})}),"Pinned"]})]}),e.jsx(r,{to:"/posts/$slug",params:{slug:s.slug},children:e.jsx("h2",{className:"text-lg font-bold text-foreground hover:text-primary transition-colors mb-1 font-heading line-clamp-2",children:s.title})}),e.jsxs("div",{className:"flex items-center text-xs text-primary mb-2",children:[e.jsx(r,{to:t,className:"hover:text-primary-dark transition-colors",children:"Jeff Harvie"}),e.jsx("span",{className:"mx-2",children:"·"}),e.jsx("time",{dateTime:s.publishedAt?.toISOString?.()||"",children:a(s.publishedAt)}),s.readingTime&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"mx-2",children:"·"}),e.jsx("span",{children:i(s.readingTime)})]})]}),s.excerpt&&e.jsx("p",{className:"text-foreground-muted text-sm mb-3 line-clamp-2",children:s.excerpt}),e.jsxs(r,{to:"/posts/$slug",params:{slug:s.slug},className:"text-primary hover:text-primary-dark font-medium transition-colors inline-flex items-center gap-1 text-sm",children:["Read more",e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]})})}export{o as P};

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.