{"version":3,"file":"CourseCard.B3Opscd3.mjs","names":["useState","__esmMin","_e","init_jsx_runtime","init_npm_react_18_3_1","c","addPropertyControls","init_framer_DKgW_P28","ControlType","CourseCard","props","isHovered","setIsHovered","isFixedWidth","style","isFixedHeight","hoverBackgroundColor","backgroundColor","showShadow","image","badgeColor","badgeTextColor","badgeFont","courseType","titleColor","titleFont","title","stackInfo","dateColor","bodyFont","date","priceColor","price","init_CourseCard"],"sources":["https:/framerusercontent.com/modules/rkqcCRVqg41yxiCeZrX2/l2qJYgdXbUNmkMP9kuyK/CourseCard.js"],"sourcesContent":["// Webinar/Course component from CMS \"Kurse\" with image, title, date, price, and type badge\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * Course/Webinar Card Component\n * \n * @framerIntrinsicWidth 320\n * @framerIntrinsicHeight 420\n * \n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function CourseCard(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Course image\"},title=\"Einf\\xfchrung in die moderne Webentwicklung\",date=\"15. M\\xe4rz 2024\",price=\"€299\",courseType=\"Webinar\",badgeColor=\"#0099FF\",badgeTextColor=\"#FFFFFF\",backgroundColor=\"#FFFFFF\",hoverBackgroundColor=\"#F5F5F5\",titleColor=\"#000000\",dateColor=\"#666666\",priceColor=\"#000000\",titleFont,bodyFont,badgeFont,borderRadius=12,showShadow=true,stackInfo=false,style}=props;const[isHovered,setIsHovered]=useState(false);const isFixedWidth=style?.width===\"100%\";const isFixedHeight=style?.height===\"100%\";return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",display:\"flex\",flexDirection:\"column\",backgroundColor:isHovered?hoverBackgroundColor:backgroundColor,borderRadius,overflow:\"hidden\",boxShadow:showShadow?\"0 4px 20px rgba(0, 0, 0, 0.1)\":\"none\",transition:\"background-color 0.3s ease\",cursor:\"pointer\",...isFixedWidth?{}:{width:\"100%\"},...isFixedHeight?{}:{height:\"100%\"}},onMouseEnter:()=>setIsHovered(true),onMouseLeave:()=>setIsHovered(false),children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"200px\",flexShrink:0,overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",transform:isHovered?\"scale(1.05)\":\"scale(1)\",transition:\"transform 0.3s ease\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:16,left:16,backgroundColor:badgeColor,color:badgeTextColor,padding:\"6px 12px\",borderRadius:6,...badgeFont},children:courseType})]}),/*#__PURE__*/_jsxs(\"div\",{style:{padding:20,display:\"flex\",flexDirection:\"column\",gap:12,flex:1},children:[/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,color:titleColor,...titleFont},children:title}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:stackInfo?\"column\":\"row\",justifyContent:stackInfo?\"flex-start\":\"space-between\",alignItems:stackInfo?\"flex-start\":\"center\",gap:stackInfo?4:0,marginTop:\"auto\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:dateColor,...bodyFont},children:date}),/*#__PURE__*/_jsx(\"span\",{style:{color:priceColor,fontWeight:600,...bodyFont},children:price})]})]})]});}addPropertyControls(CourseCard,{image:{type:ControlType.ResponsiveImage,title:\"Bild\"},title:{type:ControlType.String,title:\"\\xdcberschrift\",defaultValue:\"Einf\\xfchrung in die moderne Webentwicklung\",displayTextArea:true},date:{type:ControlType.String,title:\"Datum\",defaultValue:\"15. M\\xe4rz 2024\"},price:{type:ControlType.String,title:\"Preis\",defaultValue:\"€299\"},courseType:{type:ControlType.String,title:\"Typ\",defaultValue:\"Webinar\"},badgeColor:{type:ControlType.Color,title:\"Badge Farbe\",defaultValue:\"#0099FF\"},badgeTextColor:{type:ControlType.Color,title:\"Badge Text\",defaultValue:\"#FFFFFF\"},backgroundColor:{type:ControlType.Color,title:\"Hintergrund\",defaultValue:\"#FFFFFF\"},hoverBackgroundColor:{type:ControlType.Color,title:\"Hover Hintergrund\",defaultValue:\"#F5F5F5\"},titleColor:{type:ControlType.Color,title:\"Titel Farbe\",defaultValue:\"#000000\"},dateColor:{type:ControlType.Color,title:\"Datum Farbe\",defaultValue:\"#666666\"},priceColor:{type:ControlType.Color,title:\"Preis Farbe\",defaultValue:\"#000000\"},titleFont:{type:ControlType.Font,title:\"Titel Schrift\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"22px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},bodyFont:{type:ControlType.Font,title:\"Text Schrift\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},badgeFont:{type:ControlType.Font,title:\"Badge Schrift\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"12px\",variant:\"Semibold\",letterSpacing:\"0em\",lineHeight:\"1em\"}},borderRadius:{type:ControlType.Number,title:\"Eckenradius\",defaultValue:12,min:0,max:32,step:1},showShadow:{type:ControlType.Boolean,title:\"Schatten\",defaultValue:true,enabledTitle:\"An\",disabledTitle:\"Aus\"},stackInfo:{type:ControlType.Boolean,title:\"Datum/Preis untereinander\",defaultValue:false,enabledTitle:\"Ja\",disabledTitle:\"Nein\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CourseCard\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"320\",\"framerIntrinsicHeight\":\"420\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n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