mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-01 03:06:54 +00:00
* docs(catalog): put each item page's title, description and Docs text in the server HTML Mintlify renders snippet components in the browser only, so everything inside CatalogDetail (title, standfirst, the Docs tab) was missing from the HTML search engines read: 448 catalog pages served Googlebot no body text. The generator now writes the H1 and standfirst as page markup above the component and the Docs tab as page markup after it, shown with that tab (docs/custom.css). The component no longer draws its own title. Pages patched structurally only; registry drift on 14 pages is left for a regeneration of its own. * docs(catalog): keep the title's top spacing the component gave it * fix(docs): catalog titles and descriptions keep markdown markers literal MDX reads text inside the static <h1> and <p> as inline markdown, so @_blue_sweater_ rendered as italic blue_sweater. mdxText now writes backslash, backtick, * _ [ ] ~ as character references too, with a unit test; the four affected pages are re-escaped.
109 lines
3.0 KiB
Plaintext
109 lines
3.0 KiB
Plaintext
---
|
||
title: "Aurora"
|
||
description: "Green and violet aurora curtains ripple across a night sky. A WebGPU shader from the Shaders library (shaders.com, MIT)."
|
||
mode: "frame"
|
||
---
|
||
|
||
import { CatalogDetail, CatalogSlot } from "/snippets/catalog-detail.jsx";
|
||
import { InstallCommand } from "/snippets/install-command.jsx";
|
||
|
||
<div className="hf-ve-static-head not-prose">
|
||
<h1>Aurora</h1>
|
||
<p>Green and violet aurora curtains ripple across a night sky. A WebGPU shader from the Shaders library (shaders.com, MIT).</p>
|
||
</div>
|
||
|
||
<CatalogDetail
|
||
previewSrc="/public/catalog/blocks/aurora.json"
|
||
compositionId="aurora"
|
||
compositionSrc="compositions/aurora.html"
|
||
title="Aurora"
|
||
variables={[]}
|
||
meta={{"duration":2,"width":1920,"height":1080,"category":"Blocks","badge":"Stable","codeLines":31}}
|
||
attribution={{"path":"registry/blocks/aurora","tags":["webgpu","webgpu-shader","background","light","aurora","sky"]}}
|
||
video="https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/aurora.mp4"
|
||
webgpu
|
||
hasCode
|
||
rawUrl="https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry/blocks/aurora/aurora.html"
|
||
>
|
||
|
||
<CatalogSlot slot="code">
|
||
|
||
```html aurora.html
|
||
<!doctype html>
|
||
<html>
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<style>
|
||
[data-composition-id="aurora"] canvas[data-shader] {
|
||
position: absolute;
|
||
inset: 0;
|
||
width: 1920px;
|
||
height: 1080px;
|
||
display: block;
|
||
background: #000;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div
|
||
data-composition-id="aurora"
|
||
data-start="0"
|
||
data-duration="2"
|
||
data-width="1920"
|
||
data-height="1080"
|
||
data-requires-webgpu
|
||
data-no-timeline
|
||
style="position: relative; width: 1920px; height: 1080px; overflow: hidden; background: #000"
|
||
>
|
||
<canvas data-shader="Aurora" width="1920" height="1080"></canvas>
|
||
</div>
|
||
<script src="lib/shaders.iife.js"></script>
|
||
</body>
|
||
</html>
|
||
```
|
||
|
||
</CatalogSlot>
|
||
|
||
<CatalogSlot slot="install">
|
||
|
||
<InstallCommand command="npx hyperframes add aurora" item="aurora" />
|
||
|
||
That writes `compositions/aurora.html`, plus 2 supporting files under `compositions/lib/`.
|
||
|
||
</CatalogSlot>
|
||
|
||
</CatalogDetail>
|
||
|
||
<div data-static-slot="docs" className="prose prose-gray dark:prose-invert">
|
||
|
||
## Add it to your video
|
||
|
||
It runs for 2 seconds at 1920×1080. Paste this into your composition:
|
||
|
||
```html index.html
|
||
<div
|
||
data-composition-id="aurora"
|
||
data-composition-src="compositions/aurora.html"
|
||
data-start="0"
|
||
data-duration="2"
|
||
data-track-index="1"
|
||
data-width="1920"
|
||
data-height="1080"
|
||
></div>
|
||
```
|
||
|
||
Move it in time with `data-start`. Put it on a different timeline row with
|
||
`data-track-index`. See [data attributes](/concepts/data-attributes) for the rest.
|
||
|
||
{/* hf:generated-footer */}
|
||
|
||
Tagged `webgpu` `webgpu-shader` `background` `light` `aurora` `sky`.
|
||
|
||
## Related topics
|
||
|
||
- [Browse the complete Catalog](/catalog)
|
||
- [Add assets and Catalog items in the browser editor](/studio/assets-and-blocks)
|
||
- [Put blocks together into one video](/concepts/compositions)
|
||
|
||
</div>
|