{"version":3,"file":"StarsBackground.DBjw7yoM.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/oNG7Fhg1RNUzMPMqrZW8/WxoquUbBja94LResap2L/StarsBackground.js"],"sourcesContent":["// StarsBackground background with varying dot sizes and subtle colors\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StarsBackground(props){const{starCount=200,backgroundColor=\"#0a0a1a\",starColors=[\"#ffffff\",\"#ffffcc\",\"#ccddff\",\"#ffccdd\",\"#ccffcc\"],minSize=1,maxSize=4,opacity=.8,twinkle=true}=props;const stars=useMemo(()=>{return Array.from({length:starCount},(_,i)=>{const size=Math.random()*(maxSize-minSize)+minSize;const x=Math.random()*100;const y=Math.random()*100;const color=starColors[Math.floor(Math.random()*starColors.length)];const delay=Math.random()*3;return{id:i,size,x,y,color,delay};});},[starCount,minSize,maxSize,starColors]);return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,position:\"relative\",width:\"100%\",height:\"100%\",backgroundColor,overflow:\"hidden\"},children:[stars.map(star=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:`${star.x}%`,top:`${star.y}%`,width:`${star.size}px`,height:`${star.size}px`,backgroundColor:star.color,borderRadius:\"50%\",opacity,animation:twinkle?`twinkle 3s infinite ${star.delay}s`:\"none\"}},star.id)),twinkle&&/*#__PURE__*/_jsx(\"style\",{children:`\n                        @keyframes twinkle {\n                            0%, 100% { opacity: ${opacity}; }\n                            50% { opacity: ${opacity*.3}; }\n                        }\n                    `})]});}addPropertyControls(StarsBackground,{starCount:{type:ControlType.Number,title:\"Star Count\",defaultValue:200,min:50,max:500,step:10},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#0a0a1a\"},starColors:{type:ControlType.Array,title:\"Star Colors\",control:{type:ControlType.Color},defaultValue:[\"#ffffff\",\"#ffffcc\",\"#ccddff\",\"#ffccdd\",\"#ccffcc\"],maxCount:10},minSize:{type:ControlType.Number,title:\"Min Size\",defaultValue:1,min:.5,max:5,step:.5,unit:\"px\"},maxSize:{type:ControlType.Number,title:\"Max Size\",defaultValue:4,min:1,max:10,step:.5,unit:\"px\"},opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:.8,min:.1,max:1,step:.1},twinkle:{type:ControlType.Boolean,title:\"Twinkle Effect\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StarsBackground\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StarsBackground.map"],"mappings":"kLAIG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,YAAU,IAAI,kBAAgB,UAAU,aAAW,CAAC,UAAU,UAAU,UAAU,UAAU,UAAU,CAAC,UAAQ,EAAE,UAAQ,EAAE,UAAQ,GAAG,UAAQ,IAAM,EAAY,EAAMA,MAAoB,MAAM,KAAK,CAAC,OAAO,EAAU,EAAE,EAAE,KAAkN,CAAC,GAAG,EAAE,KAAxM,KAAK,QAAQ,EAAE,EAAQ,GAAS,EAA6K,EAA7J,KAAK,QAAQ,CAAC,IAAiJ,EAArI,KAAK,QAAQ,CAAC,IAAyH,MAAzG,EAAW,KAAK,MAAM,KAAK,QAAQ,CAAC,EAAW,OAAO,EAAyD,MAA3C,KAAK,QAAQ,CAAC,EAAmC,EAAG,CAAG,CAAC,EAAU,EAAQ,EAAQ,EAAW,CAAC,CAAC,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,kBAAgB,SAAS,SAAS,CAAC,SAAS,CAAC,E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