{"version":3,"file":"shared-lib.CZAm8pHY.mjs","names":["useState","i","e","r","useRef","t","i","PropTypes"],"sources":["https:/framerusercontent.com/modules/cpT2ScQe7lOkrq2uDCI6/AbX2NwsQycAIXAleVHLH/HamburgerMenu.js","https:/framerusercontent.com/modules/6nszfV44CQe7wyjmg1Jt/raRyMCDljQmcw6FcZL9x/JitterEffect.js","https:/ga.jspm.io/npm:prop-types@15.8.1/_/eb83dd95.js","https:/ga.jspm.io/npm:prop-types@15.8.1/index.js","https:/framerusercontent.com/modules/HfSxvw45jA7ED7EFWeJz/mow23g7uO1bDeZ6LXS2l/Static_BG.js","https:/framerusercontent.com/modules/atcZaNqdET6FpWt92Xxn/tIwi4pctLrJUHD1M2cag/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{motion,AnimatePresence}from\"framer-motion\";const jitterKeyframes={x:[0,2,-2,1,-1,0],y:[0,-2,2,-1,1,0]};export default function HamburgerMenu(){const[isOpen,setIsOpen]=useState(false);const menuItems=[{text:\"Hjem\",href:\"/\"},{text:\"Mine Prosjekter\",href:\"/projects\"},{text:\"Yobr's How-To-wiki\",href:\"/yobrs-how-to-wiki-project\"}];const navigateTo=href=>{window.location.href=href;};return /*#__PURE__*/_jsxs(\"div\",{children:[!isOpen&&/*#__PURE__*/_jsx(\"div\",{onClick:()=>setIsOpen(true),style:{cursor:\"pointer\",width:48,height:48,borderRadius:\"50%\",backgroundColor:\"#EDC73E\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"},children:/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(motion.div,{animate:{rotate:0,y:0},style:{width:24,height:2,background:\"#457438\",margin:3}}),/*#__PURE__*/_jsx(motion.div,{animate:{opacity:1},style:{width:24,height:2,background:\"#457438\",margin:3}}),/*#__PURE__*/_jsx(motion.div,{animate:{rotate:0,y:0},style:{width:24,height:2,background:\"#457438\",margin:3}})]})}),/*#__PURE__*/_jsx(AnimatePresence,{children:isOpen&&/*#__PURE__*/_jsxs(motion.div,{initial:{x:\"100%\"},animate:{x:0},exit:{x:\"100%\"},transition:{duration:.4},style:{position:\"fixed\",top:0,right:0,height:\"100vh\",width:\"80vw\",background:\"#EEE6DA\",padding:40,zIndex:999,display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"div\",{onClick:()=>setIsOpen(false),style:{position:\"absolute\",top:20,right:20,width:48,height:48,borderRadius:\"50%\",backgroundColor:\"#163D0B\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",cursor:\"pointer\"},children:/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"24px\",color:\"#EEE6DA\",fontFamily:\"'Freckle Face', cursive\"},children:\"✕\"})}),menuItems.map((item,index)=>/*#__PURE__*/_jsx(\"div\",{onClick:()=>navigateTo(item.href),style:{cursor:\"pointer\",display:\"flex\",marginBottom:24},children:item.text.split(\"\").map((char,i)=>/*#__PURE__*/_jsx(motion.span,{animate:jitterKeyframes,transition:{duration:3,ease:\"steps(6)\",repeat:Infinity,repeatType:\"loop\",delay:i*.1},style:{fontFamily:\"'Freckle Face', cursive\",fontSize:\"36px\",color:\"#457438\",display:\"inline-block\",whiteSpace:\"pre\"},children:char===\" \"?\"\\xa0\":char},i))},item.text))]})})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HamburgerMenu\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HamburgerMenu.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";const randomOffset=()=>({x:Math.floor(Math.random()*5-2),y:Math.floor(Math.random()*5-2),rotate:Math.floor(Math.random()*6-3)});export default function JitterTextTaKontakt({text=\"Ta kontakt\"}){return /*#__PURE__*/_jsx(\"div\",{style:{fontFamily:\"'Freckle Face', cursive\",fontSize:\"48px\",color:\"#EEE6DA\",display:\"inline-block\",whiteSpace:\"pre-wrap\"},children:text.split(\"\").map((char,index)=>/*#__PURE__*/_jsx(motion.span,{animate:randomOffset(),transition:{duration:1.2,ease:\"steps(1)\",repeat:Infinity,repeatType:\"loop\",delay:index*.1},style:{display:\"inline-block\",whiteSpace:\"pre\"},children:char===\" \"?\"\\xa0\":char},index))});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"JitterTextTaKontakt\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./JitterEffect.map","var _={};var a=\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\";_=a;var r=_;export{r as _};\n\n//# sourceMappingURL=eb83dd95.js.map","import{_ as e}from\"./_/eb83dd95.js\";var t={};var i=e;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;t=function(){function shim(e,t,n,r,s,m){if(m!==i){var o=new Error(\"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types\");o.name=\"Invariant Violation\";throw o}}shim.isRequired=shim;function getShim(){return shim}var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};e.PropTypes=e;return e};var n=t;var r={};r=n();var s=r;export{s as default};\n\n//# sourceMappingURL=index.js.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import PropTypes from\"prop-types\";export default function FastStaticNoise({width=\"100%\",height=\"100%\",fps=12,grain=.45,useDevicePixelRatio=false}){const canvasRef=useRef(null);const bufRef=useRef({canvas:null,ctx:null,img:null,u8:null});useEffect(()=>{const canvas=canvasRef.current;if(!canvas)return;const ctx=canvas.getContext(\"2d\",{alpha:true});const dpr=useDevicePixelRatio?window.devicePixelRatio||1:1;const ensureBuffer=(wCss,hCss)=>{const bw=Math.max(2,Math.floor(wCss*grain));const bh=Math.max(2,Math.floor(hCss*grain));let buf=bufRef.current;if(!buf.canvas){buf.canvas=document.createElement(\"canvas\");buf.ctx=buf.canvas.getContext(\"2d\");}if(buf.canvas.width!==bw||buf.canvas.height!==bh){buf.canvas.width=bw;buf.canvas.height=bh;buf.img=buf.ctx.createImageData(bw,bh);buf.u8=buf.img.data;}};const resize=()=>{const rect=canvas.getBoundingClientRect();if(!rect.width||!rect.height)return;canvas.width=Math.floor(rect.width*dpr);canvas.height=Math.floor(rect.height*dpr);ensureBuffer(rect.width,rect.height);};const ro=new ResizeObserver(resize);ro.observe(canvas);resize();let running=true;let last=0;const interval=1e3/fps;const draw=t=>{if(!running)return;if(t-last>=interval){last=t;const{ctx:bctx,img,u8,canvas:bc}=bufRef.current;for(let i=0;i<u8.length;i+=4){const v=160+(Math.random()*95|0);u8[i]=u8[i+1]=u8[i+2]=v;u8[i+3]=60;}bctx.putImageData(img,0,0);ctx.clearRect(0,0,canvas.width,canvas.height);ctx.imageSmoothingEnabled=true// keep smooth upscale\n;ctx.drawImage(bc,0,0,canvas.width,canvas.height);}requestAnimationFrame(draw);};requestAnimationFrame(draw);return()=>{running=false;ro.disconnect();};},[fps,grain,useDevicePixelRatio]);return /*#__PURE__*/_jsx(\"canvas\",{ref:canvasRef,style:{width:typeof width===\"number\"?`${width}px`:width,height:typeof height===\"number\"?`${height}px`:height,position:\"absolute\",top:0,left:0,zIndex:-1,pointerEvents:\"none\"}});}FastStaticNoise.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),height:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),fps:PropTypes.number,grain:PropTypes.number,useDevicePixelRatio:PropTypes.bool};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FastStaticNoise\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Static_BG.map","// Generated by Framer (f58a639)\nexport default function metadata(params,activeLocale){return{description:\"Glenn Ofori's Portofolio - Enjoy your stay! \",favicon:\"https://framerusercontent.com/assets/MIUByp5jTfGA6AMJQaIBcStC6Nc.png\",robots:\"max-image-preview:large\",title:\"Glenn Ofori's Portofolio\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"+TAAmM,SAAwB,GAAe,CAAC,GAAK,CAAC,EAAO,EAAU,CAACA,EAAS,IAAa,EAAU,CAAC,CAAC,KAAK,OAAO,KAAK,IAAI,CAAC,CAAC,KAAK,kBAAkB,KAAK,YAAY,CAAC,CAAC,KAAK,qBAAqB,KAAK,6BAA6B,CAAC,CAAO,EAAW,GAAM,CAAC,EAAO,SAAS,KAAK,CAAM,EAAC,OAAoB,EAAM,MAAM,CAAC,SAAS,CAAC,CAAC,GAAqB,EAAK,MAAM,CAAC,YAAY,EAAU,IAAM,MAAM,CAAC,OAAO,UAAU,MAAM,GAAG,OAAO,GAAG,aAAa,MAAM,gBAAgB,UAAU,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,CAAC,SAAsB,EAAM,MAAM,CAAC,SAAS,CAAc,EAAK,EAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,EAAE,WAAW,UAAU,OAAO,EAAE,CAAC,EAAe,EAAK,EAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ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