{"version":3,"file":"Navigation.DNAY5KpN.mjs","names":["useState","useMemo"],"sources":["https:/framerusercontent.com/modules/Vj8WjHgJ0CqIMZFuXJ1j/zFQDYoz1q8C0iZzvICfC/Navigation.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{startTransition,useEffect,useMemo,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function Navigation(props){const{menuColor,style}=props;const[isMobile,setIsMobile]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;const updateBreakpoint=()=>{startTransition(()=>{setIsMobile(window.innerWidth<768);});};updateBreakpoint();window.addEventListener(\"resize\",updateBreakpoint);return()=>window.removeEventListener(\"resize\",updateBreakpoint);},[]);const color=menuColor===\"White\"?\"#FFFFFF\":\"#000000\";const logoFilter=menuColor===\"White\"?\"brightness(0) invert(1)\":\"none\";const horizontalPadding=isMobile?10:20;const linkStyle=useMemo(()=>({color,textDecoration:\"none\",fontSize:12,fontWeight:600,lineHeight:\"135.5%\",fontFamily:\"Switzer, Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif\",whiteSpace:\"nowrap\"}),[color]);return /*#__PURE__*/_jsxs(\"nav\",{\"aria-label\":\"Main navigation\",style:{position:\"relative\",width:\"100%\",height:40,minHeight:40,maxHeight:40,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",background:\"transparent\",paddingLeft:horizontalPadding,paddingRight:horizontalPadding,boxSizing:\"border-box\",...style},children:[/*#__PURE__*/_jsx(\"a\",{href:\"/\",\"aria-label\":\"Home\",style:{display:\"inline-flex\",alignItems:\"center\",width:78,minWidth:78,height:\"auto\",lineHeight:0},children:/*#__PURE__*/_jsx(\"img\",{src:\"https://framerusercontent.com/images/B3Uq9M0aOBtA3gY2P2U8zldLY0.svg\",alt:\"Max Peters logo\",style:{width:78,height:\"auto\",filter:logoFilter,display:\"block\"}})}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:10,flex:1},children:[/*#__PURE__*/_jsx(\"a\",{href:\"/case-studies\",style:linkStyle,children:\"Works\"}),/*#__PURE__*/_jsx(\"a\",{href:\"/about\",style:linkStyle,children:\"About\"}),/*#__PURE__*/_jsx(\"a\",{href:\"/contact\",style:linkStyle,children:\"Contact\"})]}),/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":true,style:{width:78,minWidth:78,height:1}})]});}addPropertyControls(Navigation,{menuColor:{type:ControlType.Enum,title:\"Menu color\",options:[\"Black\",\"White\"],optionTitles:[\"Black\",\"White\"],defaultValue:\"Black\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Navigation\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Navigation.map"],"mappings":"oNAGG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,YAAU,SAAO,EAAW,CAAC,EAAS,GAAaA,EAAS,EAAK,EAAE,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,MAAqB,CAAC,MAAoB,CAAC,EAAY,EAAO,WAAW,GAAG,CAAE,CAAC,CAAE,EAAwE,OAAtE,EAAiB,EAAE,EAAO,iBAAiB,SAAS,CAAgB,MAAY,EAAO,oBAAoB,SAAS,CAAgB,CAAE,EAAE,CAAC,CAAC,EAAE,IAAM,EAAM,IAAY,QAAQ,UAAU,UAAgB,EAAW,IAAY,QAAQ,0BAA0B,OAAa,EAAkB,EAAS,GAAG,GAAS,EAAUC,OAAa,CAAC,QAAM,eAAe,OAAO,SAAS,GAAG,WAAW,IAAI,WAAW,SAAS,WAAW,4EAA4E,WAAW,QAAQ,GAAG,CAAC,CAAK,CAAC,EAA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