{"version":3,"file":"ProfileCard.DPLLUUdO.mjs","names":[],"sources":["https:/framerusercontent.com/modules/2WPmx8oP3PP1Jev94P9g/cJctOJGwrngrKczRZZvf/ProfileCard.js"],"sourcesContent":["// Component with slanted images and drop shadows with banners to show names and titles\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 240\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */function ProfileCard(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Profile image\"},name=\"John Doe\",title=\"Chief Executive Officer, Company Name\",bannerLink=\"https://example.com\",backgroundColor=\"#FFFFFF\",textColor=\"#000000\",slantAngle=-3,bannerSlantAngle=5,shadowIntensity=.3,bannerHeight=120,nameFont,titleFont}=props;const imageSlantStyle={position:\"relative\",width:\"200px\",height:\"100%\",minHeight:\"200px\",flex:\"0 0 200px\",overflow:\"hidden\",transform:`skewX(${slantAngle}deg)`,filter:`drop-shadow(8px 8px 12px rgba(0, 0, 0, ${shadowIntensity}))`,zIndex:2};const imageStyle={width:\"100%\",height:\"100%\",objectFit:\"cover\",transform:`skewX(${-slantAngle}deg) scale(1.2)`,transformOrigin:\"center\"};const bannerStyle={position:\"relative\",flex:1,backgroundColor:backgroundColor,padding:\"20px 30px 20px 60px\",minHeight:`${bannerHeight}px`,height:\"auto\",overflow:\"visible\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",clipPath:`polygon(0 ${bannerSlantAngle}%, 100% 0, 100% ${100-bannerSlantAngle}%, 0 100%)`,filter:`drop-shadow(6px 6px 10px rgba(0, 0, 0, ${shadowIntensity}))`,marginLeft:\"-40px\",zIndex:1};const nameStyle={margin:0,marginBottom:\"8px\",color:textColor,overflow:\"visible\",textOverflow:\"clip\",whiteSpace:\"normal\",...nameFont};const titleStyle={margin:0,color:textColor,overflow:\"visible\",display:\"block\",...titleFont};const Container=bannerLink?\"a\":\"div\";return /*#__PURE__*/_jsxs(Container,{href:bannerLink?bannerLink:undefined,target:bannerLink?\"_blank\":undefined,rel:bannerLink?\"noopener noreferrer\":undefined,\"aria-label\":bannerLink?`Open profile: ${name}`:undefined,style:{...props.style,position:\"relative\",width:\"100%\",height:props?.style?.height===\"100%\"?\"100%\":\"auto\",minWidth:5,minHeight:5,display:\"flex\",alignItems:\"stretch\",textDecoration:\"none\",color:\"inherit\",cursor:bannerLink?\"pointer\":\"default\"},children:[/*#__PURE__*/_jsx(\"div\",{style:imageSlantStyle,children:/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt,style:imageStyle})}),/*#__PURE__*/_jsxs(\"div\",{style:bannerStyle,children:[/*#__PURE__*/_jsx(\"h3\",{style:nameStyle,children:name}),/*#__PURE__*/_jsx(\"p\",{style:titleStyle,children:title})]})]});}export default ProfileCard;addPropertyControls(ProfileCard,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},name:{type:ControlType.String,title:\"Name\",defaultValue:\"John Doe\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Chief Executive Officer, Company Name\",displayTextArea:true},bannerLink:{type:ControlType.Link,title:\"Banner Link\",defaultValue:\"https://example.com\"},backgroundColor:{type:ControlType.Color,title:\"Banner Color\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},slantAngle:{type:ControlType.Number,title:\"Image Slant\",defaultValue:-3,min:-15,max:15,step:1,unit:\"deg\"},bannerSlantAngle:{type:ControlType.Number,title:\"Banner Slant\",defaultValue:5,min:0,max:20,step:1,unit:\"%\"},shadowIntensity:{type:ControlType.Number,title:\"Shadow\",defaultValue:.3,min:0,max:1,step:.1},bannerHeight:{type:ControlType.Number,title:\"Banner Height\",defaultValue:120,min:60,max:240,step:1,unit:\"px\"},nameFont:{type:ControlType.Font,title:\"Name Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"22px\",variant:\"Bold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},titleFont:{type:ControlType.Font,title:\"Title Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProfileCard\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"600\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"240\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProfileCard.map"],"mappings":"mKAOG,SAAS,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,sEAAsE,IAAI,gBAAgB,CAAC,OAAK,WAAW,QAAM,wCAAwC,aAAW,sBAAsB,kBAAgB,UAAU,YAAU,UAAU,aAAW,GAAG,mBAAiB,EAAE,kBAAgB,GAAG,eAAa,IAAI,WAAS,aAAW,EAAY,EAAgB,CAAC,SAAS,WAAW,MAAM,QAAQ,OAAO,OAAO,UAAU,QAAQ,KAAK,YAAY,SAAS,SAAS,UAAU,SAAS,EAAW,MAAM,OAAO,0CAA0C,EAAgB,IAAI,OAAO,EAAE,CAAO,EAAW,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,UAAU,SAAS,CAAC,EAAW,iBAAiB,gBAAgB,SAAS,CAAO,EAAY,CAAC,SAAS,WAAW,KAAK,EAAkB,kBAAgB,QAAQ,sBAAsB,UAAU,GAAG,EAAa,IAAI,OAAO,OAAO,SAAS,UAAU,QAAQ,OAAO,cAAc,SAAS,eAAe,SAAS,SAAS,aAAa,EAAiB,kBAAkB,IAAI,EAAiB,YAAY,OAAO,0CAA0C,EAAgB,IA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