{"version":3,"file":"NextProjectCard.CAnoOzls.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/jHITcXA6vdZQSl7Qnp1i/ZTgA8nl8l4hLiCssT0iT/NextProjectCard.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n */export default function NextProjectCard(props){const{label=\"Next project\",title=\"Form Builder\",description=\"Redesigned Inncircles' form builder so teams could configure inspections and checklists without developer support.\",href=\"/inncircles-form-builder\",accent=\"rgb(228,70,25)\"}=props;const ref=useRef(null);const[on,setOn]=useState(false);const[hover,setHover]=useState(false);const[narrow,setNarrow]=useState(false);useEffect(()=>{const el=ref.current;if(!el)return;const ro=new ResizeObserver(entries=>{for(const e of entries)setNarrow(e.contentRect.width<400);});ro.observe(el);return()=>ro.disconnect();},[]);useEffect(()=>{const el=ref.current;if(!el)return;if(window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches){setOn(true);return;}const io=new IntersectionObserver(es=>{for(const e of es)if(e.isIntersecting){setOn(true);io.disconnect();}},{threshold:.15});io.observe(el);return()=>io.disconnect();},[]);const ease=\"cubic-bezier(0.22,1,0.36,1)\";return /*#__PURE__*/_jsxs(\"a\",{ref:ref,href:href,onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),style:{...props.style,display:\"flex\",alignItems:\"center\",gap:narrow?14:20,width:\"100%\",boxSizing:\"border-box\",padding:narrow?\"20px 18px\":\"28px 28px\",borderRadius:narrow?14:18,background:hover?`${accent}08`:\"rgba(0,0,0,0.015)\",border:`1px solid ${hover?accent+\"30\":\"rgba(0,0,0,0.07)\"}`,boxShadow:hover?`0 20px 44px -28px ${accent}88`:\"0 1px 3px rgba(0,0,0,0.03)\",textDecoration:\"none\",fontFamily:\"Geist, sans-serif\",cursor:\"pointer\",transform:hover?\"translateY(-2px)\":\"translateY(0)\",opacity:on?1:0,transition:`opacity 0.55s ${ease} 0.05s, transform 0.4s ${ease}, background 0.35s ease, border-color 0.35s ease, box-shadow 0.4s ease`},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:narrow?6:8,flex:1,minWidth:0},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:14,fontWeight:400,letterSpacing:\"-0.01em\",color:accent,lineHeight:1.5},children:label}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:narrow?18:22,fontWeight:600,letterSpacing:\"-0.02em\",color:\"rgb(20,20,20)\",lineHeight:1.2},children:title}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:narrow?13:14,lineHeight:1.55,color:\"rgb(110,110,110)\",maxWidth:480},children:description})]}),/*#__PURE__*/_jsx(\"svg\",{width:narrow?22:28,height:narrow?22:28,viewBox:\"0 0 24 24\",fill:\"none\",style:{flexShrink:0,transform:hover?\"translateX(4px)\":\"translateX(0)\",transition:`transform 0.35s ${ease}`},children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12h14M13 5l7 7-7 7\",stroke:accent,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})]});}addPropertyControls(NextProjectCard,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Next project\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Form Builder\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"Redesigned Inncircles' form builder so teams could configure inspections and checklists without developer support.\",displayTextArea:true},href:{type:ControlType.String,title:\"Link\",defaultValue:\"/inncircles-form-builder\"},accent:{type:ControlType.Color,title:\"Accent\",defaultValue:\"rgb(228,70,25)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"NextProjectCard\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}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