mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +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.
145 lines
4.0 KiB
Plaintext
145 lines
4.0 KiB
Plaintext
---
|
|
title: "Signup Flow"
|
|
description: "A composed signup flow with social action, email field, password field, and submit button"
|
|
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>Signup Flow</h1>
|
|
<p>A composed signup flow with social action, email field, password field, and submit button</p>
|
|
</div>
|
|
|
|
<CatalogDetail
|
|
previewSrc="/public/catalog/components/signup-flow.json"
|
|
compositionId="signup-flow"
|
|
compositionSrc="compositions/components/signup-flow.html"
|
|
title="Signup Flow"
|
|
variables={[]}
|
|
meta={{"category":"Effects","badge":"Stable","codeLines":80}}
|
|
attribution={{"path":"registry/components/signup-flow","tags":["ui-flow","signup","form"]}}
|
|
hasCode
|
|
rawUrl="https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry/components/signup-flow/signup-flow.html"
|
|
>
|
|
|
|
<CatalogSlot slot="code">
|
|
|
|
```html signup-flow.html
|
|
<!--
|
|
Signup Flow - Composed UI flow for HyperFrames.
|
|
|
|
Paste the markup and CSS into a composition. Use the timeline integration
|
|
note at the bottom as the starting point for deterministic GSAP animation.
|
|
-->
|
|
|
|
<div class="hf-ui-signup-flow">
|
|
<h3>Create account</h3>
|
|
<button class="hf-ui-signup-social" type="button">Continue with Google</button>
|
|
<div class="hf-ui-signup-divider"><span></span><em>or</em><span></span></div>
|
|
<div class="hf-ui-signup-field">email@company.com</div>
|
|
<div class="hf-ui-signup-field muted">Password</div>
|
|
<button class="hf-ui-signup-submit" type="button">Start building</button>
|
|
</div>
|
|
|
|
<style>
|
|
.hf-ui-signup-flow {
|
|
display: grid;
|
|
gap: 14px;
|
|
width: 430px;
|
|
padding: 30px;
|
|
border: 1px solid #e4e4e7;
|
|
border-radius: 28px;
|
|
background: #ffffff;
|
|
color: #18181b;
|
|
font-family: Inter, system-ui, sans-serif;
|
|
box-shadow: 0 28px 84px rgba(0, 0, 0, 0.12);
|
|
}
|
|
.hf-ui-signup-flow h3 {
|
|
margin: 0 0 6px;
|
|
text-align: center;
|
|
font-size: 28px;
|
|
}
|
|
.hf-ui-signup-flow button,
|
|
.hf-ui-signup-field {
|
|
height: 50px;
|
|
border-radius: 14px;
|
|
font-weight: 850;
|
|
}
|
|
.hf-ui-signup-social,
|
|
.hf-ui-signup-field {
|
|
border: 1px solid #e4e4e7;
|
|
background: #ffffff;
|
|
color: #18181b;
|
|
}
|
|
.hf-ui-signup-field {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 15px;
|
|
}
|
|
.hf-ui-signup-field.muted {
|
|
color: #a1a1aa;
|
|
}
|
|
.hf-ui-signup-divider {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto 1fr;
|
|
gap: 10px;
|
|
align-items: center;
|
|
color: #a1a1aa;
|
|
font-size: 12px;
|
|
font-weight: 900;
|
|
}
|
|
.hf-ui-signup-divider span {
|
|
height: 1px;
|
|
background: #e4e4e7;
|
|
}
|
|
.hf-ui-signup-submit {
|
|
border: 0;
|
|
background: #18181b;
|
|
color: #ffffff;
|
|
}
|
|
</style>
|
|
|
|
<!--
|
|
Timeline integration:
|
|
tl.fromTo('.hf-ui-signup-flow', { opacity: 0, y: 26 }, { opacity: 1, y: 0, duration: 0.36, ease: 'power2.out' }, 0.25);
|
|
tl.fromTo('.hf-ui-signup-flow > *', { y: 14, opacity: 0 }, { y: 0, opacity: 1, duration: 0.24, stagger: 0.05, ease: 'power2.out' }, 0.48);
|
|
tl.to('.hf-ui-signup-submit', { scale: 0.97, duration: 0.12, yoyo: true, repeat: 1, ease: 'power1.inOut' }, 1.2);
|
|
-->
|
|
```
|
|
|
|
</CatalogSlot>
|
|
|
|
<CatalogSlot slot="install">
|
|
|
|
<InstallCommand command="npx hyperframes add signup-flow" item="signup-flow" />
|
|
|
|
That writes one file: `compositions/components/signup-flow.html`.
|
|
|
|
</CatalogSlot>
|
|
|
|
</CatalogDetail>
|
|
|
|
<div data-static-slot="docs" className="prose prose-gray dark:prose-invert">
|
|
|
|
## Paste it into your composition
|
|
|
|
Open `compositions/components/signup-flow.html` and copy what is inside into your own composition.
|
|
The file opens with a comment header that walks you through it.
|
|
|
|
A component has no size or duration of its own. It takes both from the composition
|
|
you paste it into.
|
|
|
|
{/* hf:generated-footer */}
|
|
|
|
Tagged `ui-flow` `signup` `form`.
|
|
|
|
## 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>
|