{"version":3,"file":"ProjectShowcaseRow.CSS1LSVb.mjs","names":["React.useState","_jsxs","_jsx","createPortal","__esmMin","init_ssg_sandbox_shims","window","init_npm_react_dom_18_3_1","_e","Ha","p","c","init_jsx_runtime","init_npm_react_18_3_1","init_framer_B3LLf74D","addPropertyControls","ControlType","useIsStaticRenderer","useMotionValue","motion","useSpring","init_framer_motion_1EwlFBEG","useReducedMotion","ProjectShowcaseRow","title","detail","year","cover","style","staticRender","reducedMotion","hovered","setHovered","rawX","rawY","y","duration","move","event","entering","left","top","init_ProjectShowcaseRow"],"sources":["https:/framerusercontent.com/modules/kwZinyPfiiWoUISjyApl/ed9p6DxSv3V7qYOM4OGF/ProjectShowcaseRow.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{createPortal}from\"react-dom\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useMotionValue,useReducedMotion,useSpring}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function ProjectShowcaseRow({title,detail,year,cover,style}){const staticRender=useIsStaticRenderer();const reducedMotion=useReducedMotion();const[hovered,setHovered]=React.useState(false);const rawX=useMotionValue(0);const rawY=useMotionValue(0);const x=useSpring(rawX,{stiffness:420,damping:38});const y=useSpring(rawY,{stiffness:420,damping:38});const duration=reducedMotion?\"0s\":\"0.22s\";const fg=\"var(--token-340480bd-b0d6-40b9-8115-66f2e4394a52, #181818)\";function move(event,entering=false){if(event.pointerType!==\"mouse\")return;const left=Math.max(12,event.clientX+300<window.innerWidth?event.clientX+20:event.clientX-300);const top=Math.max(12,Math.min(event.clientY-90,window.innerHeight-192));rawX.set(left);rawY.set(top);if(entering){x.jump(left);y.jump(top);setHovered(true);}}return /*#__PURE__*/_jsxs(\"div\",{onPointerEnter:event=>move(event,true),onPointerMove:event=>move(event),onPointerLeave:()=>setHovered(false),onPointerCancel:()=>setHovered(false),style:{width:\"100%\",...style,boxSizing:\"border-box\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"flex-start\",gap:16,color:fg,padding:\"18px 12px\",borderBottom:\"1px solid color-mix(in srgb, currentColor 17%, transparent)\",background:hovered?\"color-mix(in srgb, currentColor 5%, transparent)\":\"transparent\",transition:\"background \"+duration+\" ease\",fontFamily:\"Switzer, Inter, sans-serif\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{minWidth:0},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8},children:[/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,fontSize:\"clamp(18px, 2vw, 23px)\",lineHeight:1.2,fontWeight:500,letterSpacing:\"-0.025em\",overflowWrap:\"anywhere\"},children:/*#__PURE__*/_jsx(\"span\",{style:{backgroundImage:\"linear-gradient(currentColor,currentColor)\",backgroundPosition:\"0 100%\",backgroundRepeat:\"no-repeat\",backgroundSize:(hovered?\"100%\":\"0%\")+\" 1px\",transition:\"background-size \"+duration+\" ease\"},children:title})}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{flexShrink:0,opacity:hovered?1:0,transform:hovered?\"none\":\"translate(-4px, 4px)\",transition:\"opacity \"+duration+\", transform \"+duration},children:\"↗\"})]}),detail&&/*#__PURE__*/_jsx(\"p\",{style:{margin:\"4px 0 0\",fontSize:14,lineHeight:1.4,opacity:.72,overflowWrap:\"anywhere\"},children:detail})]}),year&&/*#__PURE__*/_jsx(\"span\",{style:{flexShrink:0,marginTop:3,fontSize:12,opacity:.72,fontVariantNumeric:\"tabular-nums\"},children:year}),!staticRender&&hovered&&cover?.src&&/*#__PURE__*/createPortal(/*#__PURE__*/_jsx(motion.div,{\"aria-hidden\":\"true\",style:{position:\"fixed\",left:0,top:0,x:reducedMotion?rawX:x,y:reducedMotion?rawY:y,width:280,height:180,zIndex:90,overflow:\"hidden\",borderRadius:12,pointerEvents:\"none\",boxShadow:\"0 16px 48px #0003\"},initial:reducedMotion?false:{opacity:0,scale:.93},animate:{opacity:1,scale:1},transition:{duration:reducedMotion?0:.2},children:/*#__PURE__*/_jsx(\"img\",{src:cover.src,srcSet:cover.srcSet,sizes:\"280px\",alt:\"\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}})}),document.body)]});}addPropertyControls(ProjectShowcaseRow,{title:{type:ControlType.String,title:\"Project Title\"},detail:{type:ControlType.String,title:\"Project Type\"},year:{type:ControlType.String,title:\"Year\"},cover:{type:ControlType.ResponsiveImage,title:\"Cover Image\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProjectShowcaseRow\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProjectShowcaseRow.map"],"mappings":"A,2RAGG,SAAwBuB,EAAmB,CAACC,QAAMC,SAAOC,OAAKC,QAAMC,SAAO,CAAC,IAAMC,EAAaZ,EAAoB,EAAQa,EAAcR,EAAiB,EAAO,CAACS,EAAQC,GAAYhC,EAAe,EAAK,EAAQiC,EAAKf,EAAe,CAAC,EAAQgB,EAAKhB,EAAe,CAAC,EAAQ,EAAEE,EAAUa,EAAK,CAAC,UAAU,IAAI,QAAQ,EAAE,CAAC,EAAQE,EAAEf,EAAUc,EAAK,CAAC,UAAU,IAAI,QAAQ,EAAE,CAAC,EAAQE,EAASN,EAAc,KAAK,QAA8E,SAASO,EAAKC,EAAMC,EAAS,GAAM,CAAC,GAAGD,EAAM,cAAc,QAAQ,OAAO,IAAME,EAAK,KAAK,IAAI,GAAGF,EAAM,QAAQ,IAAIhC,EAAO,WAAWgC,EAAM,QAAQ,GAAGA,EAAM,QAAQ,GAAG,EAAQG,EAAI,KAAK,IAAI,GAAG,KAAK,IAAIH,EAAM,QAAQ,GAAGhC,EAAO,YAAY,GAAG,CAAC,EAAE2B,E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