{"version":3,"file":"MoreProjectsCarousel.COr1kJ3d.mjs","names":["useState","useRef","p"],"sources":["https:/framerusercontent.com/modules/DB5iqR7mxAFfMTfCl8Ee/zk1WBMt3m46aFWLWPN5R/MoreProjectsCarousel.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect,useRef}from\"react\";const PROJECTS=[{slug:\"meta-tmobile-esim-trial\",title:\"Meta + T-Mobile eSIM Trial\",subtitle:\"Product and Content Design\",href:\"/work/meta-tmobile-esim-trial\",thumb:\"https://framerusercontent.com/images/P22g0uiKfW5euHGO2L78moPNk0.png\"},{slug:\"whatsapp-verified-profile-links\",title:\"WhatsApp Verified Profile Links\",subtitle:\"Product and Content Design\",href:\"/work/whatsapp-verified-profile-links\",thumb:\"https://framerusercontent.com/images/KSBd8kQamnEfvvn4j3XiQKbj0Uk.png\"},{slug:\"netego-cross-app-ads\",title:\"Cross-App Ad System\",subtitle:\"Product and Content Design\",href:\"/work/netego-cross-app-ads\",thumb:\"https://framerusercontent.com/images/H7QE9RmF207STmfklM5xrCfLeo.png\"},{slug:\"insightvm-tagging\",title:\"InsightVM Tagging\",subtitle:\"Product and Content Design\",href:\"/work/insightvm-tagging\",thumb:\"https://framerusercontent.com/images/IsLWQfzb6d9q6iasVPx8WpFxFjI.png\"},{slug:\"sideb-music-app\",title:\"SideB Music App\",subtitle:\"Product and Content Design\",href:\"/work/sideb-music-app\",thumb:\"https://framerusercontent.com/images/VZfemRN304IA1XKbDhM1cs5m9Jo.png\"},{slug:\"openbay-content-strategy\",title:\"Openbay Content Strategy\",subtitle:\"Content Strategy\",href:\"/work/openbay-content-strategy\",thumb:\"https://framerusercontent.com/images/maHO3g6NjNlr1e6XldeH3JXevQ.png\"}];/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function MoreProjectsCarousel(props){const{currentSlug=\"\",accent=\"#ffffff\"}=props;const items=PROJECTS.filter(p=>p.slug!==currentSlug);const[visible,setVisible]=useState(4);const[start,setStart]=useState(0);const trackRef=useRef(null);useEffect(()=>{function calc(){if(typeof window===\"undefined\")return;const w=window.innerWidth;if(w<640)setVisible(1);else if(w<1e3)setVisible(2);else setVisible(Math.min(4,items.length));}calc();window.addEventListener(\"resize\",calc);return()=>window.removeEventListener(\"resize\",calc);},[items.length]);const count=Math.min(visible,items.length);const showArrows=items.length>count;const view=[];for(let i=0;i<count;i++)view.push(items[(start+i)%items.length]);const go=dir=>setStart(s=>(s+dir+items.length)%items.length);const toTop=()=>{if(typeof window!==\"undefined\")window.scrollTo({top:0,behavior:\"smooth\"});};const gap=20;const font=\"'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif\";return /*#__PURE__*/_jsxs(\"section\",{style:{position:\"relative\",width:\"100%\",padding:\"24px 24px 96px\",boxSizing:\"border-box\",fontFamily:font},children:[/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:1480,margin:\"0 auto\",width:\"100%\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",marginBottom:24},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:13,letterSpacing:\"0.14em\",textTransform:\"uppercase\",color:\"rgba(255,255,255,0.55)\",fontWeight:500},children:\"More Projects\"}),showArrows&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:10},children:[/*#__PURE__*/_jsx(Arrow,{dir:\"prev\",accent:accent,onClick:()=>go(-1)}),/*#__PURE__*/_jsx(Arrow,{dir:\"next\",accent:accent,onClick:()=>go(1)})]})]}),/*#__PURE__*/_jsx(\"div\",{style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{ref:trackRef,style:{display:\"flex\",gap,transition:\"opacity 0.35s ease\",animation:\"mpFade 0.35s ease\"},children:view.map((p,i)=>/*#__PURE__*/_jsxs(\"a\",{href:p.href,style:{flex:`0 0 calc((100% - ${(count-1)*gap}px) / ${count})`,textDecoration:\"none\",color:\"inherit\",display:\"block\",transition:\"opacity 0.2s ease\"},onMouseEnter:e=>e.currentTarget.style.opacity=\"0.82\",onMouseLeave:e=>e.currentTarget.style.opacity=\"1\",children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",aspectRatio:\"265 / 255\",borderRadius:12,overflow:\"hidden\",background:\"#111\",position:\"relative\"},children:/*#__PURE__*/_jsx(\"img\",{src:p.thumb,alt:p.title,loading:\"lazy\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}})}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:16,fontSize:18,fontWeight:600,color:\"#fff\",lineHeight:1.25},children:p.title}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:4,fontSize:15,color:\"rgba(255,255,255,0.5)\"},children:p.subtitle})]},p.slug+i))},start)}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",marginTop:44,paddingTop:24,borderTop:\"1px solid rgba(255,255,255,0.12)\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:15,color:\"rgba(255,255,255,0.5)\"},children:\"\\xa9 2026 Nathan Norton\"}),/*#__PURE__*/_jsxs(\"button\",{onClick:toTop,style:{display:\"inline-flex\",alignItems:\"center\",gap:8,background:\"transparent\",border:\"1px solid rgba(255,255,255,0.28)\",borderRadius:999,padding:\"10px 18px\",color:\"#fff\",fontSize:15,fontFamily:font,cursor:\"pointer\"},children:[\"Back to Top\",/*#__PURE__*/_jsx(\"span\",{style:{fontSize:15},children:\"↑\"})]})]})]}),/*#__PURE__*/_jsx(\"style\",{children:`@keyframes mpFade{from{opacity:0.35}to{opacity:1}}`})]});}function Arrow({dir,accent,onClick}){return /*#__PURE__*/_jsx(\"button\",{\"aria-label\":dir===\"prev\"?\"Previous projects\":\"Next projects\",onClick:onClick,style:{width:44,height:44,borderRadius:999,border:\"1px solid rgba(255,255,255,0.25)\",background:\"transparent\",color:accent,display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",transition:\"background 0.2s ease\"},onMouseEnter:e=>e.currentTarget.style.background=\"rgba(255,255,255,0.08)\",onMouseLeave:e=>e.currentTarget.style.background=\"transparent\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:dir===\"prev\"?/*#__PURE__*/_jsx(\"polyline\",{points:\"15 18 9 12 15 6\"}):/*#__PURE__*/_jsx(\"polyline\",{points:\"9 18 15 12 9 6\"})})});}addPropertyControls(MoreProjectsCarousel,{currentSlug:{type:ControlType.String,title:\"Current Slug\",defaultValue:\"\"},accent:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#ffffff\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MoreProjectsCarousel\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MoreProjectsCarousel.map"],"mappings":"6MAGG,SAAwB,EAAqB,EAAM,CAAC,GAAK,CAAC,cAAY,GAAG,SAAO,WAAW,EAAY,EAAM,EAAS,OAAO,GAAG,EAAE,OAAO,CAAW,EAAO,CAAC,EAAQ,GAAYA,EAAS,CAAC,EAAO,CAAC,EAAM,GAAUA,EAAS,CAAC,EAAQ,EAASC,EAAO,IAAI,EAAE,MAAc,CAAC,SAAS,GAAM,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,EAAE,EAAO,WAAoB,EAAN,EAAE,IAAe,EAAW,EAAE,IAAe,EAAmB,KAAK,IAAI,EAAE,EAAM,MAAM,CAAC,CAAE,CAA+C,OAA9C,EAAK,EAAE,EAAO,iBAAiB,SA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