← 返回列表
全部 Skill›内容与媒体 Content & Media›open-design-homepage

open-design-homepage

作者 @nexu-io · 语言 en
A 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.
内容与媒体 Content & Media文档处理通用访问网络待翻译
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
108,512
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

OpenDesign Homepage

A first-party showcase template that mirrors the live open-design.ai homepage, captured as a fully self-contained bundle that renders in the sandboxed preview.

It is here to demonstrate the visual ceiling OpenDesign targets for interactive, WebGL-grade marketing surfaces on the web — not a fill-in-the-blank generator. Treat it as a reference build to study and adapt.

What it is

  • Interactive 3D hero — a real-time OpenDesign script wordmark rendered with React Three Fiber / Three.js, plus a cursor-reactive parallax layer and a floating sticker collage.
  • Scroll-driven narrative — the work grid, capabilities copy, and decorative stickers animate as the page scrolls.
  • Craft details — custom variable fonts (TikTok Sans, Geist Mono, Departure Mono), a light/dark theme toggle, an optional ambient soundtrack, and a live clock / cursor-coordinate HUD.

How it is built (for reference)

  • Stack: Next.js (App Router, Turbopack build) + React Three Fiber + Three.js, exported as a static, self-contained bundle.
  • 3D geometry is Draco-compressed (KHR_draco_mesh_compression) — the hero wordmark drops from ~4.4 MB to ~300 KB with no visible change, decoded at runtime by the bundled DRACOLoader.
  • Imagery (work thumbnails, stickers) ships as lossless WebP — pixel-identical to the source PNGs at a fraction of the size, so every file stays under the 1 MB repository blob limit and the template needs no external asset host.
  • Self-contained & path-portable: all assets load relative to the entry file, so the bundle renders correctly whether served from the site root or a nested preview subpath.

The exported Turbopack loader normalizes each registered script URL against

document.baseURI before identifying its chunk. Preserve that compatibility

change when refreshing the export: sandbox preview hosts can rewrite script

attributes to absolute URLs with workspace query parameters. Comparing those

attributes directly with the relative ./assets/_next/ prefix leaves bootstrap

dependencies unresolved and the page stuck on its loading bar. Keep query

parameters on requests; only normalize chunk identity. Normalize pending-load

keys too, because Flight hydration asks for relative, unscoped chunk URLs.

The exported router keeps the serialized homepage path when its location is

about:srcdoc, and uses document.baseURI to resolve router/prefetch URLs.

Otherwise the opaque iframe URL either throws or selects a nonexistent route.

The plugin asset route permits opaque-origin reads only for declared assets

of bundled plugins, allowing WebGL textures, model fetches and fonts to load

without adding allow-same-origin to the preview sandbox.

Using it

Open example.html in the preview to explore the live, interactive result. All content is bundled locally — fonts, imagery, and 3D geometry ship in assets/, so there are no CDN scripts or external fonts. The one runtime network request is the Draco decoder, fetched from Google's gstatic CDN on demand (the same pattern the other WebGL examples use for their libraries). To adapt the aesthetic (typography, 3D treatment, sticker collage, scroll motion) into your own build, study the structure here and recreate it with your preferred React Three Fiber / Next.js setup.

评论
Nnexu-io
nexu-io
nexu-io/open-design
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@nexu-io
所属大类内容与媒体 Content & Media / 文档处理
国内可用性通用
最近源活动—
风险提示访问网络
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。