Skip to content

Commit 829b5e0

Browse files
committed
docs(catalog): put the install command above the preview
The install command is the one line a reader comes to a catalog page to copy, and it sat below the whole variables explorer, under its Customize panel, a screen or more down on long items. Move the Install section above the preview and regenerate all 399 pages.
1 parent 42a3e7a commit 829b5e0

401 files changed

Lines changed: 3087 additions & 2614 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎docs/catalog/blocks/ai-chat-reveal.mdx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ description: "A question is typed on a rising keyboard, sent, and answered by an
66
import { InstallCommand } from "/snippets/install-command.jsx";
77
import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
88

9+
## Install
10+
11+
<InstallCommand command="npx hyperframes add ai-chat-reveal" item="ai-chat-reveal" />
12+
13+
That writes `compositions/ai-chat-reveal.html`, plus 2 supporting files under `assets/`.
14+
915
<VariablesExplorer
1016
previewSrc="/public/catalog/blocks/ai-chat-reveal.json"
1117
compositionId="ai-chat-reveal"
@@ -1036,12 +1042,6 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
10361042

10371043
</VariablesExplorer>
10381044

1039-
## Install
1040-
1041-
<InstallCommand command="npx hyperframes add ai-chat-reveal" item="ai-chat-reveal" />
1042-
1043-
That writes `compositions/ai-chat-reveal.html`, plus 2 supporting files under `assets/`.
1044-
10451045
## Add it to your video
10461046

10471047
It runs for 19.3333 seconds at 1080×1920. Paste this into your composition:

‎docs/catalog/blocks/app-showcase.mdx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ description: "Fitness app product showcase with three floating smartphone screen
55

66
import { InstallCommand } from "/snippets/install-command.jsx";
77

8+
## Install
9+
10+
<InstallCommand command="npx hyperframes add app-showcase" item="app-showcase" />
11+
12+
That writes one file: `compositions/app-showcase.html`.
13+
814
<iframe
915
className="w-full aspect-video rounded-xl border-0 bg-zinc-100 dark:bg-zinc-800"
1016
title="app-showcase preview"
1117
loading="lazy"
1218
srcDoc={`<!doctype html><html><head><meta charset="utf-8"><style>html,body{margin:0;height:100%;overflow:hidden;background:transparent}hyperframes-player{display:block;width:100%;height:100%}</style><script src="https://cdn.jsdelivr.net/npm/@hyperframes/player@latest/dist/hyperframes-player.global.js"><\/script></head><body><script>fetch("/public/catalog/blocks/app-showcase.json").then(function(r){return r.json()}).then(function(d){var p=document.createElement("hyperframes-player");p.setAttribute("srcdoc",d.html);p.setAttribute("controls","");p.setAttribute("autoplay","");p.setAttribute("loop","");p.setAttribute("muted","");p.setAttribute("poster","https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/app-showcase.png");document.body.appendChild(p)});<\/script></body></html>`}
1319
/>
1420

15-
## Install
16-
17-
<InstallCommand command="npx hyperframes add app-showcase" item="app-showcase" />
18-
19-
That writes one file: `compositions/app-showcase.html`.
20-
2121
## Source
2222

2323
<Accordion title={`app-showcase.html`}>

‎docs/catalog/blocks/apple-money-count.mdx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ description: "Apple-style finance counter that counts from $0 to $10,000, flashe
55

66
import { InstallCommand } from "/snippets/install-command.jsx";
77

8+
## Install
9+
10+
<InstallCommand command="npx hyperframes add apple-money-count" item="apple-money-count" />
11+
12+
That writes `compositions/apple-money-count.html`, plus 1 supporting file under `assets/`.
13+
814
<iframe
915
className="w-full aspect-video rounded-xl border-0 bg-zinc-100 dark:bg-zinc-800"
1016
title="apple-money-count preview"
1117
loading="lazy"
1218
srcDoc={`<!doctype html><html><head><meta charset="utf-8"><style>html,body{margin:0;height:100%;overflow:hidden;background:transparent}hyperframes-player{display:block;width:100%;height:100%}</style><script src="https://cdn.jsdelivr.net/npm/@hyperframes/player@latest/dist/hyperframes-player.global.js"><\/script></head><body><script>fetch("/public/catalog/blocks/apple-money-count.json").then(function(r){return r.json()}).then(function(d){var p=document.createElement("hyperframes-player");p.setAttribute("srcdoc",d.html);p.setAttribute("controls","");p.setAttribute("autoplay","");p.setAttribute("loop","");p.setAttribute("muted","");p.setAttribute("poster","https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/apple-money-count.png");document.body.appendChild(p)});<\/script></body></html>`}
1319
/>
1420

15-
## Install
16-
17-
<InstallCommand command="npx hyperframes add apple-money-count" item="apple-money-count" />
18-
19-
That writes `compositions/apple-money-count.html`, plus 1 supporting file under `assets/`.
20-
2121
## Source
2222

2323
<Accordion title={`apple-money-count.html`}>

‎docs/catalog/blocks/bar-chart-race.mdx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ description: "Ranked bars grow and overtake each other as a time series advances
66
import { InstallCommand } from "/snippets/install-command.jsx";
77
import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
88

9+
## Install
10+
11+
<InstallCommand command="npx hyperframes add bar-chart-race" item="bar-chart-race" />
12+
13+
That writes one file: `compositions/bar-chart-race.html`.
14+
915
<VariablesExplorer
1016
previewSrc="/public/catalog/blocks/bar-chart-race.json"
1117
compositionId="bar-chart-race"
@@ -602,12 +608,6 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
602608

603609
</VariablesExplorer>
604610

605-
## Install
606-
607-
<InstallCommand command="npx hyperframes add bar-chart-race" item="bar-chart-race" />
608-
609-
That writes one file: `compositions/bar-chart-race.html`.
610-
611611
## Add it to your video
612612

613613
It runs for 12 seconds at 1920×1080. Paste this into your composition:

‎docs/catalog/blocks/beat-freeze-cut.mdx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ description: "A beat-driven speed ramp, freeze-frame hit, and hard-cut sequence
55

66
import { InstallCommand } from "/snippets/install-command.jsx";
77

8+
## Install
9+
10+
<InstallCommand command="npx hyperframes add beat-freeze-cut" item="beat-freeze-cut" />
11+
12+
That writes one file: `compositions/beat-freeze-cut.html`.
13+
814
<iframe
915
className="w-full aspect-video rounded-xl border-0 bg-zinc-100 dark:bg-zinc-800"
1016
title="beat-freeze-cut preview"
1117
loading="lazy"
1218
srcDoc={`<!doctype html><html><head><meta charset="utf-8"><style>html,body{margin:0;height:100%;overflow:hidden;background:transparent}hyperframes-player{display:block;width:100%;height:100%}</style><script src="https://cdn.jsdelivr.net/npm/@hyperframes/player@latest/dist/hyperframes-player.global.js"><\/script></head><body><script>fetch("/public/catalog/blocks/beat-freeze-cut.json").then(function(r){return r.json()}).then(function(d){var p=document.createElement("hyperframes-player");p.setAttribute("srcdoc",d.html);p.setAttribute("controls","");p.setAttribute("autoplay","");p.setAttribute("loop","");p.setAttribute("muted","");p.setAttribute("poster","https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/beat-freeze-cut.png");document.body.appendChild(p)});<\/script></body></html>`}
1319
/>
1420

15-
## Install
16-
17-
<InstallCommand command="npx hyperframes add beat-freeze-cut" item="beat-freeze-cut" />
18-
19-
That writes one file: `compositions/beat-freeze-cut.html`.
20-
2121
## Add it to your video
2222

2323
It runs for 6 seconds at 1920×1080. Paste this into your composition:

‎docs/catalog/blocks/blue-sweater-intro-video.mdx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ description: "Warm AI creator intro sequence that resolves into an X follow card
55

66
import { InstallCommand } from "/snippets/install-command.jsx";
77

8+
## Install
9+
10+
<InstallCommand command="npx hyperframes add blue-sweater-intro-video" item="blue-sweater-intro-video" />
11+
12+
That writes `compositions/blue-sweater-intro-video.html`, plus 2 supporting files under `assets/` and `assets/sfx/`.
13+
814
<iframe
915
className="w-full aspect-video rounded-xl border-0 bg-zinc-100 dark:bg-zinc-800"
1016
title="blue-sweater-intro-video preview"
1117
loading="lazy"
1218
srcDoc={`<!doctype html><html><head><meta charset="utf-8"><style>html,body{margin:0;height:100%;overflow:hidden;background:transparent}hyperframes-player{display:block;width:100%;height:100%}</style><script src="https://cdn.jsdelivr.net/npm/@hyperframes/player@latest/dist/hyperframes-player.global.js"><\/script></head><body><script>fetch("/public/catalog/blocks/blue-sweater-intro-video.json").then(function(r){return r.json()}).then(function(d){var p=document.createElement("hyperframes-player");p.setAttribute("srcdoc",d.html);p.setAttribute("controls","");p.setAttribute("autoplay","");p.setAttribute("loop","");p.setAttribute("muted","");p.setAttribute("poster","https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/blue-sweater-intro-video.png");document.body.appendChild(p)});<\/script></body></html>`}
1319
/>
1420

15-
## Install
16-
17-
<InstallCommand command="npx hyperframes add blue-sweater-intro-video" item="blue-sweater-intro-video" />
18-
19-
That writes `compositions/blue-sweater-intro-video.html`, plus 2 supporting files under `assets/` and `assets/sfx/`.
20-
2121
## Source
2222

2323
<Accordion title={`blue-sweater-intro-video.html`}>

‎docs/catalog/blocks/camcorder-hud.mdx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ description: "Responsive REC, battery, editable date placeholder, and timeline-d
55

66
import { InstallCommand } from "/snippets/install-command.jsx";
77

8+
## Install
9+
10+
<InstallCommand command="npx hyperframes add camcorder-hud" item="camcorder-hud" />
11+
12+
That writes one file: `compositions/camcorder-hud.html`.
13+
814
<iframe
915
className="w-full aspect-video rounded-xl border-0 bg-zinc-100 dark:bg-zinc-800"
1016
title="camcorder-hud preview"
1117
loading="lazy"
1218
srcDoc={`<!doctype html><html><head><meta charset="utf-8"><style>html,body{margin:0;height:100%;overflow:hidden;background:transparent}hyperframes-player{display:block;width:100%;height:100%}</style><script src="https://cdn.jsdelivr.net/npm/@hyperframes/player@latest/dist/hyperframes-player.global.js"><\/script></head><body><script>fetch("/public/catalog/blocks/camcorder-hud.json").then(function(r){return r.json()}).then(function(d){var p=document.createElement("hyperframes-player");p.setAttribute("srcdoc",d.html);p.setAttribute("controls","");p.setAttribute("autoplay","");p.setAttribute("loop","");p.setAttribute("muted","");p.setAttribute("poster","https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/camcorder-hud.png");document.body.appendChild(p)});<\/script></body></html>`}
1319
/>
1420

15-
## Install
16-
17-
<InstallCommand command="npx hyperframes add camcorder-hud" item="camcorder-hud" />
18-
19-
That writes one file: `compositions/camcorder-hud.html`.
20-
2121
## Add it to your video
2222

2323
It runs for 4 seconds at 1920×1080. Paste this into your composition:

‎docs/catalog/blocks/camera-dolly-zoom.mdx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ description: "Camera tracks toward or away from the subject while the field of v
66
import { InstallCommand } from "/snippets/install-command.jsx";
77
import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
88

9+
## Install
10+
11+
<InstallCommand command="npx hyperframes add camera-dolly-zoom" item="camera-dolly-zoom" />
12+
13+
That writes one file: `compositions/camera-dolly-zoom.html`.
14+
915
<VariablesExplorer
1016
previewSrc="/public/catalog/blocks/camera-dolly-zoom.json"
1117
compositionId="camera-dolly-zoom"
@@ -372,12 +378,6 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
372378

373379
</VariablesExplorer>
374380

375-
## Install
376-
377-
<InstallCommand command="npx hyperframes add camera-dolly-zoom" item="camera-dolly-zoom" />
378-
379-
That writes one file: `compositions/camera-dolly-zoom.html`.
380-
381381
## Add it to your video
382382

383383
It runs for 4 seconds at 1920×1080. Paste this into your composition:

‎docs/catalog/blocks/carousel-circle-1.mdx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ description: "Image cards ride a circle with a size gradient by depth angle, swe
66
import { InstallCommand } from "/snippets/install-command.jsx";
77
import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
88

9+
## Install
10+
11+
<InstallCommand command="npx hyperframes add carousel-circle-1" item="carousel-circle-1" />
12+
13+
That writes `compositions/carousel-circle-1.html`, plus 12 supporting files under `assets/carousel-images/`.
14+
915
<VariablesExplorer
1016
previewSrc="/public/catalog/blocks/carousel-circle-1.json"
1117
compositionId="carousel-circle-1"
@@ -1019,12 +1025,6 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
10191025
10201026
</VariablesExplorer>
10211027
1022-
## Install
1023-
1024-
<InstallCommand command="npx hyperframes add carousel-circle-1" item="carousel-circle-1" />
1025-
1026-
That writes `compositions/carousel-circle-1.html`, plus 12 supporting files under `assets/carousel-images/`.
1027-
10281028
## Add it to your video
10291029
10301030
It runs for 6 seconds at 1920×1080. Paste this into your composition:

‎docs/catalog/blocks/carousel-circle-2.mdx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ description: "Image cards ride a circle with a size gradient by depth angle, swe
66
import { InstallCommand } from "/snippets/install-command.jsx";
77
import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
88

9+
## Install
10+
11+
<InstallCommand command="npx hyperframes add carousel-circle-2" item="carousel-circle-2" />
12+
13+
That writes `compositions/carousel-circle-2.html`, plus 12 supporting files under `assets/carousel-images/`.
14+
915
<VariablesExplorer
1016
previewSrc="/public/catalog/blocks/carousel-circle-2.json"
1117
compositionId="carousel-circle-2"
@@ -1019,12 +1025,6 @@ import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
10191025
10201026
</VariablesExplorer>
10211027
1022-
## Install
1023-
1024-
<InstallCommand command="npx hyperframes add carousel-circle-2" item="carousel-circle-2" />
1025-
1026-
That writes `compositions/carousel-circle-2.html`, plus 12 supporting files under `assets/carousel-images/`.
1027-
10281028
## Add it to your video
10291029
10301030
It runs for 6 seconds at 1920×1080. Paste this into your composition:

0 commit comments

Comments
 (0)