PageSourceSearch

https://workait.com/assets/MemoryNightSection-wKJ-LZLp.js

js workait.com collected 2026-10-08 08:28:10 UTC 5,336 bytes, 1 lines download raw bytes

1import{f_ as R,fD as M,es as o,e9 as t}from"./index-D2yE0WFs.js";const $=()=>{const{t:n}=R(),{ref:b,inView:u}=M({triggerOnce:!0,threshold:.15}),j=o.useMemo(()=>Array.from({length:90}).map((e,s)=>({id:s,top:Math.random()*100,left:Math.random()*100,size:Math.random()*2+.5,delay:Math.random()*6,duration:3+Math.random()*4,opacity:.3+Math.random()*.6})),[]),y=o.useRef(null),x=o.useRef(null),f=o.useRef(null),d=o.useRef({x:0,y:0}),g=o.useRef(0),c=o.useRef(null),[w,k]=o.useState(!1);o.useEffect(()=>{var m;if(typeof window>"u")return;const e=window.matchMedia("(prefers-reduced-motion: reduce)"),s=()=>k(e.matches);return s(),(m=e.addEventListener)==null||m.call(e,"change",s),()=>{var h;return(h=e.removeEventListener)==null?void 0:h.call(e,"change",s)}},[]),o.useEffect(()=>{if(w)return;const e=y.current;if(!e)return;const s=()=>{c.current=null;const a=x.current,r=f.current,i=d.current.x,l=d.current.y,v=g.current;a&&(a.style.transform=`translate3d(${i*12}px, ${l*12+-v*12}px, 0)`),r&&(r.style.transform=`translate3d(${i*28}px, ${l*28+-v*30}px, 0)`)},m=()=>{c.current==null&&(c.current=requestAnimationFrame(s))},h=a=>
1{const r=e.getBoundingClientRect(),i=r.left+r.width/2,l=r.top+r.height/2;d.current.x=(a.clientX-i)/r.width,d.current.y=(a.clientY-l)/r.height,m()},p=()=>{const a=e.getBoundingClientRect(),r=window.innerHeight||1,i=a.top+a.height/2,l=Math.max(-1,Math.min(1,(r/2-i)/r));g.current=l,m()};return e.addEventListener("mousemove",h,{passive:!0}),window.addEventListener("scroll",p,{passive:!0}),p(),()=>{e.removeEventListener("mousemove",h),window.removeEventListener("scroll",p),c.current!=null&&cancelAnimationFrame(c.current)}},[w]);const N=[{key:"consolidate",label:n("work.memory.night.chip1.label","Consolidate"),hint:n("work.memory.night.chip1.hint","Today's threads become tomorrow's memory.")},{key:"archive",label:n("work.memory.night.chip2.label","Archive"),hint:n("work.memory.night.chip2.hint","Set aside what is no longer useful.")},{key:"prepare",label:n("work.memory.night.chip3.label","Prepare"),hint:n("work.memory.night.chip3.hint","Ready for what comes next.")}];return t.jsxs("section",{ref:e=>{b(e),y.current=e},className:"memory-night relative overflow-hidden py-32 md:py-44",children:[t.jsx("div",{"aria-hidden":!0,className:"memory-night__aurora pointer-events-none absolute inset-0"}),t.jsx("div",{ref:x,"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{willChange:"transform"},children:j.map(e=>t.jsx("span",{className:"memory-night__star absolute rounded-full bg-white",style:{top:`${e.top}%`,left:`${e.left}%`,width:`${e.size}px`,height:`${e.size}px`,opacity:e.opacity,animationDelay:`${e.delay}s`,animationDuration:`${e.duration}s`}},e.id))}),t.jsx("div",{ref:f,"aria-hidden":!0,className:"pointer-events-none absolute -right-24 top-24 hidden md:block",style:{willChange:"transform"},children:t.jsx("div",{className:"memory-night__moon relative h-44 w-44 rounded-full"})}),t.jsxs("svg",{"aria-hidden":!0,viewBox:"0 0 1200 200",className:"pointer-events-none absolute inset-x-0 top-16 mx-auto h-24 w-full max-w-5xl opacity-60",preserveAspectRatio:"none",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"arc-grad",x1:"0",x2:"1",children:[t.jsx("stop",{offset:"0%",stopColor:"hsl(var(--primary))",stopOpacity:"0.05"}),t.jsx("stop",{offset:"50%",stopColor:"hsl(var(--primary))",stopOpacity:"0.6"}),t.jsx("stop",{offset:"100%",stopColor:"hsl(var(--primary))",stopOpacity:"0.05"})]})}),t.jsx("path",{d:"M 40 180 Q 600 -40 1160 180",fill:"none",stroke:"url(#arc-grad)",strokeWidth:"1",strokeDasharray:"3 6"})]}),t.jsx("div",{className:"container relative mx-auto px-4",children:t.jsxs("div",{className:`mx-auto max-w-3xl text-center transition-all duration-1000 ${u?"opacity-100 translate-y-0":"opacity-0 translate-y-6"}`,children:[t.jsx("p",{className:"mb-6 text-xs font-medium uppercase tracking-[0.3em] text-primary/70",children:n("work.memory.night.eyebrow","Night shift")}),t.jsxs("h2",{className:"font-['Instrument_Serif',_serif] text-5xl md:text-7xl leading-[1.05] tracking-tight text-white",children:[n("work.memory.night.title.a","They work by day."),t.jsx("br",{}),t.jsx("span",{className:"italic text-primary/90",children:n("work.memory.night.title.b","They learn by night.")})]}),t.jsx("p",{className:"mt-10 text-lg md:text-xl text-white/70 leading-relaxed",children:n("work.memory.night.body","Every night, your AI Workers quietly consolidate what happened during the day. They keep what matters, archive what doesn't, and prepare for tomorrow.")}),t.jsx("p",{className:"memory-night__shimmer mt-10 text-2xl md:text-3xl font-medium",children:n("work.memory.night.outro","So every day, they start a little smarter.")}),t.jsx("div",{className:"mt-14 flex flex-wrap justify-center gap-3",children:N.map((e,s)=>t.jsxs("div",{className:`group relative inline-flex items-center gap-2.5 rounded-full border border-white/15 bg-white/[0.04] px-5 py-2.5 text-sm text-white/80 backdrop-blur-sm transition-all duration-500 hover:border-primary/50 hover:bg-white/[0.08] hover:text-white ${u?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,style:{transitionDelay:u?`${600+s*120}ms`:"0ms"},title:e.hint,children:[t.jsx("span",{className:"memory-night__pulse h-1.5 w-1.5 rounded-full bg-primary"}),e.label]},e.key))})]})})]})};export{$ as MemoryNightSection};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.