{"version":3,"file":"shared-lib.Cx_tin2d.mjs","names":["useState","startTransition"],"sources":["https:/framerusercontent.com/modules/8kH82FUssl2tSsFpESVG/BnkeLXwvHuAMJBs76GmH/NavPill.js","https:/framerusercontent.com/modules/r2ESBuPk9BQ4OetyisdU/M8WoatgkctfIwZyZkf1J/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";const PILL_BREATHE=[\"100px\",\"49% 51% 50% 50% / 100px\",\"51% 49% 49% 51% / 100px\",\"50% 50% 51% 49% / 100px\",\"100px\"];const GLASS_BG=[\"radial-gradient(ellipse 90% 35% at 50% -4%, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0) 100%)\",\"radial-gradient(ellipse at 42% 56%, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.28) 65%, rgba(255,255,255,0.46) 100%)\",\"radial-gradient(ellipse at 74% 36%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 58%)\",\"rgba(255,255,255,0.02)\"].join(\", \");const NAV_ITEMS=[{label:\"work\",path:\"/\"},{label:\"playground\",path:\"/playground\"},{label:\"about\",path:\"/about\"}];function getActivePath(){try{return window.location.pathname;}catch{return\"\";}}// \"work\" is active on both / and /work\nfunction isItemActive(itemPath,currentPath){if(itemPath===\"/\")return currentPath===\"/\"||currentPath===\"/work\";return currentPath===itemPath;}function NavItemComponent({label,path,textColor,accentColor,font,isStatic,isActive}){const[isHovered,setIsHovered]=useState(false);return /*#__PURE__*/_jsxs(\"a\",{href:path,onMouseEnter:()=>!isStatic&&startTransition(()=>setIsHovered(true)),onMouseLeave:()=>!isStatic&&startTransition(()=>setIsHovered(false)),style:{position:\"relative\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",paddingTop:11,paddingBottom:11,paddingLeft:20,paddingRight:20,textDecoration:\"none\",cursor:\"pointer\",...font,color:textColor,textTransform:\"lowercase\",fontFamily:\"'Poppins', sans-serif\"},children:[/*#__PURE__*/_jsx(motion.span,{animate:isActive?{y:0,x:0,rotate:0,color:accentColor}:isHovered&&!isStatic?{y:[0,-5,1.5,-4.5,.8,-3,0],x:[0,1,-.8,.9,-.5,.3,0],rotate:[0,-.7,.5,-.4,.2,-.1,0],color:accentColor}:{y:0,x:0,rotate:0,color:textColor},transition:isActive?{color:{duration:0}}:isHovered&&!isStatic?{duration:5,repeat:Infinity,ease:[.45,.05,.55,.95],color:{duration:.35,ease:\"easeOut\",repeat:0}}:{type:\"spring\",stiffness:90,damping:18,color:{duration:.4,ease:\"easeIn\"}},style:{display:\"inline-block\",willChange:\"transform\"},children:label}),isActive&&/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",bottom:5,width:3,height:3,borderRadius:\"50%\",background:accentColor,flexShrink:0}})]});}/**\n * Liquid Glass Nav Pill — Riso Portfolio\n * @framerIntrinsicWidth 320\n * @framerIntrinsicHeight 46\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function NavPill(props){const{textColor=\"#1A0000\",accentColor=\"#D60000\",font,style}=props;const isStatic=useIsStaticRenderer();const currentPath=getActivePath();return /*#__PURE__*/_jsx(motion.nav,{\"aria-label\":\"Main navigation\",animate:isStatic?{}:{borderRadius:PILL_BREATHE},transition:{duration:12,repeat:Infinity,ease:\"easeInOut\"},style:{position:\"relative\",display:\"inline-flex\",alignItems:\"center\",background:GLASS_BG,backdropFilter:\"blur(20px)\",WebkitBackdropFilter:\"blur(20px)\",border:\"1px solid rgba(255,255,255,0.52)\",boxShadow:[\"inset 0 0 0 0.5px rgba(255,255,255,0.28)\",\"0 2px 16px rgba(0,0,0,0.06)\",\"0 0 0 0.5px rgba(214,0,0,0.04)\"].join(\", \"),borderRadius:\"100px\",overflow:\"hidden\",gap:0,...style},children:NAV_ITEMS.map(({label,path})=>/*#__PURE__*/_jsx(NavItemComponent,{label:label,path:path,textColor:textColor,accentColor:accentColor,font:font,isStatic:isStatic,isActive:isItemActive(path,currentPath)},label))});}addPropertyControls(NavPill,{textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#1A0000\"},accentColor:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"#D60000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"11px\",variant:\"Semibold\",letterSpacing:\"0.06em\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"NavPill\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"320\",\"framerIntrinsicHeight\":\"46\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NavPill.map","// Generated by Framer (7c2f7bf)\nexport default function metadata(params,activeLocale){return{description:\"Hi! I'm product and visual designer, based in New York, who blends human-centered thinking & storytelling strategies to create thoughtful user experiences.\",favicon:\"https://framerusercontent.com/assets/xwOrpfcse2adnBh98WU8SkCFrE.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/WRncFsUfWpCtEyqKbcXGx1vrklI.png\",title:\"Hyewon Hong\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"8PAA8xB,SAAS,GAAe,CAAC,GAAG,CAAC,OAAO,EAAO,SAAS,cAAe,CAAC,MAAM,IACx2B,SAAS,EAAa,EAAS,EAAY,CAAmE,OAA/D,IAAW,IAAW,IAAc,KAAK,IAAc,QAAe,IAAc,EAAU,SAAS,EAAiB,CAAC,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