{"version":3,"file":"ArticleCard.DBCQsUt8.mjs","names":["useState","__esmMin","init_npm_react_18_3_1","_e","p","c","init_jsx_runtime","init_framer_motion_DhsWWWsN","motion","init_framer_BisrWwwE","addPropertyControls","RenderTarget","ControlType","shortDate","d","x","ArticleCard","props","hover","setHover","src","image","href","slug","linkBase","still","tag","category","when","date","index","title","description","init_ArticleCard"],"sources":["https:/framerusercontent.com/modules/nLXh8hutJRLuSMs44KEI/L7FNZY2roVHXBcIYO5eu/ArticleCard.js"],"sourcesContent":["// Article card · Renova. Goes inside the Articles collection list on /articles (and anywhere else\n// articles are listed). Connect Title, Blog Overview (as Description), Thumbnail Image, Category,\n// Date and Slug to the CMS fields.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";function shortDate(d){if(!d)return\"\";const x=new Date(d);return isNaN(x.getTime())?\"\":x.toLocaleDateString(\"en-US\",{month:\"short\",day:\"numeric\",year:\"numeric\",timeZone:\"UTC\"});}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-auto\n */export default function ArticleCard(props){const{title,description,image,category,date,slug,linkBase,index}=props;const[hover,setHover]=useState(false);const src=typeof image===\"string\"?image:image?.src;const href=slug?`${linkBase}${slug}`:undefined;const still=RenderTarget.current()===RenderTarget.canvas;const tag=(category||\"\").split(\"/\")[0].trim();const when=shortDate(date);return /*#__PURE__*/_jsxs(motion.a,{href:href,onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),initial:still?false:{opacity:0,y:36},whileInView:{opacity:1,y:0},viewport:{once:true,amount:.25},transition:{duration:.8,delay:(index||0)%3*.08,ease:[.2,.7,.2,1]},style:{display:\"flex\",flexDirection:\"column\",width:\"100%\",height:\"100%\",textDecoration:\"none\",borderRadius:22,overflow:\"hidden\",color:\"#fff\",fontFamily:\"'Outfit', system-ui, sans-serif\",background:\"linear-gradient(180deg,rgba(30,30,30,.94),rgba(14,14,14,.96))\",border:`1px solid ${hover?\"rgba(235,109,47,.6)\":\"rgba(255,255,255,.10)\"}`,boxShadow:hover?\"0 30px 80px rgba(235,109,47,.18)\":\"0 30px 80px rgba(0,0,0,.45)\",transition:\"border-color .3s, box-shadow .3s\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",aspectRatio:\"16 / 10\",overflow:\"hidden\",background:\"#151515\"},children:[src&&/*#__PURE__*/_jsx(\"img\",{src:src,srcSet:image&&typeof image===\"object\"&&image.srcSet?image.srcSet:undefined,sizes:\"360px\",alt:image&&typeof image===\"object\"&&image.alt||title||\"\",loading:\"lazy\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\",transform:hover?\"scale(1.04)\":\"scale(1)\",transition:\"transform .6s cubic-bezier(.2,.7,.2,1)\"}}),tag&&/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",left:14,top:14,fontSize:12,fontWeight:600,padding:\"6px 11px\",borderRadius:999,background:\"rgba(0,0,0,.55)\",backdropFilter:\"blur(10px)\",WebkitBackdropFilter:\"blur(10px)\",border:\"1px solid rgba(255,255,255,.14)\"},children:tag})]}),/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"22px 24px 24px\",display:\"flex\",flexDirection:\"column\",gap:10,flex:1},children:[when&&/*#__PURE__*/_jsx(\"div\",{style:{fontSize:12.5,fontWeight:600,letterSpacing:\".13em\",textTransform:\"uppercase\",color:\"#EB6D2F\"},children:when}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:22,fontWeight:600,letterSpacing:\"-.02em\",lineHeight:1.18,minHeight:\"2.36em\",display:\"-webkit-box\",WebkitLineClamp:3,WebkitBoxOrient:\"vertical\",overflow:\"hidden\"},children:title}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:15,lineHeight:1.5,color:\"rgba(255,255,255,.62)\",display:\"-webkit-box\",WebkitLineClamp:3,WebkitBoxOrient:\"vertical\",overflow:\"hidden\"},children:description}),/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:\"auto\",paddingTop:10,fontSize:15,fontWeight:600,display:\"flex\",alignItems:\"center\",gap:8},children:[\"Read the article\",/*#__PURE__*/_jsx(\"span\",{style:{color:\"#EB6D2F\",transform:hover?\"translateX(4px)\":\"none\",transition:\"transform .3s\"},children:\"→\"})]})]})]});}ArticleCard.defaultProps={title:\"How fast should a roofing company answer a new lead?\",description:\"Homeowners ask several roofers for a quote and book whoever answers first. Here is what a fast first reply looks like.\",category:\"Roofing\",date:\"2026-10-20\",slug:\"\",linkBase:\"/articles/\",index:0};addPropertyControls(ArticleCard,{title:{type:ControlType.String,title:\"Title\"},description:{type:ControlType.String,title:\"Description\",displayTextArea:true},image:{type:ControlType.ResponsiveImage,title:\"Image\"},category:{type:ControlType.String,title:\"Category\"},date:{type:ControlType.Date,title:\"Date\"},slug:{type:ControlType.String,title:\"Slug\"},linkBase:{type:ControlType.String,title:\"Link prefix\"},index:{type:ControlType.Number,title:\"Order (for stagger)\",min:0,max:50,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArticleCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ArticleCard.map"],"mappings":"A,0OAGwL,SAASa,EAAU,EAAE,CAAC,GAAG,CAACC,EAAE,MAAM,GAAG,IAAMC,EAAE,IAAI,KAAKD,CAAC,EAAE,OAAO,MAAMC,EAAE,QAAQ,CAAC,EAAE,GAAGA,EAAE,mBAAmB,QAAQ,CAAC,MAAM,QAAQ,IAAI,UAAU,KAAK,UAAU,SAAS,KAAK,CAAC,CAAE,CAGrW,SAAwBC,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,cAAY,QAAM,WAAS,OAAK,OAAK,WAA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