nexu-io/open-design / plugins/_official/examples/open-design-homepage
open-design-homepage
UnverifiedA pixel-faithful, self-contained mirror of the live open-design.ai homepage — an interactive React Three Fiber / Next.js hero with a real-time 3D wordmark, sticker collage, variable fonts, and scroll-driven motion. First-party showcase of the visual ceiling for interactive web marketing surfaces.
assets/_next/static/chunks/e553ef8ae208a000.js
View on GitHub(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94394,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},76973,(e,t,r)=>{t.exports=e.r(57277)},29680,34655,90270,e=>{"use strict";var t=e.i(70089);let r={width:1,height:1,visualViewportHeight:1,dpr:1,orientation:"portrait"},n=r,o=!1,l=null,i=new Set,s=()=>{let e,t,r,o=(e=Math.max(1,window.innerWidth||1),t=Math.max(1,window.innerHeight||1),r=Math.max(1,window.visualViewport?.height??t),{width:e,height:t,visualViewportHeight:r,dpr:Math.max(1,window.devicePixelRatio||1),orientation:e>=t?"landscape":"portrait"});if(o.width!==n.width||o.height!==n.height||o.visualViewportHeight!==n.visualViewportHeight||o.dpr!==n.dpr||o.orientation!==n.orientation)for(let e of(n=o,i))e()},a=e=>(i.add(e),(()=>{if(o)return;o=!0;let e=()=>s();window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0});let t=window.visualViewport;t?.addEventListener("resize",e,{passive:!0}),s(),l=()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),t?.removeEventListener("resize",e),l=null,o=!1}})(),()=>{i.delete(e),i.size>0||l?.()}),u=()=>n,c=()=>r,d=()=>(0,t.useSyncExternalStore)(a,u,c);e.s(["getViewportSnapshot",0,u,"subscribeViewport",0,a,"useIsMobile",0,()=>d().width<1024,"useViewport",0,d],34655);let h=new Set,f=null,p=null,m=null,v={scrollTop:0,limit:1,progress:0,velocity:0,direction:0,viewportHeight:1},g=()=>{let e=u();return e.height>1?e.height:Math.max(1,window.innerHeight||1)},w=()=>{for(let e of h)e()},y=(e,t)=>"number"==typeof e&&Number.isFinite(e)?e:t,x=(e,t=!1)=>{let r=t?v.scrollTop:y(e?.scroll,f?.scroll??v.scrollTop),n=Math.max(1,t?v.limit:y(e?.limit,f?.limit??v.limit)),o=Math.min(1,Math.max(0,t?v.progress:y(e?.progress,r/n))),l=t?v.velocity:y(e?.velocity,f?.velocity??0),i=t?v.direction:y(e?.direction,f?.direction??0),s=g();(v.scrollTop!==r||v.limit!==n||v.progress!==o||v.velocity!==l||v.direction!==i||v.viewportHeight!==s)&&(v={scrollTop:r,limit:n,progress:o,velocity:l,direction:i,viewportHeight:s},w())},C=()=>v;e.s(["bindLenisScrollBus",0,e=>{if(f===e)return;if(p?.(),p=null,m?.(),m=null,f=e,!e){v={...v,velocity:0,direction:0,viewportHeight:g()},w();return}m=a(()=>{x(void 0,!0)});let t=e=>{x(e)};e.on("scroll",t),p=()=>{e.off("scroll",t)},x()},"getLenisScrollSnapshot",0,C,"subscribeLenisScroll",0,e=>(h.add(e),()=>{h.delete(e)})],90270);let E=null,b=null,R=new Set,M=e=>{if(!(e instanceof HTMLElement))return!1;let t=e.tagName;return"INPUT"===t||"TEXTAREA"===t||"SELECT"===t||e.isContentEditable},T={setContainerEl:e=>{for(let t of(E=e,R))t(E)},setLenisInstance:e=>{b=e},lenisScrollTo:(e,t)=>{if(b)return void b.scrollTo(e,{force:!0,...t});if("number"!=typeof e)return;let r=t?.immediate?"auto":"smooth",n=E;n?n.scrollTo({top:e,left:0,behavior:r}):window.scrollTo({top:e,left:0,behavior:r})},getContainerEl:()=>E,subscribeContainerEl:e=>(R.add(e),()=>{R.delete(e)}),useContainerEl:()=>{let[e,r]=(0,t.useState)(()=>T.getContainerEl());return(0,t.useEffect)(()=>{let e=T.subscribeContainerEl(e=>r(e));return()=>e()},[]),e},useScrollEdgeShortcuts:({topKey:e="t",bottomKey:r="b",behavior:n="smooth"}={})=>{let o=(0,t.useRef)(null);(0,t.useEffect)(()=>{let t=e.toLowerCase(),l=r.toLowerCase(),i=e=>{if(e.defaultPrevented||e.metaKey||e.ctrlKey||e.altKey||M(e.target))return;let r=e.key.toLowerCase();r!==t&&r!==l||o.current!==r&&(o.current=r,T.scrollToEdge(r===t?"top":"bottom",n))},s=e=>{if(e.defaultPrevented||e.metaKey||e.ctrlKey||e.altKey||M(e.target))return;let t=e.key.toLowerCase();o.current===t&&(o.current=null)};return window.addEventListener("keydown",i),window.addEventListener("keyup",s),()=>{window.removeEventListener("keydown",i),window.removeEventListener("keyup",s)}},[n,r,e])},getScrollTopPx:()=>{if(null!=b)return C().scrollTop;let e=E;return e?e.scrollTop:window.scrollY??document.documentElement.scrollTop??0},getScrollLeftPx:()=>{let e=E;return e?e.scrollLeft:window.scrollX??document.documentElement.scrollLeft??0},getViewportHeightPx:()=>{let e=E;return e?Math.max(1,e.clientHeight||1):Math.max(1,window.innerHeight||1)},scrollToEdge:(e,t="smooth")=>{let r=E,n=((e,t)=>{if("top"===t)return 0;if(e)return Math.max(0,e.scrollHeight-e.clientHeight);let r=document.documentElement,n=document.body;return Math.max(0,Math.max(r?.scrollHeight??0,n?.scrollHeight??0,r?.offsetHeight??0,n?.offsetHeight??0)-window.innerHeight)})(r,e);b?b.scrollTo(n,{force:!0,immediate:"auto"===t}):r?r.scrollTo({top:n,left:0,behavior:t}):window.scrollTo({top:n,left:0,behavior:t})},scrollToTop:(e="smooth")=>{T.scrollToEdge("top",e)},scrollToBottom:(e="smooth")=>{T.scrollToEdge("bottom",e)}};e.s(["scrollEnv",0,T],29680)},34841,e=>{"use strict";var t=e.i(22441),r=e.i(70089),n=e.i(76973),o=e.i(73475),l=e.i(23525),i=e.i(6121);function s({children:e,...n}){let o=(0,r.useRef)(null);return(0,t.jsx)(i.Canvas,{dpr:[1,2],frameloop:"demand",gl:{alpha:!0,antialias:!1,premultipliedAlpha:!0,depth:!1,stencil:!1,powerPreference:"high-performance",preserveDrawingBuffer:!1},className:"z-30 fixed inset-0 pointer-events-none",...n,children:e({maskMaterialRef:o})})}var a=e.i(72137),u=e.i(3543),c=e.i(21348),d=e.i(90975),h=e.i(29090);let f=["#191b1b","#efede7"];function p({open:e,duration:n,initialProgress:o,resetKey:l,onComplete:i,materialRef:s}){let{resolvedTheme:p}=(0,d.useThemeMode)(),{size:m}=(0,u.useThree)(),v=(0,u.useThree)(e=>e.invalidate),g=(0,r.useRef)(null),w=s??g,[y,x]=f,C="dark"===p?y:x,E=(0,r.useMemo)(()=>({uColor:{value:new c.Color},uFeather:{value:.8},uAspect:{value:1},uHoleRadius:{value:2},uProgress:{value:0}}),[]),b=(0,r.useMemo)(()=>{let e=m.width/Math.max(1,m.height),t=Math.max(e,1/e);return Math.sqrt(t*t+1)},[m.width,m.height]);(0,r.useEffect)(()=>{v()},[C,v]),(0,r.useEffect)(()=>{if(w.current){let e=m.width/Math.max(1,m.height);w.current.uniforms.uAspect.value=e}},[m.width,m.height,w]);let R=(0,r.useRef)(0),M=(0,r.useRef)(null),T=(0,r.useRef)(0),S=(0,r.useRef)(0),L=(0,r.useRef)(!1),P=(0,r.useRef)(!1);return(0,r.useLayoutEffect)(()=>{if(P.current||(P.current=!0,"number"!=typeof o))return;let e=c.MathUtils.clamp(o,0,1);R.current=e,T.current=e;let t=c.MathUtils.lerp(b,0,e);w.current&&(w.current.uniforms.uHoleRadius.value=t,w.current.uniforms.uProgress.value=e)},[o,b,w]),(0,r.useLayoutEffect)(()=>{T.current=R.current,S.current=+!!e,M.current=null,L.current=!1,v()},[e,l,v]),(0,a.useFrame)(t=>{let r=t.clock.getElapsedTime();null===M.current&&(M.current=r);let o=r-M.current,l=c.MathUtils.clamp(o/Math.max(1e-6,n),0,1),s=(0,h.customCubic)(l);R.current=c.MathUtils.lerp(T.current,S.current,s);let a=c.MathUtils.lerp(b,0,R.current);w.current&&(w.current.uniforms.uHoleRadius.value=a,w.current.uniforms.uProgress.value=R.current,w.current.uniforms.uColor.value.set(C)),!L.current&&l>=1-1e-6&&(L.current=!0,i?.(e)),!L.current&&l<1-1e-6&&t.invalidate()}),(0,t.jsxs)("mesh",{renderOrder:2e3,frustumCulled:!1,children:[(0,t.jsx)("planeGeometry",{args:[2,2]}),(0,t.jsx)("shaderMaterial",{ref:w,transparent:!0,premultipliedAlpha:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,uniforms:E,vertexShader:"varying vec2 vUv;\n\nvoid main() {\n vUv = position.xy * 0.5 + 0.5;\n gl_Position = vec4(position.xy, 0.0, 1.0);\n}\n",fragmentShader:"precision highp float;\n\nuniform vec3 uColor;\nuniform float uFeather;\nuniform float uAspect;\nuniform float uHoleRadius;\nuniform float uProgress;\n\nvarying vec2 vUv;\n\nvoid main() {\n vec2 p = vUv * 2.0 - 1.0;\n if (uAspect > 1.0) {\n p.x *= uAspect;\n } else {\n p.y /= max(uAspect, 0.0001);\n }\n\n float d = length(p);\n\n float edge = max(uFeather, uHoleRadius * 0.12);\n\n // 洞内为 0,洞外为 1。\n float alphaHole = smoothstep(uHoleRadius, uHoleRadius + edge, d);\n\n // 只在动画结束前一小段把“针孔”补满,让洞像是彻底消失。\n float fillMix = smoothstep(0.92, 1.0, uProgress);\n float alpha = mix(alphaHole, 1.0, fillMix);\n // 预乘 alpha,避免透明像素携带 rgb 导致后期采样出现黑边/暗圈。\n gl_FragColor = vec4(uColor * alpha, alpha);\n #include <colorspace_fragment>\n}\n"})]})}var m=e.i(51177),v=e.i(43050);class g extends v.Effect{pixelSize;feather;aspect;holeRadius;progress;overlayColor;_uPixelSize;_uFeather;_uAspect;_uHoleRadius;_uProgress;_uOverlayColor;_dirty=!0;constructor({pixelSize:e=32,feather:t=.5,aspect:r=1,holeRadius:n=2,progress:o=0,overlayColor:l=new c.Color(1,1,1)}={}){const i=new Map([["pixelSize",new c.Uniform(e)],["uFeather",new c.Uniform(t)],["uAspect",new c.Uniform(r)],["uHoleRadius",new c.Uniform(n)],["uProgress",new c.Uniform(o)],["uOverlayColor",new c.Uniform(l.clone())]]);super("MaskedDotsEffect","uniform float pixelSize;\n\nuniform float uFeather;\nuniform float uAspect;\nuniform float uHoleRadius;\nuniform float uProgress;\nuniform vec3 uOverlayColor;\n\nvoid dotsMainImage(const in vec4 inputColor, const in vec2 uv, out vec4 outputColor) {\n vec2 normalizedPixelSize = pixelSize / resolution;\n // 用传入的 inputColor.a 驱动圆点大小:越不透明圆点越大,越透明圆点越小。\n float a = clamp(inputColor.a, 0.0, 1.0);\n\n vec2 cellUV = fract(uv / normalizedPixelSize);\n\n // 透明度 -> 圆点半径:a=1 时覆盖整个 cell,避免蒙版填充区漏出底图。\n // sqrt(2)/2 是单位正方形中心到角的距离。\n float radius = 0.8 * a;\n vec2 circleCenter = vec2(0.5, 0.5);\n\n float distanceFromCenter = distance(cellUV, circleCenter);\n float aa = fwidth(distanceFromCenter) * 1.5;\n float circleMask = smoothstep(radius, radius - aa, distanceFromCenter);\n\n // 输出为 mask:rgb/alpha 都是 circleMask,供后期用来替换 opacity。\n outputColor = vec4(vec3(circleMask), circleMask);\n}\n\nfloat radialMaskAlpha(vec2 uv) {\n vec2 p = uv * 2.0 - 1.0;\n if (uAspect > 1.0) {\n p.x *= uAspect;\n } else {\n p.y /= max(uAspect, 0.0001);\n }\n\n float d = length(p);\n float edge = max(uFeather, uHoleRadius * 0.12);\n\n // 洞内为 0,洞外为 1。\n float alphaHole = smoothstep(uHoleRadius, uHoleRadius + edge, d);\n\n // 与 radial_mask.frag.glsl 保持一致:末段补满针孔。\n float fillMix = smoothstep(0.92, 1.0, uProgress);\n return mix(alphaHole, 1.0, fillMix);\n}\n\nvoid mainImage(const in vec4 inputColor, const in vec2 uv, out vec4 outputColor) {\n // 用蒙版 alpha 直接驱动点阵大小(0=最小,1=最大),不再只处理过渡带。\n // 为了让点阵在一个 cell 内保持一致:用 cell 中心点的 alpha 驱动圆点大小。\n vec2 normalizedPixelSize = pixelSize / resolution;\n vec2 cellId = floor(uv / normalizedPixelSize);\n vec2 uvCellCenter = (cellId + vec2(0.5)) * normalizedPixelSize;\n float cellAlpha = clamp(radialMaskAlpha(uvCellCenter), 0.0, 1.0);\n\n vec4 dotOut;\n dotsMainImage(vec4(0.0, 0.0, 0.0, cellAlpha), uv, dotOut);\n float dotMask = clamp(dotOut.a, 0.0, 1.0);\n\n float finalAlpha = dotMask;\n\n // 直接输出 overlay 颜色(预乘 alpha),避免颜色混合导致点边黑描边。\n vec3 outRgb = uOverlayColor * finalAlpha;\n outputColor = vec4(outRgb, finalAlpha);\n}\n",{uniforms:i,blendFunction:v.BlendFunction.SRC}),this.pixelSize=e,this.feather=t,this.aspect=r,this.holeRadius=n,this.progress=o,this.overlayColor=l.clone(),this._uPixelSize=i.get("pixelSize"),this._uFeather=i.get("uFeather"),this._uAspect=i.get("uAspect"),this._uHoleRadius=i.get("uHoleRadius"),this._uProgress=i.get("uProgress"),this._uOverlayColor=i.get("uOverlayColor")}setParams(e){let t=!1;"number"==typeof e.pixelSize&&e.pixelSize!==this.pixelSize&&(this.pixelSize=e.pixelSize,t=!0),"number"==typeof e.feather&&e.feather!==this.feather&&(this.feather=e.feather,t=!0),"number"==typeof e.aspect&&e.aspect!==this.aspect&&(this.aspect=e.aspect,t=!0),"number"==typeof e.holeRadius&&e.holeRadius!==this.holeRadius&&(this.holeRadius=e.holeRadius,t=!0),"number"==typeof e.progress&&e.progress!==this.progress&&(this.progress=e.progress,t=!0),e.overlayColor&&!this.overlayColor.equals(e.overlayColor)&&(this.overlayColor.copy(e.overlayColor),t=!0),t&&(this._dirty=!0)}update(){this._dirty&&(this._dirty=!1,this._uPixelSize.value=this.pixelSize,this._uFeather.value=this.feather,this._uAspect.value=this.aspect,this._uHoleRadius.value=this.holeRadius,this._uProgress.value=this.progress,this._uOverlayColor.value.copy(this.overlayColor))}}function w({maskMaterialRef:e,pixelSize:n}){let o=(0,r.useMemo)(()=>new g,[]),l=(0,u.useThree)(e=>e.viewport.dpr);return(0,r.useEffect)(()=>()=>{o.dispose()},[o]),(0,a.useFrame)(()=>{let t=e.current;t&&o.setParams({pixelSize:n*l,feather:t.uniforms.uFeather.value,aspect:t.uniforms.uAspect.value,holeRadius:t.uniforms.uHoleRadius.value,progress:t.uniforms.uProgress.value,overlayColor:t.uniforms.uColor.value})},1),(0,t.jsx)(m.EffectComposer,{multisampling:0,autoClear:!0,renderPriority:999,frameBufferType:c.UnsignedByteType,children:(0,t.jsx)("primitive",{object:o})})}let y=100/3,x={entryLoading:{enabled:!1},routeLoading:{enabled:!1}},C={"/":{entryLoading:{enabled:!0},routeLoading:{enabled:!0}}};function E(e,t,r){return Math.min(r,Math.max(t,e))}function b(e){let t=C[e];return t?{entryLoading:{enabled:t.entryLoading?.enabled??x.entryLoading.enabled},routeLoading:{enabled:t.routeLoading?.enabled??x.routeLoading.enabled}}:x}function R({progress:e,fading:r}){let n=E(e,0,100);return(0,t.jsx)("div",{className:`left-1/2 top-1/2 z-40 fixed flex h-4 w-[140px] -translate-x-1/2 -translate-y-1/2 items-center justify-center pointer-events-none ${r?"opacity-0":"opacity-100"}`,style:{transition:"opacity 250ms cubic-bezier(0.25, 1, 0.5, 1)"},"aria-hidden":"true",children:(0,t.jsx)("div",{className:"relative h-1.5 w-full overflow-hidden rounded-full bg-l3",children:(0,t.jsx)("div",{className:"absolute inset-y-0 left-0 rounded-full bg-l1",style:{width:`${n}%`,transition:"width 520ms cubic-bezier(0.22, 1, 0.36, 1)",willChange:"width"}})})})}function M(e,t){switch(t.type){case"transition":return{...e,transition:t.transition};case"canvas/set":return{...e,shouldRenderCanvas:t.value};case"canvas/ensure":return e.shouldRenderCanvas?e:{...e,shouldRenderCanvas:!0};default:return e}}function T(){let e=(0,n.useRouter)(),i=(0,n.usePathname)(),{targetHref:a,navigationReplace:u,clearNavigation:c,readyToLoadHeavy:d,heavyLoadProgress:h,setAllowScrambleLines:f}=(0,o.useRouteTransitionController)(),{menuOpen:m}=(0,o.useFullscreenTransitionController)(),{fontsLoaded:v,fontsAssetReady:g,bgmAssetReady:x}=(0,l.useShellMedia)(),C=(0,r.useRef)({routeFromPath:null,coverDone:!1}),[{transition:T,shouldRenderCanvas:S},L]=(0,r.useReducer)(M,{transition:{mode:"entry",phase:"wait"},shouldRenderCanvas:!0}),P=(0,r.useMemo)(()=>b(i),[i]),H=(0,r.useMemo)(()=>(function(e){if(!e)return null;if(e.startsWith("/")){let[t]=e.split("?");return t||"/"}try{return new URL(e,window.location.origin).pathname||"/"}catch{return null}})(a),[a]),z=(0,r.useMemo)(()=>H?b(H):P,[H,P]),[A,F]=(0,r.useState)(!1),[j,_]=(0,r.useState)(!1),U=E(h,0,100),k=(0,r.useMemo)(()=>P.entryLoading.enabled?E((g?y:0)+(x?y:0)+U/100*y,0,100):U,[x,P.entryLoading.enabled,g,U]),O="entry"===T.mode&&P.entryLoading.enabled&&("wait"===T.phase||"reveal"===T.phase)&&!j,B="idle"===T.mode?"idle":`${T.mode}:${T.phase}`,I=`${B}:${a??""}:${m?"1":"0"}`;(0,r.useEffect)(()=>{a&&"idle"===T.mode&&(C.current.routeFromPath=i,C.current.coverDone=!1,L({type:"transition",transition:{mode:"route",phase:"cover"}}))},[a,T.mode,i]),(0,r.useEffect)(()=>{"entry"!==T.mode||"wait"!==T.phase||(!P.entryLoading.enabled||d&&v)&&L({type:"transition",transition:{mode:"entry",phase:"reveal"}})},[T,d,v,P]),(0,r.useEffect)(()=>{"route"===T.mode&&"wait"===T.phase&&C.current.coverDone&&C.current.routeFromPath&&i!==C.current.routeFromPath&&(!z.routeLoading.enabled||d&&v)&&L({type:"transition",transition:{mode:"route",phase:"reveal"}})},[T,d,v,i,z]),(0,r.useEffect)(()=>{let e;if(!O||A||k<100)return;let t=window.setTimeout(()=>{F(!0),e=window.setTimeout(()=>{_(!0)},250)},250);return()=>{window.clearTimeout(t),e&&window.clearTimeout(e)}},[k,O,A]);let N="idle"===T.mode?m:"reveal"!==T.phase,V="entry"===T.mode&&"wait"===T.phase?1:void 0,K="route"===T.mode&&"cover"===T.phase||"entry"===T.mode&&"reveal"===T.phase||"route"===T.mode&&"reveal"===T.phase||"idle"===T.mode?t=>{t&&"route"===T.mode&&"cover"===T.phase&&(C.current.coverDone=!0,a&&"route"===T.mode&&"cover"===T.phase&&(f(!1),u?e.replace(a):e.push(a),L({type:"transition",transition:{mode:"route",phase:"wait"}}))),!t&&"idle"!==T.mode&&"reveal"===T.phase&&(L({type:"transition",transition:{mode:"idle"}}),c(),C.current.routeFromPath=null,C.current.coverDone=!1,m||L({type:"canvas/set",value:!1})),t||"idle"!==T.mode||m||L({type:"canvas/set",value:!1})}:void 0;(0,r.useEffect)(()=>{(m||"idle"!==T.mode)&&L({type:"canvas/ensure"})},[m,T.mode]),(0,r.useEffect)(()=>{if("idle"===T.mode)return void f(!0);if("reveal"!==T.phase)return;let e=window.setTimeout(()=>{f(!0)},100);return()=>window.clearTimeout(e)},[T,f]);let q=S||"idle"!==T.mode||m;return(0,t.jsxs)(t.Fragment,{children:[q&&(0,t.jsx)(s,{children:({maskMaterialRef:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p,{open:N,duration:.8,initialProgress:V,resetKey:I,onComplete:K,materialRef:e}),(0,t.jsx)(w,{maskMaterialRef:e,pixelSize:16})]})}),O&&(0,t.jsx)(R,{progress:k,fading:A})]})}e.s(["default",()=>T],34841)},95212,e=>{"use strict";var t=e.i(22441),r=e.i(70089),n=e.i(14194),o=e.i(83450),o=o,l=e.i(76973),i=e.i(29680),s=e.i(90270);function a(){let e=(0,n.useLenis)();return(0,r.useEffect)(()=>((0,s.bindLenisScrollBus)(e??null),i.scrollEnv.setLenisInstance(e??null),()=>{(0,s.bindLenisScrollBus)(null),i.scrollEnv.setLenisInstance(null)}),[e]),(0,r.useEffect)(()=>{if(e)return(0,o.j)(t=>{e.raf(t)})},[e]),null}function u({children:e}){let o=(0,r.useRef)(null);return(0,r.useEffect)(()=>(i.scrollEnv.setContainerEl(o.current?.wrapper??null),()=>i.scrollEnv.setContainerEl(null)),[]),(0,t.jsxs)(n.ReactLenis,{ref:o,options:{lerp:.1,smoothWheel:!0,syncTouch:!0,anchors:!0,autoRaf:!1},className:"w-full h-full overflow-y-auto overscroll-contain no-scrollbar",children:[(0,t.jsx)(a,{}),e]})}function c({children:e}){let n=(0,r.useRef)(null);return(0,r.useEffect)(()=>(i.scrollEnv.setContainerEl(n.current),()=>i.scrollEnv.setContainerEl(null)),[]),(0,t.jsx)("div",{ref:n,className:"w-full h-full overflow-y-auto overscroll-contain no-scrollbar",children:e})}function d({children:e}){let n=(0,l.usePathname)(),o="/"===n,s=i.scrollEnv.useContainerEl();return(0,r.useEffect)(()=>{"scrollRestoration"in history&&(history.scrollRestoration="manual");let e=()=>{if(!window.location.hash){if(s){s.scrollTo({top:0,left:0,behavior:"auto"}),requestAnimationFrame(()=>s.scrollTo({top:0,left:0,behavior:"auto"}));return}window.scrollTo(0,0),requestAnimationFrame(()=>window.scrollTo(0,0))}};e();let t=t=>{t.persisted&&e()};return window.addEventListener("pageshow",t),()=>window.removeEventListener("pageshow",t)},[s]),(0,r.useEffect)(()=>{if(!s||!window.location.hash)return;let e=window.location.hash.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}let r=()=>{let e=document.getElementById(t);if(!e)return;let r=e.getBoundingClientRect().top-s.getBoundingClientRect().top+s.scrollTop-96;i.scrollEnv.lenisScrollTo(Math.max(0,r),{immediate:!0})};requestAnimationFrame(()=>requestAnimationFrame(r))},[n,s]),(0,t.jsx)("div",{className:"fixed inset-0 w-full h-full",children:o?(0,t.jsx)(u,{children:e}):(0,t.jsx)(c,{children:e})})}e.s(["default",()=>d],95212)},82536,e=>{"use strict";var t=e.i(22441),r=e.i(23525);function n({children:e}){let{fontsLoaded:n}=(0,r.useShellMedia)();return(0,t.jsx)("div",{className:n?"":"invisible pointer-events-none select-none","aria-hidden":!n,children:e})}e.s(["default",()=>n])}]);Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |