{"version":3,"file":"FeatureShowcaseCards.CoSedTjx.mjs","names":["React.useState","React.useRef","React.useLayoutEffect","React.useEffect","__esmMin","init_npm_react_18_3_1","le","window","_e","de","init_jsx_runtime","p","ce","init_ssg_sandbox_shims","addPropertyControls","init_framer_Cb9Z_4vX","ControlType","useWidth","initial","style","w","setW","useIsoLayoutEffect","el","ref","ro","fontStyle","s","f","n","scale","FeatureShowcaseCards","props","ts","titleStyle","titleSize","titleWeight","titleLineHeight","titleLetterSpacing","bodyStyle","bodySize","bodyWeight","bodyLineHeight","bodyLetterSpacing","placeholderStyle","placeholderSize","placeholderWeight","placeholderLineHeight","placeholderLetterSpacing","cards","gap","radius","cardBackground","cardBorder","inkColor","bodyColor","FONT_FAMILY","CSS","card","i","init_FeatureShowcaseCards"],"sources":["https:/framerusercontent.com/modules/VlWpJvMxFjlPVDmneHtG/PXnchmpthx3lrp0Yr4kx/FeatureShowcaseCards.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const useIsoLayoutEffect=typeof window!==\"undefined\"?React.useLayoutEffect:React.useEffect;/** Measures the component's own rendered width (unaffected by canvas zoom). */function useWidth(ref,style){const initial=typeof style?.width===\"number\"?style.width:null;const[w,setW]=React.useState(initial);useIsoLayoutEffect(()=>{const el=ref.current;if(!el)return;setW(el.offsetWidth);if(typeof ResizeObserver===\"undefined\")return;const ro=new ResizeObserver(()=>setW(el.offsetWidth));ro.observe(el);return()=>ro.disconnect();},[]);return w;}/** Applies the picked font directly as inline style (this is what makes Framer load and use the font). The size is multiplied by `scale`. */function fontStyle(f,scale){const s={...f||{}};if(s.fontSize!==undefined&&s.fontSize!==null&&s.fontSize!==\"\"){const n=parseFloat(String(s.fontSize));if(!isNaN(n))s.fontSize=`${n*scale}px`;else delete s.fontSize;}else delete s.fontSize;return s;}const FONT_FAMILY=\"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif\";const CSS=`\n@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');\n.fsc{width:100%}\n/* each card spans 3 shared rows (title, text, image) so they line up across cards */\n.fsc-grid{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));grid-auto-rows:auto auto 1fr;gap:var(--gap);box-sizing:border-box;font-family:var(--font)}\n.fsc-card{background:var(--card);border:1px solid var(--cardb);border-radius:var(--radius);padding:26px 26px 28px;box-sizing:border-box;display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:0;min-width:0}\n.fsc-card h4{grid-row:1;font-weight:700;color:var(--ink);font-size:calc(18.5px * var(--ts,1));line-height:1.3;margin:0 0 8px;overflow-wrap:break-word}\n.fsc-card p{grid-row:2;font-size:calc(14.5px * var(--ts,1));line-height:1.62;color:var(--bodyc);margin:0 0 22px;overflow-wrap:break-word}\n.fsc-img{grid-row:3;align-self:start;display:block;width:100%;height:auto;border-radius:16px;filter:drop-shadow(0 20px 40px rgba(28,18,89,.14))}\n.fsc-empty{grid-row:3;align-self:start;width:100%;aspect-ratio:520/242;border-radius:16px;border:1.5px dashed #C9C0F0;background:#F1EEFD;display:flex;align-items:center;justify-content:center;color:#7C4DFF;font-size:13px;font-weight:600}\n/* tablet portrait and below: stack the cards (set from the measured width) */\n.fsc[data-stack] .fsc-grid{grid-template-columns:minmax(0,1fr)}\n.fsc[data-phone] .fsc-card{padding:22px 20px 24px}\n`;export default function FeatureShowcaseCards(props){const ref=React.useRef(null);const w=useWidth(ref,props.style);const{cards,gap,radius,cardBackground,cardBorder,inkColor,bodyColor,titleSize,titleWeight,titleLineHeight=1.3,titleLetterSpacing=0,bodySize,bodyWeight,bodyLineHeight=1.62,bodyLetterSpacing=0,placeholderSize,placeholderWeight,placeholderLineHeight=1.2,placeholderLetterSpacing=0}=props;const ts=(props.textScale||100)/100;const titleStyle={...fontStyle(props.titleFont,ts),fontSize:`${titleSize*ts}px`,fontWeight:titleWeight,lineHeight:`${titleLineHeight}em`,letterSpacing:`${titleLetterSpacing}px`};const bodyStyle={...fontStyle(props.bodyFont,ts),fontSize:`${bodySize*ts}px`,fontWeight:bodyWeight,lineHeight:`${bodyLineHeight}em`,letterSpacing:`${bodyLetterSpacing}px`};const placeholderStyle={fontSize:`${placeholderSize}px`,fontWeight:placeholderWeight,lineHeight:`${placeholderLineHeight}em`,letterSpacing:`${placeholderLetterSpacing}px`};return /*#__PURE__*/_jsxs(\"div\",{ref:ref,className:\"fsc\",\"data-stack\":w!==null&&w<700?\"\":undefined,\"data-phone\":w!==null&&w<=480?\"\":undefined,style:{...props.style,\"--ts\":ts,\"--n\":Math.max(cards.length,1),\"--gap\":`${gap}px`,\"--radius\":`${radius}px`,\"--card\":cardBackground,\"--cardb\":cardBorder,\"--ink\":inkColor,\"--bodyc\":bodyColor,\"--font\":FONT_FAMILY},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(\"div\",{className:\"fsc-grid\",children:cards.map((card,i)=>/*#__PURE__*/_jsxs(\"div\",{className:\"fsc-card\",children:[/*#__PURE__*/_jsx(\"h4\",{style:titleStyle,children:card.title}),/*#__PURE__*/_jsx(\"p\",{style:bodyStyle,children:card.text}),card.image?.src?/*#__PURE__*/_jsx(\"img\",{className:\"fsc-img\",src:card.image.src,alt:card.image.alt||card.title}):/*#__PURE__*/_jsx(\"div\",{className:\"fsc-empty\",style:placeholderStyle,children:\"Add an image\"})]},i))})]});}FeatureShowcaseCards.defaultProps={width:1080,textScale:100,titleSize:18.5,titleWeight:700,titleLineHeight:1.3,titleLetterSpacing:0,bodySize:14.5,bodyWeight:400,bodyLineHeight:1.62,bodyLetterSpacing:0,placeholderSize:13,placeholderWeight:600,placeholderLineHeight:1.2,placeholderLetterSpacing:0,cards:[{title:\"Discussion hubs built into each lesson\",text:\"Members can post about their progress and ask questions directly inside each lesson – instead of feeling like they're on the journey alone.\"},{title:\"Submit homework and receive feedback\",text:\"Members can submit videos for instructor feedback or share updates on their learning journey, encouraging them to learn by taking action, not just watching.\"}],gap:24,radius:20,cardBackground:\"#F7F7FA\",cardBorder:\"#ECEAF3\",inkColor:\"#1C1259\",bodyColor:\"#5B6270\"};addPropertyControls(FeatureShowcaseCards,{cards:{type:ControlType.Array,title:\"Cards\",maxCount:3,control:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Title\"},text:{type:ControlType.String,title:\"Text\",displayTextArea:true},image:{type:ControlType.ResponsiveImage,title:\"Image\"}}}},textScale:{type:ControlType.Number,title:\"All text\",min:60,max:200,step:5,unit:\"%\"},titleFont:{type:ControlType.Font,title:\"Title font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"18.5px\",variant:\"Bold\",lineHeight:\"1.3em\"}},titleSize:{type:ControlType.Number,title:\"Heading Size\",defaultValue:18.5,min:8,max:160,step:1,unit:\"px\"},titleWeight:{type:ControlType.Number,title:\"Heading Weight\",defaultValue:700,min:100,max:900,step:100},titleLineHeight:{type:ControlType.Number,title:\"Heading Line Height\",defaultValue:1.3,min:.5,max:3,step:.05,unit:\"em\"},titleLetterSpacing:{type:ControlType.Number,title:\"Heading Letter Spacing\",defaultValue:0,min:-5,max:20,step:.1,unit:\"px\"},inkColor:{type:ControlType.Color,title:\"Title colour\"},bodyFont:{type:ControlType.Font,title:\"Text font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14.5px\",variant:\"Regular\",lineHeight:\"1.62em\"}},bodySize:{type:ControlType.Number,title:\"Body Size\",defaultValue:14.5,min:8,max:160,step:1,unit:\"px\"},bodyWeight:{type:ControlType.Number,title:\"Body Weight\",defaultValue:400,min:100,max:900,step:100},bodyLineHeight:{type:ControlType.Number,title:\"Body Line Height\",defaultValue:1.62,min:.5,max:3,step:.05,unit:\"em\"},bodyLetterSpacing:{type:ControlType.Number,title:\"Body Letter Spacing\",defaultValue:0,min:-5,max:20,step:.1,unit:\"px\"},placeholderSize:{type:ControlType.Number,title:\"Placeholder Size\",defaultValue:13,min:8,max:160,step:1,unit:\"px\"},placeholderWeight:{type:ControlType.Number,title:\"Placeholder Weight\",defaultValue:600,min:100,max:900,step:100},placeholderLineHeight:{type:ControlType.Number,title:\"Placeholder Line Height\",defaultValue:1.2,min:.5,max:3,step:.05,unit:\"em\"},placeholderLetterSpacing:{type:ControlType.Number,title:\"Placeholder Letter Spacing\",defaultValue:0,min:-5,max:20,step:.1,unit:\"px\"},bodyColor:{type:ControlType.Color,title:\"Text colour\"},gap:{type:ControlType.Number,title:\"Gap\",min:0,max:80,unit:\"px\"},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:60,unit:\"px\"},cardBackground:{type:ControlType.Color,title:\"Card\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FeatureShowcaseCards\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FeatureShowcaseCards.map"],"mappings":"A,gNAAmT,SAASiB,EAAS,EAAI,EAAM,CAAC,IAAMC,EAAQ,OAAOC,GAAO,OAAQ,SAASA,EAAM,MAAM,KAAU,CAACC,EAAEC,GAAMrB,EAAekB,CAAO,EAAqO,OAAnOI,MAAuB,CAAC,IAAMC,EAAGC,EAAI,QAA2C,GAAhC,CAACD,IAAUF,EAAKE,EAAG,WAAW,EAAK,OAAO,eAAiB,KAAY,OAAO,IAAME,EAAG,IAAI,mBAAmBJ,EAAKE,EAAG,WAAW,CAAC,EAAiB,OAAfE,EAAG,QAAQF,CAAE,MAAYE,EAAG,WAAW,CAAE,EAAE,CAAC,CAAC,EAASL,CAAE,CAA8I,SAASM,EAAU,EAAE,EAAM,CAAC,IAAMC,EAAE,CAAC,GAAGC,GAAG,CAAC,CAAC,EAAE,GAAGD,EAAE,WAAW,IAAA,IAAWA,EAAE,WAAW,MAAMA,EAAE,WAAW,GAAG,CAAC,IA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