{"version":3,"file":"BackToTop_1.C30pn6PV.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/qiV0843EdsS1Tlhe6cNy/JMTLf7hi19orNdKHG8Hj/AppleNav.js","https:/framerusercontent.com/modules/clKdGWarCJKiaDi6re6R/rGVlhVQj4BoVGSw2QulR/BackToTop_1.js"],"sourcesContent":["// Apple-style global nav for the portfolio: a thin (52px) frosted-glass bar\n// with the ink-portrait mark on the left and quiet 13px text links on the\n// right. Same component at every width (no breakpoint variants): links stay\n// on one line down to phone size. The mark always goes to the home page (and\n// glides back to the top when you're already there). In-page links\n// smooth-scroll with an offset for the bar; external links open in a new tab.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const INK=\"#1D1D1F\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function AppleNav(props){const{logo,logoAlt,homeHref,items}=props;const home=homeHref||\"/\";const reduceMotion=()=>typeof window!==\"undefined\"&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;const go=(e,href)=>{if(!href.startsWith(\"#\")||typeof window===\"undefined\")return;const el=document.getElementById(href.slice(1));if(!el)return;e.preventDefault();const y=el.getBoundingClientRect().top+window.scrollY-52;window.scrollTo({top:y,behavior:reduceMotion()?\"auto\":\"smooth\"});};const goHome=e=>{if(typeof window===\"undefined\")return;const target=new URL(home,window.location.href);if(target.pathname===window.location.pathname){e.preventDefault();window.scrollTo({top:0,behavior:reduceMotion()?\"auto\":\"smooth\"});}};return /*#__PURE__*/_jsxs(\"nav\",{\"aria-label\":\"Main\",style:{position:\"relative\",width:\"100%\",height:\"100%\",background:\"rgba(255, 255, 255, 0.72)\",backdropFilter:\"saturate(180%) blur(20px)\",WebkitBackdropFilter:\"saturate(180%) blur(20px)\",borderBottom:\"1px solid rgba(0, 0, 0, 0.08)\",fontFamily:'-apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Inter\", sans-serif'},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .an-link { color: ${INK}; opacity: .8; text-decoration: none; transition: opacity .2s ease; }\n                .an-link:hover { opacity: 1; }\n                .an-home { transition: opacity .2s ease; }\n                .an-home:hover { opacity: .7; }\n                .an-link:focus-visible, .an-home:focus-visible { outline: none; border-radius: 6px; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #0071E3; }\n                .an-inner { max-width: 1024px; margin: 0 auto; height: 100%; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }\n                .an-list { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }\n                @media (max-width: 809px) { .an-inner { padding: 0 16px; } .an-list { gap: 22px; } }\n            `}),/*#__PURE__*/_jsxs(\"div\",{className:\"an-inner\",children:[/*#__PURE__*/_jsx(\"a\",{className:\"an-home\",href:home,onClick:goHome,\"aria-label\":\"Karina Su, home\",style:{display:\"flex\",alignItems:\"center\",minWidth:44,minHeight:44},children:logo&&/*#__PURE__*/_jsx(\"img\",{src:logo,alt:logoAlt,style:{width:30,height:30,objectFit:\"contain\",mixBlendMode:\"multiply\"}})}),/*#__PURE__*/_jsx(\"ul\",{className:\"an-list\",children:items.map(item=>{const external=/^https?:/.test(item.href);return /*#__PURE__*/_jsx(\"li\",{children:/*#__PURE__*/_jsx(\"a\",{className:\"an-link\",href:item.href,onClick:e=>go(e,item.href),target:external?\"_blank\":undefined,rel:external?\"noopener noreferrer\":undefined,style:{fontSize:13,lineHeight:\"44px\",display:\"inline-block\"},children:item.label})},item.label);})})]})]});}AppleNav.defaultProps={logo:\"https://framerusercontent.com/images/Zuhw1UOtI1bDBh5Ji5grp7eM.png\",logoAlt:\"\",homeHref:\"/\",items:[{label:\"Work\",href:\"#work\"},{label:\"Resume\",href:\"#resume\"},{label:\"LinkedIn\",href:\"https://www.linkedin.com/in/karinasu/\"}]};addPropertyControls(AppleNav,{logo:{type:ControlType.String,title:\"Logo URL\"},logoAlt:{type:ControlType.String,title:\"Logo Alt\"},homeHref:{type:ControlType.String,title:\"Home Link\",defaultValue:\"/\"},items:{type:ControlType.Array,title:\"Links\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Label\"},href:{type:ControlType.String,title:\"Link\"}}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AppleNav\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AppleNav.map","// Floating black pill used on every page: \"Back to top\" on the home page and\n// \"Back to homepage\" (set a link) on the project pages, so both share one\n// look and one interaction. #121212 fill, 10px radius, 14px/500 white label,\n// small arrow, soft drop shadow. On hover the pill turns pure black, lifts\n// 2px with a deeper shadow and the arrow nudges in its direction (up for top,\n// right for home); pressing settles it back. The button pins itself to the\n// viewport (fixed, bottom-right), so the canvas layer can be a tiny marker\n// anywhere on the page. Without a link it fades in once the visitor has\n// scrolled past the hero and scrolls smoothly to the top (instantly with\n// reduced motion); with a link it is always shown and navigates there.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function BackToTop(props){const{label,href,showAfter,right,bottom}=props;const onCanvas=RenderTarget.current()===RenderTarget.canvas;const isLink=typeof href===\"string\"&&href.length>0;const[visible,setVisible]=useState(isLink);useEffect(()=>{if(typeof window===\"undefined\"||isLink)return;const onScroll=()=>{const next=window.scrollY>showAfter;startTransition(()=>setVisible(v=>v===next?v:next));};onScroll();window.addEventListener(\"scroll\",onScroll,{passive:true});return()=>window.removeEventListener(\"scroll\",onScroll);},[showAfter,isLink]);const toTop=()=>{if(typeof window===\"undefined\")return;const reduce=window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;window.scrollTo({top:0,behavior:reduce?\"auto\":\"smooth\"});};const shown=visible||onCanvas||isLink;const style={// On the canvas, show it in place so it can be seen and selected\nposition:onCanvas?\"relative\":\"fixed\",right:onCanvas?undefined:right,bottom:onCanvas?undefined:bottom,zIndex:20,display:\"inline-flex\",alignItems:\"center\",gap:4,height:36,padding:\"6px 6px 6px 12px\",borderRadius:10,border:\"none\",background:\"#121212\",color:\"#FFFFFF\",boxShadow:\"0px 2px 3px rgba(0, 0, 0, 0.25)\",fontFamily:'\"Inter\", -apple-system, BlinkMacSystemFont, sans-serif',fontSize:14,fontWeight:500,lineHeight:\"24px\",textDecoration:\"none\",whiteSpace:\"nowrap\",cursor:\"pointer\",opacity:shown?1:0,transform:shown?\"translateY(0)\":\"translateY(8px)\",pointerEvents:shown?\"auto\":\"none\",transition:\"opacity .3s ease, transform .25s cubic-bezier(.2,.8,.2,1), background .2s ease, box-shadow .25s ease\"};const css=`\n        .btt:hover { background: #000000 !important; transform: translateY(-2px) !important; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22) !important; }\n        .btt:active { transform: translateY(0) scale(0.97) !important; box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.25) !important; }\n        .btt .btt-arrow { transition: transform .25s cubic-bezier(.2,.8,.2,1); }\n        .btt.btt-up:hover .btt-arrow { transform: translateY(-2px); }\n        .btt.btt-go:hover .btt-arrow { transform: translateX(3px); }\n        .btt:focus-visible { outline: none; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #0071E3 !important; }\n        @media (prefers-reduced-motion: reduce) { .btt, .btt .btt-arrow { transition: none !important; } .btt:hover { transform: none !important; } }\n    `;const arrow=/*#__PURE__*/_jsx(\"span\",{className:\"btt-arrow\",\"aria-hidden\":\"true\",style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",width:24,height:24},children:/*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:isLink?/*#__PURE__*/_jsx(\"path\",{d:\"M3 7h8M7.5 3.5 11 7l-3.5 3.5\"}):/*#__PURE__*/_jsx(\"path\",{d:\"M7 11.5v-9M3.5 6 7 2.5 10.5 6\"})})});if(isLink){return /*#__PURE__*/_jsxs(\"a\",{className:\"btt btt-go\",href:href,style:style,children:[/*#__PURE__*/_jsx(\"style\",{children:css}),label,arrow]});}return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"btt btt-up\",onClick:toTop,style:style,\"aria-hidden\":!shown,tabIndex:shown?0:-1,children:[/*#__PURE__*/_jsx(\"style\",{children:css}),label,arrow]});}BackToTop.defaultProps={label:\"Back to top\",href:\"\",showAfter:600,right:20,bottom:68};addPropertyControls(BackToTop,{label:{type:ControlType.String,title:\"Label\"},href:{type:ControlType.String,title:\"Link\",placeholder:\"Empty = scroll to top\"},showAfter:{type:ControlType.Number,title:\"Show after\",min:0,max:3e3,step:50,unit:\"px\",hidden:p=>!!p.href},right:{type:ControlType.Number,title:\"Right\",min:0,max:200,unit:\"px\"},bottom:{type:ControlType.Number,title:\"Bottom\",min:0,max:200,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BackToTop\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BackToTop_1.map"],"mappings":"0MASG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,OAAK,UAAQ,WAAS,SAAO,EAAY,EAAK,GAAU,IAAU,MAAwB,IAAS,QAAa,EAAO,WAAW,kCAAkC,CAAC,CAAC,QAAc,GAAI,EAAE,IAAO,CAAC,GAAG,CAAC,EAAK,WAAW,GAAG,GAAU,IAAS,OAAY,OAAO,IAAM,EAAG,SAAS,eA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