{"version":3,"file":"VideoCards.Cce5hINf.mjs","names":[],"sources":["https:/framerusercontent.com/modules/BtfQekkJ6bwFkOM2LH38/4pSMLqQG7V4j6kKW1XaY/VideoCards.js"],"sourcesContent":["// 4 cards with looping videos, adjustable opacity overlay, and text on top\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function VideoCards(props){const{cards,overlayColor,overlayOpacity,titleFont,descriptionFont,titleColor,descriptionColor,cardGap,cardBorderRadius,padding,layoutMode,columns,rows,style}=props;const isFixedWidth=style?.width===\"100%\";const isFixedHeight=style?.height===\"100%\";const getGridStyle=()=>{if(layoutMode===\"vertical\"){return{gridTemplateColumns:\"1fr\",gridTemplateRows:`repeat(${cards.length}, 1fr)`};}else if(layoutMode===\"horizontal\"){return{gridTemplateColumns:`repeat(${cards.length}, 1fr)`,gridTemplateRows:\"1fr\"};}else{return{gridTemplateColumns:`repeat(${columns}, 1fr)`,gridTemplateRows:`repeat(${rows}, 1fr)`};}};return /*#__PURE__*/_jsx(\"div\",{style:{...style,display:\"grid\",...getGridStyle(),gap:cardGap,width:\"100%\",height:\"100%\",padding:0},children:cards.map((card,index)=>/*#__PURE__*/_jsxs(\"a\",{href:card.link,target:\"_blank\",rel:\"noopener noreferrer\",style:{position:\"relative\",borderRadius:cardBorderRadius,overflow:\"hidden\",textDecoration:\"none\",display:\"block\",cursor:\"pointer\"},children:[/*#__PURE__*/_jsx(\"video\",{src:card.video,autoPlay:true,loop:true,muted:true,playsInline:true,style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",objectFit:\"cover\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",backgroundColor:overlayColor,opacity:overlayOpacity}}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",justifyContent:\"flex-end\",padding:padding,gap:8},children:[/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,color:titleColor,...titleFont},children:card.title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:descriptionColor,...descriptionFont},children:card.description})]})]},index))});}addPropertyControls(VideoCards,{cards:{type:ControlType.Array,control:{type:ControlType.Object,controls:{video:{type:ControlType.File,allowedFileTypes:[\"mp4\",\"webm\",\"mov\"],title:\"Video\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Card Title\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"Card description text\",displayTextArea:true},link:{type:ControlType.Link,title:\"Link\",defaultValue:\"https://framer.com\"}}},defaultValue:[{video:\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",title:\"Card One\",description:\"First card description\",link:\"https://framer.com\"},{video:\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",title:\"Card Two\",description:\"Second card description\",link:\"https://framer.com\"},{video:\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",title:\"Card Three\",description:\"Third card description\",link:\"https://framer.com\"},{video:\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",title:\"Card Four\",description:\"Fourth card description\",link:\"https://framer.com\"}],maxCount:10},layoutMode:{type:ControlType.Enum,title:\"Layout\",options:[\"vertical\",\"horizontal\",\"grid\"],optionTitles:[\"Vertical\",\"Horizontal\",\"Grid\"],defaultValue:\"vertical\",displaySegmentedControl:true},columns:{type:ControlType.Number,title:\"Columns\",defaultValue:2,min:1,max:6,step:1,hidden:({layoutMode})=>layoutMode!==\"grid\"},rows:{type:ControlType.Number,title:\"Rows\",defaultValue:2,min:1,max:6,step:1,hidden:({layoutMode})=>layoutMode!==\"grid\"},overlayColor:{type:ControlType.Color,title:\"Overlay Color\",defaultValue:\"#000000\"},overlayOpacity:{type:ControlType.Number,title:\"Overlay Opacity\",defaultValue:.4,min:0,max:1,step:.05},titleFont:{type:ControlType.Font,title:\"Title Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"22px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"#FFFFFF\"},descriptionFont:{type:ControlType.Font,title:\"Description Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},descriptionColor:{type:ControlType.Color,title:\"Description Color\",defaultValue:\"#FFFFFF\"},cardGap:{type:ControlType.Number,title:\"Card Gap\",defaultValue:16,min:0,max:50,step:1,unit:\"px\"},cardBorderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:32,step:1,unit:\"px\"},padding:{type:ControlType.Number,title:\"Text Padding\",defaultValue:20,min:0,max:50,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VideoCards\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VideoCards.map"],"mappings":"8JAIG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,eAAa,iBAAe,YAAU,kBAAgB,aAAW,mBAAiB,UAAQ,mBAAiB,UAAQ,aAAW,UAAQ,OAAK,SAAO,EAAyB,GAAO,MAAmC,GAAO,OAAgB,IAAM,MAAqB,IAAa,WAAkB,CAAC,oBAAoB,MAAM,iBAAiB,UAAU,EAAM,OAAO,QAAQ,CAAU,IAAa,aAAoB,CAAC,oBAAoB,UAAU,EAAM,OAAO,QAAQ,iBAAiB,MAAM,CAAa,CAAC,oB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