Communitygithub.com

jhy0285/monofield

當使用者想要一個單頁沉浸式視差登陸頁面,包含滾動驅動的入口/帷幕效果、弧形卡片輪播,以及『夢核』風格的英雄區塊時使用此技能。

monofield 是什麼?

此技能是一個專業的 AI 助手外掛程式,用於生成名為「Dreamcore Landing」的沉浸式視差滾動登陸頁面。它會輸出一個完整的、可直接執行的 HTML 參考實作,開發者應以此為起點,僅調整文案與資料,不改變底層的圖層數學、動態曲線或視覺語言。該頁面採用純 HTML/CSS/JS 構建(無需建置步驟),並在架構上使用單一容器、固定視口與 requestAnimationFrame 迴圈來驅動兩幕場景的滾動動畫、滑鼠視差與入口序列。核心功能包含:透過 lerp 函數與 easeInOut 曲線實現的「入口縮放」(portal scale from 1 to 7.5)、左右帷幕的滑入(-62%/+62%)、底部雲層的淡入與縮放,以及一個由 9 張卡片組成的弧形輪播(Arc Card Slider),其旋轉角度會隨著滾動進度而改變。此技能支援 Claude Code、Cursor 等支援自行定義技能的 AI 編碼代理,主要針對希望快速搭建具有電影級滾動敘事效果登陸頁面的開發者。

相容平台~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 值、字型、圖片網址與卡片資料都已鎖定。

技術棧

  • 預設輸出:一個獨立的 HTML 檔案(example.html 種子)。純 HTML/CSS/JS,無需建置步驟。框架功能已被映射:useScroll/useTransform → 一個被動 scroll 監聽器,寫入 scrollProgress;逐幀轉換 → 一個 requestAnimationFrame 迴圈;滑鼠視差 → 一個 mousemove 處理器,以 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)(驅動滾動提示箭頭,animation: bobUp 1.8s ease-in-out infinite)。

圖片資源(使用這些確切的遠端網址 — 保持遠端)

這些是大型穩定的 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,底部 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):絕對定位,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):底部,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 後,transition 切換為 none 以實現即時視差。
  7. 右帷幕(z 16):鏡像 — transform-origin: right center,object-position: left center,位移 +62% 然後 +lerp(0,150,ep)%,MAG = 14。
  8. 頂部淡出(z 45):頂部,height: 42vh,linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 100%),pointer-events: none。

導航(z 50)

絕對定位頂部,全寬,flex; space-between; center。連結樣式:Imprima,12px,letter-spacing: 0.12em,大寫,#fff,不透明度 0.9。

  • 行動版(padding: 18px 20px):「探索」(11px) · StarLogo · 「連結」(11px)。
  • 桌面版(padding: 22px 48px):左側群組 [「世界」,「工作室」,「沉浸體驗」] 間距 36 · StarLogo 居中 · 右側群組 [「工藝」,「寶典」,「連結」] 間距 36。
  • StarLogo — 內聯 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 半徑 1.5 不透明度 .6;6/6 半徑 1 不透明度 .4;22/6 半徑 1 不透明度 .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),追蹤緊密,無前導,#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) 行高 1.1 ls 0.04em,› = rgba(255,220,180,0.7)。「REVERIE」clamp(50px,7.5vw,88px) 行高 0.9 ls -0.02em。副文字 18px 行高 1.7 rgba(255,245,235,0.88) 最大寬度 300,帶陰影。卡片區塊絕對定位 right:40px top:50% translateY(-50%) 間距 12,三個 158×158 卡片半徑 28 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 高半徑 2。活躍 rgba(255,255,255,0.9),非活躍 rgba(255,255,255,0.35)。
  • 滾動提示(僅桌面版,bottom:36px 居中):「降臨」(10px,ls 0.22em,大寫,rgba(255,255,255,0.6))+ ScrollChevron(34px 圓圈,1.5px border rgba(255,255,255,0.5),箭頭 SVG,animation: bobUp 1.8s ease-in-out infinite)。

場景 2 UI(z 46)

不透明度 = clamp((scrollProgress - 0.68)/0.16, 0, 1)。居中直欄,margin-top 8vh (行動版)/12vh (桌面版)。

  • 標題(Viaoda Libre):「FORGE BEYOND THE REAL」— clamp(28px,8vw,44px) 行動版 / clamp(38px,6.5vw,78px) 桌面版,白色,ls 0.03em,行高 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,行高 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 → 帷幕 transition 切換為 none,以便視差即時生效。

滑鼠視差(桌面版)

requestAnimationFrame 迴圈以 speed = 0.07 對原始滑鼠位置進行線性插值。每個圖層以其 MAG 值在滑鼠的相反方向上偏移,並結合滾動驅動的縮放/位移。MAG:世界=6,雲層=9,入口=7,左帷幕=14,右帷幕=14。

硬性規則

  • 入口縮放範圍 lerp(1, 7.5, ep) 和帷幕入口 -62%/+62% 是標誌性動作 — 請勿減少它們。
  • 保持所有五張 Cloudinary 靜態圖片和三張 higgs.ai 卡片圖片為遠端網址;它們是大型穩定的 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.

相關技能