{"version":3,"file":"ProjectNavigation.CnkwbT8f.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/uRfXUbCbYX40v8DSdtKg/tcdyvcz2eIYIwY62xLiq/ProjectNavigation.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight fixed\n *//* ========================================\n   SITE\n========================================= */const SITE_URL=\"https://kimgyeongmo.com\";/* ========================================\n   PROJECT LIST\n\n   프로젝트 순서도 여기서 결정됨\n========================================= */const projects=[{id:\"exit8\",title:\"Exit 8\",path:\"/work_exit8\"},{id:\"biff\",title:\"The 31st BIFF 2026: Beyond the Screen\",path:\"/work_biff\"},{id:\"brother\",title:\"Brother XL & XS\",path:\"/work_brotherxlxs\"},{id:\"hyundai\",title:\"Hyundai Logo Reimagined\",path:\"/work_hyundai\"}];/* ========================================\n   COMPONENT\n========================================= */export default function ProjectNavigation(props){const{currentProject}=props;const[hovered,setHovered]=React.useState(null);/* ----------------------------------------\n       Find current project\n    ----------------------------------------- */let currentIndex=projects.findIndex(project=>project.id===currentProject);if(currentIndex===-1){currentIndex=0;}/* ----------------------------------------\n       Previous / Next\n       Loop enabled\n    ----------------------------------------- */const previous=projects[(currentIndex-1+projects.length)%projects.length];const next=projects[(currentIndex+1)%projects.length];/* ----------------------------------------\n       Open link in SAME TAB\n    ----------------------------------------- */function goTo(path){if(typeof window===\"undefined\")return;window.location.assign(`${SITE_URL}${path}`);}/* ----------------------------------------\n       Typography\n    ----------------------------------------- */const navStyle={fontFamily:\"Inter, sans-serif\",fontSize:\"20px\",fontWeight:600,lineHeight:1.2,color:\"#000000\",textDecoration:\"none\",display:\"flex\",alignItems:\"center\",minWidth:0,cursor:\"pointer\",transition:\"opacity 0.2s ease\"};/* ----------------------------------------\n       Arrow\n    ----------------------------------------- */const arrowStyle={fontFamily:\"Arial, sans-serif\",fontSize:\"27px\",fontWeight:700,lineHeight:1,flexShrink:0};/* ========================================\n       RENDER\n    ========================================= */return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"152px\",boxSizing:\"border-box\",/* Same spacing as original layout */paddingTop:\"50px\",paddingRight:\"20px\",paddingBottom:\"30px\",paddingLeft:\"20px\",/* Force Previous / Next apart */display:\"grid\",gridTemplateColumns:\"1fr 1fr\",columnGap:\"40px\",alignItems:\"center\"},children:[/*#__PURE__*/_jsxs(\"a\",{href:`${SITE_URL}${previous.path}`,target:\"_self\",onClick:event=>{event.preventDefault();goTo(previous.path);},onMouseEnter:()=>setHovered(\"previous\"),onMouseLeave:()=>setHovered(null),style:{...navStyle,justifySelf:\"start\",justifyContent:\"flex-start\",gap:\"8px\",maxWidth:\"100%\",opacity:hovered===\"previous\"?.5:1},children:[/*#__PURE__*/_jsx(\"span\",{style:arrowStyle,children:\"❮\"}),/*#__PURE__*/_jsx(\"span\",{style:{minWidth:0,textAlign:\"left\"},children:previous.title})]}),/*#__PURE__*/_jsxs(\"a\",{href:`${SITE_URL}${next.path}`,target:\"_self\",onClick:event=>{event.preventDefault();goTo(next.path);},onMouseEnter:()=>setHovered(\"next\"),onMouseLeave:()=>setHovered(null),style:{...navStyle,justifySelf:\"end\",justifyContent:\"flex-end\",gap:\"8px\",maxWidth:\"100%\",textAlign:\"right\",opacity:hovered===\"next\"?.5:1},children:[/*#__PURE__*/_jsx(\"span\",{style:{minWidth:0,textAlign:\"right\"},children:next.title}),/*#__PURE__*/_jsx(\"span\",{style:arrowStyle,children:\"❯\"})]})]});}/* ========================================\n   DEFAULT SETTINGS\n========================================= */ProjectNavigation.defaultProps={currentProject:\"biff\",width:1400,height:152};/* ========================================\n   FRAMER PROPERTY CONTROL\n\n   페이지마다 이것 하나만 변경\n========================================= */addPropertyControls(ProjectNavigation,{currentProject:{type:ControlType.Enum,title:\"Current Project\",options:[\"exit8\",\"biff\",\"brother\",\"hyundai\"],optionTitles:[\"Exit 8\",\"BIFF\",\"Brother XL & XS\",\"Hyundai\"],defaultValue:\"biff\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProjectNavigation\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProjectNavigation.map"],"mappings":"qLAW4C,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,kBAAgB,EAAW,CAAC,EAAQ,GAAYA,EAAe,IAAI,EAElH,EAAa,EAAS,UAAU,GAAS,EAAQ,KAAK,CAAc,EAAK,IAAe,KAAI,EAAa,GAG7G,IAAM,EAAS,GAAU,EAAa,EAAE,EAAS,QAAQ,EAAS,QAAc,EAAK,GAAU,EAAa,GAAG,EAAS,QAExH,SAAS,EAAK,EAAK,CAAW,IAAS,QAAmB,EAAO,SAAS,OAAO,GAAG,IAAW,GAAM,CAAE,CAEvG,IAAM,EAAS,CAAC,WAAW,oBAAoB,SAAS,OAAO,WAAW,IAAI,WAAW,IAAI,MAAM,UAAU,eAAe,OAAO,QAAQ,OAAO,WAAW,SAAS,SAAS,EAAE,OAAO,UAAU,WAAW,mBAAmB,EAE1N,EAAW,CAAC,WAAW,oBAAoB,SAAS,OAAO,WAAW,IAAI,WAAW,EAAE,WAAW,CAAC,EAEzG,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,QAAQ,UAAU,aAAkD,WAAW,OAAO,aAAa,OAAO,cAAc,OAAO,YAAY,OAAwC,QAAQ,OAAO,oBAAoB,UAAU,UAAU,OAAO,WAAW,QAAQ,EAAE,SAAS,CAAc,EAAM,IAAI,CAAC,KAAK,GAAG,IAAW,EAAS,OAAO,OAAO,QAAQ,QAAQ,GAAO,CAAC,EAAM,eAAe,EAAE,EAAK,EAAS,IAAI,CAAE,EAAE,iBAAiB,EAAW,UAAU,EAAE,iBAAiB,EAAW,IAAI,EAAE,MAAM,CAAC,GAAG,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