{"version":3,"file":"ProjectCardButton.DNrbbV5w.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/ftNXGhoSs8bAqu70ObPi/HHpqXKwjmXzXeaM9r3FO/ProjectCardButton.js"],"sourcesContent":["// ProjectCardButton component with text and arrow, hover effect that lifts up\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function ProjectCardButton(props){const{text,backgroundColor,textColor,arrowColor,font,borderRadius,padding,linkUrl,arrowPosition}=props;const[isHovered,setIsHovered]=useState(false);const handleClick=()=>{if(linkUrl){window.open(linkUrl,\"_blank\");}};return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",display:\"inline-flex\",cursor:\"pointer\",paddingTop:20},onMouseEnter:()=>setIsHovered(true),onMouseLeave:()=>setIsHovered(false),onClick:handleClick,children:/*#__PURE__*/_jsxs(motion.div,{style:{display:\"flex\",alignItems:\"center\",gap:12,backgroundColor,color:textColor,border:\"none\",borderRadius,padding:`${padding}px ${padding*1.67}px`,boxShadow:\"0 2px 8px rgba(0,0,0,0.1)\",...font,minWidth:\"max-content\",userSelect:\"none\",WebkitUserSelect:\"none\",flexDirection:arrowPosition===\"left\"?\"row-reverse\":\"row\"},animate:{y:isHovered?-10:0},transition:{duration:.3,ease:\"easeOut\"},children:[/*#__PURE__*/_jsx(\"span\",{children:text}),/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:arrowColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M12 19V5M5 12l7-7 7 7\"})})]})});}addPropertyControls(ProjectCardButton,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"View Project\"},arrowPosition:{type:ControlType.Enum,title:\"Arrow Position\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],defaultValue:\"right\",displaySegmentedControl:true},linkUrl:{type:ControlType.String,title:\"Link URL\",defaultValue:\"https://\",placeholder:\"https://example.com\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},arrowColor:{type:ControlType.Color,title:\"Arrow Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:32},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:12,min:4,max:32}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProjectCardButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProjectCardButton.map"],"mappings":"2OAIG,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,OAAK,kBAAgB,YAAU,aAAW,OAAK,eAAa,UAAQ,UAAQ,iBAAe,EAAW,CAAC,EAAU,GAAcA,EAAS,GAAM,CAAqE,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,QAAQ,cAAc,OAAO,UAAU,WAAW,GAAG,CAAC,iBAAiB,EAAa,GAAK,CAAC,iBAAiB,EAAa,GAAM,CAAC,YAAxO,CAAI,GAAS,EAAO,KAAK,EAAQ,SAAS,EAAkN,SAAsB,EAAM,EAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,OAAO,WAAW,SAAS,IAAI,GAAG,kBAAgB,MAAM,EAAU,OAAO,OAAO,eAAa,QAAQ,GAAG,EAA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