{"version":3,"file":"Section.TS-tt675.mjs","names":["Section","useRef","useState","useState"],"sources":["https:/framerusercontent.com/modules/66FYDl8CU52aq4DKwEYz/dSn4nBcNRTp3xh0tRdDH/Section_1.js","https:/framerusercontent.com/modules/2XacDQNTFxcl4ytyWeky/TPjXvv9pO7MS00wwgwzQ/Section.js"],"sourcesContent":["// Section with heading, text, and image that can be positioned on either side\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect,useRef}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function Section(props){const{heading,text,image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},imagePosition,backgroundColor,textColor,headingFont,textFont,gap,padding,style}=props;const isImageLeft=imagePosition===\"left\";const containerRef=useRef(null);const[isMobile,setIsMobile]=useState(false);const[isSmallMobile,setIsSmallMobile]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;const checkWidth=()=>{if(containerRef.current){const width=containerRef.current.offsetWidth;setIsMobile(width<768);setIsSmallMobile(width<=480);}};checkWidth();const resizeObserver=new ResizeObserver(checkWidth);if(containerRef.current){resizeObserver.observe(containerRef.current);}return()=>{resizeObserver.disconnect();};},[]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{...style,position:\"relative\",width:\"100%\",backgroundColor,color:textColor,padding:`${isSmallMobile?40:isMobile?56:80}px ${padding}px`,boxSizing:\"border-box\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:isMobile?\"column\":isImageLeft?\"row\":\"row-reverse\",alignItems:\"center\",gap,width:\"100%\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,display:\"flex\",flexDirection:\"column\",gap:gap/2},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,...headingFont},children:heading}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,...textFont},children:text})]}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1,width:\"100%\",aspectRatio:\"16/9\",overflow:\"hidden\",borderRadius:8},children:/*#__PURE__*/_jsx(\"img\",{...image,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}})})]})});}addPropertyControls(Section,{heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"Welcome to Our Section\"},text:{type:ControlType.String,title:\"Text\",defaultValue:\"This is a flexible section component with an image that can be positioned on either side. Customize the content and layout to fit your needs.\",displayTextArea:true},image:{type:ControlType.ResponsiveImage,title:\"Image\"},imagePosition:{type:ControlType.Enum,title:\"Image Position\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],defaultValue:\"right\",displaySegmentedControl:true},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},headingFont:{type:ControlType.Font,title:\"Heading Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"}},textFont:{type:ControlType.Font,title:\"Text Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:40,min:0,max:100,step:4,unit:\"px\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:40,min:0,max:100,step:4,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Section\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Section_1.map","// Section with heading, image, subheading, and body text\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function Section(props){const{heading,headingFont,headingColor,image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},subheading,subheadingFont,subheadingColor,body,bodyFont,bodyColor,backgroundColor,gap,padding,style}=props;const[screenSize,setScreenSize]=useState(\"desktop\");useEffect(()=>{if(typeof window===\"undefined\")return;const handleResize=()=>{const width=window.innerWidth;if(width<768){setScreenSize(\"mobile\");}else if(width<1024){setScreenSize(\"tablet\");}else{setScreenSize(\"desktop\");}};handleResize();window.addEventListener(\"resize\",handleResize);return()=>window.removeEventListener(\"resize\",handleResize);},[]);const responsiveHorizontalPadding=screenSize===\"mobile\"?padding*.5:screenSize===\"tablet\"?padding*.75:padding;const responsiveVerticalPadding=screenSize===\"mobile\"?40:screenSize===\"tablet\"?56:80;const responsiveGap=screenSize===\"mobile\"?gap*.6:screenSize===\"tablet\"?gap*.8:gap;const getResponsiveFontSize=fontSize=>{const size=typeof fontSize===\"string\"?parseFloat(fontSize):fontSize;if(screenSize===\"mobile\")return`${size*.6}px`;if(screenSize===\"tablet\")return`${size*.8}px`;return typeof fontSize===\"string\"?fontSize:`${fontSize}px`;};return /*#__PURE__*/_jsxs(\"section\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",backgroundColor,padding:`${responsiveVerticalPadding}px ${responsiveHorizontalPadding}px`,display:\"flex\",flexDirection:\"column\",gap:responsiveGap,overflow:\"auto\"},children:[/*#__PURE__*/_jsx(\"h1\",{style:{margin:0,color:headingColor,...headingFont,fontSize:getResponsiveFontSize(headingFont.fontSize||40)},children:heading}),/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt,style:{width:\"100%\",height:\"auto\",objectFit:\"cover\",borderRadius:8}}),/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,color:subheadingColor,...subheadingFont,fontSize:getResponsiveFontSize(subheadingFont.fontSize||32)},children:subheading}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:bodyColor,...bodyFont,fontSize:getResponsiveFontSize(bodyFont.fontSize||15)},children:body})]});}addPropertyControls(Section,{heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"Welcome to Our Section\"},headingFont:{type:ControlType.Font,title:\"Heading Font\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},headingColor:{type:ControlType.Color,title:\"Heading Color\",defaultValue:\"#000000\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},subheading:{type:ControlType.String,title:\"Subheading\",defaultValue:\"Discover Amazing Features\"},subheadingFont:{type:ControlType.Font,title:\"Subheading Font\",defaultValue:{fontSize:\"32px\",variant:\"Semibold\",letterSpacing:\"-0.03em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},subheadingColor:{type:ControlType.Color,title:\"Subheading Color\",defaultValue:\"#000000\"},body:{type:ControlType.String,title:\"Body\",defaultValue:\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.\",displayTextArea:true},bodyFont:{type:ControlType.Font,title:\"Body Font\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},bodyColor:{type:ControlType.Color,title:\"Body Color\",defaultValue:\"#000000\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:20,min:0,max:100,step:4,unit:\"px\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:40,min:0,max:200,step:4,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Section\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Section.map"],"mappings":"6MAIG,SAAwBA,EAAQ,EAAM,CAAC,GAAK,CAAC,UAAQ,OAAK,QAAM,CAAC,IAAI,sEAAsE,IAAI,mBAAmB,EAAE,gBAAc,kBAAgB,YAAU,cAAY,WAAS,MAAI,UAAQ,SAAO,EAAY,EAAY,IAAgB,OAAa,EAAaC,EAAO,IAAI,EAAO,CAAC,EAAS,GAAaC,EAAS,EAAK,EAAO,CAAC,EAAc,GAAkBA,EAAS,EAAK,EAAiY,OAA/X,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,MAAe,CAAC,GAAG,EAAa,QAAQ,CAAC,IAAM,EAAM,EAAa,QAAQ,YAAY,EAAY,EAAM,GAAG,EAAE,EAAiB,GAAO,GAAG,CAAE,CAAC,EAAE,EAAW,EAAE,IAAM,EAAe,IAAI,eAAe,CAAU,EAAyE,OAApE,EAAa,SAAS,EAAe,QAAQ,EAAa,OAAO,MAAa,CAAC,EAAe,WAAW,CAAE,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,MAAM,CAAC,IAAI,EAAa,MAAM,CAAC,GAAG,EAAM,SAAS,WAAW,MAAM,OAAO,kBAAgB,MAAM,EAAU,QAAQ,GAAG,EAAc,GAAG,EAAS,GAAG,GAAG,KAAK,EAAQ,IAAI,UAAU,YAAY,EAAE,SAAsB,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,cAAc,EAAS,SAAS,EAAY,MAAM,cAAc,WAAW,SAAS,MAAI,MAAM,MAAM,EAAE,SAAS,CAAc,EAAM,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,OAAO,cAAc,SAAS,IAAI,EAAI,CAAC,EAAE,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