{"version":3,"file":"HoverCard.CLC3gi3I.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/um1TuiNOjTEM0QLXWxib/U3FhnxvZ76GkpxnJrbGD/HoverCard.js"],"sourcesContent":["// Card with hover overlay that shows description with blur effect over the image\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function HoverCard(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Card image\"},title=\"Technological Excellence\",description=\"Bulett PointBulett PointBulett PointBulett PointBulett PointBulett PointBulett Point\",descriptionType=\"paragraph\",backgroundColor=\"#1a1a1a\",textColor=\"#FFFFFF\",overlayColor=\"rgba(0, 0, 0, 0.7)\",titleFont,descriptionFont,borderRadius=16}=props;const[isHovered,setIsHovered]=useState(false);const renderDescription=()=>{if(descriptionType===\"bullets\"){const bulletPoints=description.split(\"\\n\").filter(line=>line.trim()!==\"\");return /*#__PURE__*/_jsx(\"ul\",{style:{margin:0,paddingLeft:\"20px\",...descriptionFont,color:textColor},children:bulletPoints.map((point,index)=>/*#__PURE__*/_jsx(\"li\",{style:{marginBottom:\"8px\"},children:point},index))});}return /*#__PURE__*/_jsx(\"p\",{style:{margin:0,...descriptionFont,color:textColor},children:description});};return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",perspective:\"1000px\"},onMouseEnter:()=>setIsHovered(true),onMouseLeave:()=>setIsHovered(false),children:/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",transformStyle:\"preserve-3d\",transform:isHovered?\"rotateY(180deg)\":\"rotateY(0deg)\",transition:\"transform 0.6s ease-in-out\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",width:\"100%\",height:\"100%\",backfaceVisibility:\"hidden\",borderRadius:`${borderRadius}px`,overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",bottom:\"24px\",left:\"24px\",right:\"24px\",padding:\"20px\",background:overlayColor,backdropFilter:\"blur(10px)\",WebkitBackdropFilter:\"blur(10px)\",color:textColor,borderRadius:\"12px\"},children:/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,...titleFont,color:textColor},children:title})})]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",width:\"100%\",height:\"100%\",backfaceVisibility:\"hidden\",transform:\"rotateY(180deg)\",borderRadius:`${borderRadius}px`,background:backgroundColor,display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",padding:\"32px\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,marginBottom:\"16px\",...titleFont,color:textColor},children:title}),renderDescription()]})]})});}addPropertyControls(HoverCard,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Technological Excellence\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"Bulett PointBulett PointBulett PointBulett PointBulett PointBulett PointBulett Point\",displayTextArea:true},descriptionType:{type:ControlType.Enum,title:\"Description Type\",options:[\"paragraph\",\"bullets\"],optionTitles:[\"Paragraph\",\"Bullet Points\"],defaultValue:\"paragraph\",displaySegmentedControl:true},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#1a1a1a\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},overlayColor:{type:ControlType.Color,title:\"Overlay Color\",defaultValue:\"rgba(0, 0, 0, 0.8)\"},titleFont:{type:ControlType.Font,title:\"Title Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"32px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1.2em\"}},descriptionFont:{type:ControlType.Font,title:\"Description Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.5em\"}},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:16,min:0,max:50,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HoverCard\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HoverCard.map"],"mappings":"iLAIG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,sEAAsE,IAAI,YAAY,EAAE,QAAM,2BAA2B,cAAY,uFAAuF,kBAAgB,YAAY,kBAAgB,UAAU,YAAU,UAAU,eAAa,qBAAqB,YAAU,kBAAgB,eAAa,IAAI,EAAW,CAAC,EAAU,GAAcA,EAAS,EAAK,EAAQ,MAAsB,CAAC,GAAG,IAAkB,UAAU,CAAC,IAAM,EAAa,EAAY,MAAM;CAAI,CAAC,CAAC,OAAO,GAAM,EAAK,KAAK,IAAI,EAAE,EAAE,OAAoB,EAAK,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,YAAY,OAAO,GAAG,EAAgB,MAAM,CAAS,EAAE,SAAS,EAAa,KAAK,EAAM,IAAqB,EAAK,KAAK,CAAC,MAAM,CAAC,aAAa,KAAK,EAAE,SAAS,CAAK,EAAE,CAAK,CAAC,CAAC,CAAC,CAAE,CAAC,OAAoB,EAAK,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,EAAgB,MAAM,CAAS,EAAE,SAAS,CAAW,CAAC,CAAE,EAAE,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,YAAY,QAAQ,EAAE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