Communitygithub.com

jhy0285/monofield

当用户想要一个单页沉浸式视差落地页、滚动驱动的大门/帷幕入口、以及带弧形卡片滑块的 '梦境 / 幻想' 主页时使用。触发词:'视差落地页'、'滚动电影级主页'、'门户缩放落地页'、'弧形卡片滑块' 或任何提及 Dreamcore Landing 模板的请求。

monofield 是什么?

该技能会生成一个单页、沉浸式的视差滚动落地页,包含两个在同一个粘性视口内的滚动驱动场景。它以自我包含的 HTML 文件 `example.html` 作为参考实现基础,用户需复制该文件并仅调整文案和数据,不得改动核心的层级数学、缓动函数或视觉语言。技能支持 Scrollytelling 效果,包含门户缩放、帷幕打开、鼠标视差及弧形卡片滑块;默认输出为单 HTML 文件,但也可按用户要求移植为 React + TypeScript + Tailwind + Vite 项目。它的关键特性包括:两个层叠场景、固定的滚动断点、严格的字体与颜色方案、以及通过以太网 CDN 加载的固定远程图片资源。整体架构使用 `position: sticky + height: 480vh` 容器,由 `scrollProgress` 控制所有内部层的缩放与透明度,并利用 `requestAnimationFrame` 实现平滑的鼠标视差。

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/jhy0285/monofield/tree/HEAD/plugins/_official/examples/dreamcore-landing

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Dreamcore Landing — 沉浸式视差滚动主页

生成一个单页沉浸式 视差落地页,包含两个利用滚动驱动的场景,位于同一个粘性视口中。完整的可运行参考实现文件 example.html 随技能一同提供——请从它开始。复制 example.html,然后仅调整文案和数据;不要重写层级数学、缓动函数或视觉语言。种子文件已包含下面描述的确切层级堆叠、滚动映射、入口序列、鼠标视差和弧形滑块几何。

这是权威构建概要。请严格遵循——层级 z 顺序、缩放范围、滚动断点、MAG 值、字体、图片 URL 和卡片数据均已锁定。

技术栈

  • 默认输出:单自包含 HTML 文件(example.html 种子)。纯 HTML/CSS/JS,无构建步骤。框架特性已映射为原生:useScroll/useTransform → 一个被动 scroll 监听器写入 scrollProgress;每帧变换 → 一个 requestAnimationFrame 循环;鼠标视差 → 一个 mousemove 处理器,速度 lerp speed = 0.07;入场动画 → setTimeout 里程碑。
  • 如果用户明确要求 React + TypeScript + Tailwind + Vite 项目,请忠实地将种子移植到单个 src/App.tsx:相同的层级堆叠、相同的缓动帮助函数(easeInOut、lerp、clamp)、相同的 MAG 值、lucide-react 作为(基本未使用的)依赖项、Tailwind 仅用于响应式断点。覆盖 xl 断点为 1100px(screens: { xl: '1100px' })。移植时不要更改设计。

字体与全局设置

  • 通过 <link> 引入 Google Fonts:https://fonts.googleapis.com/css2?family=Viaoda+Libre&family=Imprima&display=swap。Viaoda Libre = 衬线标题;Imprima = 无衬线正文。标题:“Step Into Wonder”。
  • 全局重置,深色背景 #0a0608,font-family: 'Imprima', sans-serif,scrollbar-gutter: stable。
  • @keyframes bobUp:在 50% 处 translateY -6px(驱动滚动提示 chevron,animation: bobUp 1.8s ease-in-out infinite)。

图片资源(请使用这些精确的远程 URL——保持远程)

这些是大型稳定的 CDN 静态图;不要内联它们,也不要更换主机。

PORTAL_BG     = https://plugin-assets.open-design.ai/plugins/dreamcore-landing/image_1_vdzwae-464f73.webp
CURTAIN_LEFT  = https://plugin-assets.open-design.ai/plugins/dreamcore-landing/curtain_left_znkmva-f9eb4c.webp
CURTAIN_RIGHT = https://plugin-assets.open-design.ai/plugins/dreamcore-landing/curtain_right_paeyym-9fa947.webp
WORLD_BG      = https://plugin-assets.open-design.ai/plugins/dreamcore-landing/image_2_gkcdlx-5f252f.webp
BOTTOM_CLOUDS = https://plugin-assets.open-design.ai/plugins/dreamcore-landing/bottom_clouds_xskut6-c56b42.webp
CARD_IMAGES[0] = https://plugin-assets.open-design.ai/plugins/dreamcore-landing/hf_20260525_160507_2ccbb4eb-1469-484f-af25-59168ad9a233-0c7429.webp&w=1280&q=85
CARD_IMAGES[1] = https://plugin-assets.open-design.ai/plugins/dreamcore-landing/hf_20260525_160644_072a7f68-a101-4ded-a332-7d37707dbdd1-bfae0e.webp&w=1280&q=85
CARD_IMAGES[2] = https://plugin-assets.open-design.ai/plugins/dreamcore-landing/hf_20260525_160706_1c153d04-0dfb-4ac9-a4ef-e74f301c329c-8b9d4e.webp&w=1280&q=85

架构

  • 外层容器:height: 480vh; position: relative。其内部:一个 position: sticky; top: 0; height: 100vh; overflow: hidden; background: #0a0608 视口。所有层通过绝对定位 + z-index 堆叠。
  • scrollProgress = clamp(window.scrollY / (container.scrollHeight - window.innerHeight), 0, 1)。
  • 帮助函数:easeInOut(t) = t<0.5 ? 2*t*t : -1+(4-2*t)*t;lerp(a,b,t);clamp(v,mn,mx)。isMobile() = matchMedia('(max-width: 767px)')。
  • ep = easeInOut(scrollProgress) 驱动每一层的缩放。

层级堆叠(从下到上按 z-index)

  1. 世界背景(z 0):WORLD_BG,inset 0,object-fit: cover,transform-origin: 50% 50%。缩放 lerp(1, 1.18, ep)。鼠标 MAG = 6。
  2. 底部云层(z 10):BOTTOM_CLOUDS,bottom 0,width:100% height:auto,transform-origin: 50% 100%。缩放 lerp(1, 1.4, ep)。鼠标 MAG = 9(Y 方向阻尼 ×0.4)。在滚动的前 5% 内,不透明度从 0.7 淡入至 1。
  3. 弧形卡片滑块(z 9):absolute,bottom: 60px (移动端)/80px (桌面端),居中。不透明度 = scene2Opacity。包含 <ArcCardSlider>(几何结构见下)。
  4. 门户框架(z 15):PORTAL_BG,inset 0,object-fit: cover,transform-origin: 52% 38%。缩放 lerp(1, 7.5, ep) —— 门户放大效果。鼠标 MAG = 7。不透明度在滚动至 0.65 前保持 1,在 0.85 处淡出至 0。
  5. 底部淡出(z 16):bottom,height: 40%,linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%),pointer-events: none。
  6. 左侧帷幕(z 16):CURTAIN_LEFT,inset 0,object-fit: cover,object-position: right center,transform-origin: left center。入场:100ms 后移动 translateX(-62%),过渡 transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1)。滚动时:额外 translateX -lerp(0,150,ep)%,缩放 lerp(1,1.3,ep)。鼠标 MAG = 14(Y×0.3)。2200ms 后,过渡切换为 none 以实现即时视差。
  7. 右侧帷幕(z 16):镜像——transform-origin: right center,object-position: left center,移动 +62% 然后 +lerp(0,150,ep)%,MAG = 14。
  8. 顶部淡出(z 45):top,height: 42vh,linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 100%),pointer-events: none。

导航(z 50)

绝对定位顶部,宽度 100%,flex; space-between; center。链接样式:Imprima,12px,letter-spacing: 0.12em,大写,#fff,不透明度 0.9。

  • 移动端(padding: 18px 20px):“探索”(11px) · 星标Logo · “连接”(11px)。
  • 桌面端(padding: 22px 48px):左侧组 ["世界","工坊","沉浸"] 间距 36 · 星标Logo 居中 · 右侧组 ["工艺","手记","连接"] 间距 36。
  • 星标Logo — 内联 SVG 28×28:白色星形路径 M14 2l2.09 6.42H23l-5.45 3.96 2.09 6.42L14 14.84l-5.64 4.06 2.09-6.42L4.96 8.42h6.95L14 2z(不透明度 0.9)+ 3 个小圆(cx/cy 14/24 r1.5 op 0.6;6/6 r1 op 0.4;22/6 r1 op 0.4)。

场景 1 UI(z 20)

不透明度 = clamp(1 - scrollProgress/0.22, 0, 1)。三个 Tailwind 响应式布局块(无 JS 布局分支):

  • 移动端(md:hidden,padding 80px 24px 100px,居中列):标题 “FALL › INTO”(clamp(26px,7vw,42px),字间距最宽,#3b1a0a)然后 “REVERIE”(clamp(52px,16vw,80px),字间距紧密,leading-none,#3b1a0a)。› 为 #6b2e0e 且 0.8em;“INTO” 为斜体。副文本 15px,#5c2d0e,最大宽度 280。一个 140×140 的卷轴卡片。
  • 平板端(hidden md:flex xl:hidden,间距 28):标题与移动端相同的深棕色(大小 clamp(28px,5vw,44px)/clamp(60px,12vw,86px)),副文本 16px 最大宽度 400。三个 140×140 卡片(gap 14):卡片1卷轴,卡片2数字 “32” + “世界赞助者”,卡片3卷轴。
  • 桌面端(hidden xl:block/flex):标题块绝对定位 top:46% left:60px maxWidth:440px translateY(-50%),白色并带有 text-shadow: 0 2px 24px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.9)。“FALL › INTO” clamp(32px,4.5vw,54px) line-height 1.1 ls 0.04em,› = rgba(255,220,180,0.7)。“REVERIE” clamp(50px,7.5vw,88px) line-height 0.9 ls -0.02em。副文本 18px line-height 1.7 rgba(255,245,235,0.88) max-width 300 带阴影。卡片块绝对定位 right:40px top:50% translateY(-50%) 间距 12,三个 158×158 卡片圆角 28px box-shadow: 0 8px 32px rgba(0,0,0,0.45)。

卷轴卡片结构(所有尺寸):border-radius 22px (移动端/平板端) / 28px (桌面端),CARD_IMAGES[i] 背景覆盖,渐变叠加层(高度 60%),背景模糊层(高度 44%,渐变遮罩),底部内容内边距 12px。播放卡片 = 白色圆形(26/30px)+ 播放三角形 SVG + “查看卷轴”(13/18px)。数字卡片 = “32” Viaoda Libre(28/36px)+ “世界赞助者”。

  • 滑块指示点(底部):28px (移动端居中) / 40px (桌面端 left:60px)。4 个点,第一个 28px 宽激活,其余 14px,所有点 4px 高圆角 2px。激活 rgba(255,255,255,0.9),未激活 rgba(255,255,255,0.35)。
  • 滚动提示(仅桌面端,bottom:36px 居中):“DESCEND”(10px,ls 0.22em,大写,rgba(255,255,255,0.6))+ ScrollChevron(34px 圆形,1.5px border rgba(255,255,255,0.5),chevron SVG,animation: bobUp 1.8s ease-in-out infinite)。

场景 2 UI(z 46)

不透明度 = clamp((scrollProgress - 0.68)/0.16, 0, 1)。居中列,上边距 8vh (移动端)/12vh (桌面端)。

  • 标题(Viaoda Libre):“FORGE BEYOND THE REAL”——clamp(28px,8vw,44px) 移动端 / clamp(38px,6.5vw,78px) 桌面端,白色,ls 0.03em,line-height 1.05,text-shadow: 0 2px 20px rgba(0,0,0,0.4)。
  • 副文本(Imprima):“Singular voyages to astonishing destinations, shaped for those who seek beauty beyond the ordinary and the known.”——14px/20px,line-height 1.6,ls -0.01em,最大宽度 260/480,rgba(255,255,255,0.82)。

弧形卡片滑块组件

9 张卡片(数据见下)。属性:cards[],rotationOffset,isMobile。

布局数学——cardSpacingDeg:12(移动端)/9(桌面端);centerIndex = floor(9/2) = 4;arcRadius:700/1100;cardW:160/220;cardH:175/230;sliderH:260/360。arcSweepDeg = (9-1)*10 = 80。rotationOffset = lerp(0, arcSweepDeg, clamp((scrollProgress - 0.70)/0.30, 0, 1))。

每张卡片:baseDeg = (i - centerIndex)*cardSpacingDeg;deg = baseDeg - rotationOffset + (centerIndex*cardSpacingDeg);rad = deg*PI/180;x = sin(rad)*arcRadius;y = arcRadius - cos(rad)*arcRadius。绝对定位在 bottom: -y + (140 mob/200 desk)px,left: calc(50% + x - halfW),transform: rotate(deg),transformOrigin: halfW arcRadius。

外观:圆角矩形(18px/26px),背景 = card.color(柔和色),box-shadow: 0 8px 40px rgba(80,40,60,0.18)。右上角编号圆形(24px,1.5px border rgba(80,50,60,0.3),文本 rgba(80,50,60,0.6),10px Imprima,零填充索引)。底部:标题 Viaoda Libre(22px/30px,#3a2530)+ 描述 Imprima(12px/15px,rgba(58,37,48,0.65))。

卡片数据(9 张卡片)

{ title: 'Hidden Realms',  desc: 'Luminous sanctuaries unseen by wandering eyes', color: '#f3cdd6' }
{ title: 'Wild Solitudes', desc: 'Dissolve into untamed horizons and deep calm',  color: '#dcedc2' }
{ title: 'Silent Havens',  desc: 'Remote escapes far beyond ordinary reach',      color: '#c3e3f4' }
{ title: 'Bespoke Quests', desc: 'Journeys shaped around your vision and soul',   color: '#f0e4c0' }
{ title: 'Vivid Drifts',   desc: 'Surreal passages through breathtaking terrain', color: '#dcd2f2' }
{ title: 'Mystic Crests',  desc: 'Timeless ridgelines wrapped in cloud and myth', color: '#f3cdd6' }
{ title: 'Deep Currents',  desc: 'Glowing depths alive with uncharted wonder',    color: '#c3e3f4' }
{ title: 'Gilded Dusk',    desc: 'Amber horizons that stretch past all reason',   color: '#f0e4c0' }
{ title: 'Glassy Tides',   desc: 'Calm waters holding skies of pure stillness',   color: '#dcedc2' }

入场序列

  • t=100ms:curtainsOpen → true → 每个帷幕水平移动 62%,过渡 1.8s cubic-bezier(0.16, 1, 0.3, 1)。
  • t=600ms:uiVisible → true → 场景 1 UI 淡入/滑入(opacity 0.9s ease, transform 0.9s ease),带有交错延迟:标题 0.3s,卡片 0.55s,指示点 0.8s,滚动提示 0.9s。
  • t=2200ms:entranceDone → true → 帷幕过渡切换为 none,使视差即时生效。

鼠标视差(桌面端)

requestAnimationFrame 循环在 speed = 0.07 下对原始鼠标位置进行 lerp。每层根据其 MAG 值向鼠标相反方向偏移,并结合滚动驱动的缩放/平移。MAG:world=6,clouds=9,portal=7,curtainL=14,curtainR=14。

硬性规则

  • 门户缩放范围 lerp(1, 7.5, ep) 和帷幕入口 -62%/+62% 是标志性动画——不要缩减它们。
  • 保留所有五张 Cloudinary 静态图和三张 higgs.ai 卡片图片为远程 URL;它们是大型稳定的 CDN 媒体。不要内联它们,不要更换主机。
  • 无外部头像主机(i.pravatar.cc,api.dicebear.com)——此模板不使用头像。
  • 字体已锁定:Viaoda Libre(衬线标题)+ Imprima(正文)。背景 #0a0608。
  • 滚动断点已锁定:场景 1 在 0.22 处淡出;门户在 0.65→0.85 处淡出;场景 2 在 0.68→0.84 处淡入;弧形旋转在 0.70→1.0 驱动。

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

jhy0285/monofield

Produce a print-grade single-page kami (紙 / 纸) document — warm parchment canvas, ink-blue accent, serif at one weight, no italic, no cool grays. The output reads like a professional white paper or studio one-pager, not an app UI. Multilingual by design (EN · zh-CN · ja). One self-contained HTML file, zero dependencies.

jhy0285/monofield

Produce a single-file slide deck in the Atelier Zero visual language (warm-paper background, italic-serif emphasis spans, coral terminating dots, surreal collage plates) — Open Design's brand deck recipe. The deck uses **horizontal magazine-style swipe pagination** (←/→, wheel, swipe), a per-slide chrome strip with brand mark and slide counter, an ESC overview grid, a coral progress bar, and inherits the canonical stylesheet + 16-slot image library from the sister `open-design-landing` skill.

jhy0285/monofield

Produce a world-class single-page editorial landing site in the Atelier Zero visual language (Monocle / Apartamento / Études editorial collage) — the same aesthetic Open Design uses for its own marketing surface. The agent fills a typed `inputs.json` from a brand brief, optionally generates 16 collage assets via gpt-image-2, then runs a pure-function composer that emits a self-contained HTML file; a separate path can mirror the Astro marketing site in `apps/landing-page/`. Drop-in scroll-reveal motion and a Headroom-style sticky nav are wired automatically.

jhy0285/monofield

A standalone pricing page — header, plan tiers, feature comparison table, and an FAQ. Use when the brief asks for "pricing", "plans", "subscription tiers", or a "compare plans" page.

jhy0285/monofield

Single-page SaaS landing with hero, features, social proof, pricing, and CTA. Respects the active DESIGN.md color/typography/layout tokens. Trigger keywords: "saas landing", "marketing page", "product landing".

jhy0285/monofield

Minimal pre-launch landing with email capture, brand logo, and optional decorative layer. Reads DESIGN.md for colors, typography, and layout rules. Best for: product launches, beta signups, early access programs, indie projects.

jhy0285/monofield

Single-page SaaS landing with hero, features, social proof, pricing, and CTA. Respects the active DESIGN.md color/typography/layout tokens. Trigger keywords: "saas landing", "marketing page", "product landing".

jhy0285/monofield

Use this plugin when the user wants a premium, GSAP-driven cinematic B2B landing page: a scroll-driven full-screen video slider hero with clip-path ellipse transitions, SplitText char-reveal headlines, a masonry product gallery, scroll-reveal about text, a partner marquee, Lottie-style feature cards, and a multi-office footer. Invoke for 'cinematic landing page', 'video hero landing', 'bakery / food-service landing', 'GSAP scroll site', or when the user references the Cinematic Landing Page template.

jhy0285/monofield

Use this plugin when the user wants a dark, pure-monochrome newsletter / content-platform landing page (Mindloop): fullscreen video hero, Instrument-Serif italic accent words, liquid-glass controls, scroll-driven word-by-word mission reveal, and an HLS-video CTA. Invoke for 'Mindloop landing', 'black monochrome newsletter landing page', 'video hero content platform', or when the user references the Mindloop template.

jhy0285/monofield

Programmatic video creation with React. Useful for branded explainers, social cuts, dashboards-to-video, and reproducible motion graphics.

相关技能