{"version":3,"file":"Service_card.DPJ3Q1Q_.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/hXms0FYyUqfbPjh4rCBX/E6jImNNQ9pA9fYWmAqAM/Service_card.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect}from\"react\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function ServiceCard(props){const{number=\"01\",title=\"Lighting, Powerpoints And Fans\",description=\"Clean, professional installation and replacement of the everyday essentials throughout your home.\",buttonText=\"READ MORE\",buttonLink=\"#\",accentColor=\"#F68419\",onButtonClick}=props;const[isMobile,setIsMobile]=useState(false);useEffect(()=>{const check=()=>setIsMobile(window.innerWidth<810);check();window.addEventListener(\"resize\",check);return()=>window.removeEventListener(\"resize\",check);},[]);const handleClick=()=>{if(onButtonClick){onButtonClick();}else if(buttonLink&&buttonLink!==\"#\"){window.location.href=buttonLink;}};if(isMobile){return /*#__PURE__*/_jsxs(\"div\",{onClick:handleClick,style:styles.mobileCard,children:[/*#__PURE__*/_jsx(\"div\",{style:{...styles.leftBar,backgroundColor:accentColor}}),/*#__PURE__*/_jsx(\"div\",{style:{...styles.mobileNumberBadge,backgroundColor:accentColor},children:/*#__PURE__*/_jsx(\"span\",{style:styles.mobileNumber,children:number})}),/*#__PURE__*/_jsx(\"h3\",{style:styles.mobileTitle,children:title}),/*#__PURE__*/_jsx(\"div\",{style:{...styles.mobileArrow,color:accentColor},children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{width:18,height:18},children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12h14M12 5l7 7-7 7\"})})})]});}return /*#__PURE__*/_jsxs(\"div\",{style:styles.card,children:[/*#__PURE__*/_jsx(\"div\",{style:{...styles.diagonalAccent,backgroundColor:accentColor}}),/*#__PURE__*/_jsx(\"div\",{style:{...styles.leftBar,backgroundColor:accentColor}}),/*#__PURE__*/_jsx(\"div\",{style:styles.numberWrapper,children:/*#__PURE__*/_jsx(\"div\",{style:{...styles.numberBadge,backgroundColor:accentColor},children:/*#__PURE__*/_jsx(\"span\",{style:styles.number,children:number})})}),/*#__PURE__*/_jsxs(\"div\",{style:styles.content,children:[/*#__PURE__*/_jsx(\"h3\",{style:styles.title,children:title}),/*#__PURE__*/_jsx(\"p\",{style:styles.description,children:description}),/*#__PURE__*/_jsxs(\"div\",{onClick:handleClick,style:{...styles.button,color:accentColor},children:[/*#__PURE__*/_jsx(\"span\",{style:styles.buttonText,children:buttonText}),/*#__PURE__*/_jsx(\"svg\",{style:styles.arrow,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12h14M12 5l7 7-7 7\"})})]})]})]});}const styles={card:{position:\"relative\",width:\"100%\",height:\"100%\",backgroundColor:\"white\",borderRadius:\"12px\",boxShadow:\"0 15px 50px rgba(0,0,0,0.15), 0 5px 15px rgba(0,0,0,0.08)\",display:\"flex\",flexDirection:\"column\",overflow:\"hidden\"},diagonalAccent:{position:\"absolute\",top:0,right:0,width:\"50%\",height:\"100px\",clipPath:\"polygon(100% 0, 0 0, 100% 100%)\",opacity:.1},leftBar:{position:\"absolute\",top:\"20px\",left:0,width:\"5px\",height:\"60px\",borderRadius:\"0 4px 4px 0\"},numberWrapper:{display:\"flex\",justifyContent:\"center\",paddingTop:\"24px\"},numberBadge:{width:\"56px\",height:\"56px\",borderRadius:\"12px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxShadow:\"0 4px 15px rgba(246, 132, 25, 0.4)\",transform:\"rotate(-3deg)\"},number:{fontFamily:\"'Oswald', 'Impact', sans-serif\",fontSize:\"26px\",fontWeight:700,color:\"white\"},content:{flex:1,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",textAlign:\"center\",padding:\"24px 28px 24px\",gap:\"14px\"},title:{margin:0,fontFamily:\"'Roboto', sans-serif\",fontSize:\"20px\",fontWeight:700,color:\"#1a1a1a\",lineHeight:1.3},description:{margin:0,flex:1,fontFamily:\"'Roboto', sans-serif\",fontSize:\"14px\",fontWeight:400,lineHeight:1.6,color:\"#666666\"},button:{display:\"flex\",alignItems:\"center\",gap:\"6px\",cursor:\"pointer\",marginTop:\"8px\"},buttonText:{fontFamily:\"'Roboto', sans-serif\",fontSize:\"13px\",fontWeight:700,letterSpacing:\"0.5px\"},arrow:{width:\"14px\",height:\"14px\"},mobileCard:{position:\"relative\",width:\"100%\",height:\"100%\",minHeight:\"82px\",backgroundColor:\"white\",borderRadius:\"12px\",boxShadow:\"0 8px 24px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06)\",display:\"flex\",flexDirection:\"row\",alignItems:\"center\",gap:\"16px\",padding:\"14px 18px 14px 22px\",cursor:\"pointer\",overflow:\"hidden\"},mobileNumberBadge:{flexShrink:0,width:\"48px\",height:\"48px\",borderRadius:\"10px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxShadow:\"0 3px 10px rgba(246, 132, 25, 0.35)\",transform:\"rotate(-3deg)\"},mobileNumber:{fontFamily:\"'Oswald', 'Impact', sans-serif\",fontSize:\"22px\",fontWeight:700,color:\"white\"},mobileTitle:{flex:1,margin:0,fontFamily:\"'Roboto', sans-serif\",fontSize:\"15px\",fontWeight:700,color:\"#1a1a1a\",lineHeight:1.3,textAlign:\"left\"},mobileArrow:{flexShrink:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\"}};const fontUrl=\"https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Roboto:wght@400;700&display=swap\";if(typeof document!==\"undefined\"){const existing=document.querySelector(`link[href=\"${fontUrl}\"]`);if(!existing){const link=document.createElement(\"link\");link.href=fontUrl;link.rel=\"stylesheet\";document.head.appendChild(link);}}addPropertyControls(ServiceCard,{number:{type:ControlType.String,title:\"Number\",defaultValue:\"01\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Lighting, Powerpoints And Fans\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"Clean, professional installation and replacement of the everyday essentials throughout your home.\",displayTextArea:true},buttonText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"READ MORE\"},buttonLink:{type:ControlType.Link,title:\"Button Link\"},accentColor:{type:ControlType.Color,title:\"Accent Colour\",defaultValue:\"#F68419\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ServiceCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Service_card.map"],"mappings":"iMAGG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,SAAO,KAAK,QAAM,iCAAiC,cAAY,oGAAoG,aAAW,YAAY,aAAW,IAAI,cAAY,UAAU,iBAAe,EAAW,CAAC,EAAS,GAAaA,EAAS,GAAM,CAAC,MAAc,CAAC,IAAM,MAAU,EAAY,EAAO,WAAW,IAAI,CAAiD,OAAhD,GAAO,CAAC,EAAO,iBAAiB,SAAS,EAAM,KAAW,EAAO,oBAAoB,SAAS,EAAM,EAAG,EAAE,CAAC,CAAC,IAAM,MAAgB,CAAI,EAAe,GAAe,CAAU,GAAY,IAAa,MAAK,EAAO,SAAS,KAAK,IAAivB,OAAhuB,EAA8B,EAAM,MAAM,CAAC,QAAQ,EAAY,MAAM,EAAO,WAAW,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAO,QAAQ,gBAAgB,EAAY,CAAC,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAO,kBAAkB,gBAAgB,EAAY,CAAC,SAAsB,EAAK,OAAO,CA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