One full-bleed photo carrying a single line of type, centred, with nothing else on it.
hero, cover, photo, band, type
npx shadcn@latest add https://ner.sh/r/band-photo-line.json{
"registries": {
"@nertia": "https://ner.sh/r/{name}.json"
}
}npx shadcn@latest add @nertia/band-photo-linenpm create nersh@latest my-site -- --site https://nertia.ai/components/hero/band-photo-line/site.json scaffolds a project from it.{
"slug": "band-photo-line",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "band-photo-line",
"sections": [
{
"id": "layout-section",
"instanceId": "photo-band-r1",
"layout": "cover",
"fullBleed": true,
"children": [
{
"id": "layout-container",
"instanceId": "photo-band-body-r1",
"layout": "stack",
"children": [
{
"id": "block-heading",
"instanceId": "photo-band-line-r1"
}
]
}
],
"component": "band-photo-line@1"
}
]
},
"copy": {
"photo-band-r1.coverImage": "",
"photo-band-r1.coverStyle": "plain",
"photo-band-r1.coverScrim": "",
"photo-band-r1.anchor": "",
"photo-band-r1.navLabel": "",
"photo-band-r1.navHref": "",
"photo-band-r1.navSkip": "",
"photo-band-r1.landmark": "",
"photo-band-r1.tone": "",
"photo-band-r1.gutter": "",
"photo-band-r1.shape": "",
"photo-band-r1.padding": "",
"photo-band-r1.sticky": "",
"photo-band-r1.reveal": "",
"photo-band-r1.dismissible": "",
"photo-band-r1.width": "",
"photo-band-r1.gradient": "",
"photo-band-body-r1.align": "",
"photo-band-body-r1.phone": "",
"photo-band-body-r1.dividers": "",
"photo-band-body-r1.tone": "",
"photo-band-line-r1.text": "A headline that says what you do",
"photo-band-line-r1.level": "h1",
"photo-band-line-r1.size": "display"
}
}
{
"slug": "band-photo-line",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "band-photo-line",
"sections": [
{
"id": "layout-section",
"instanceId": "photo-band-r1",
"layout": "cover",
"fullBleed": true,
"children": [
{
"id": "layout-container",
"instanceId": "photo-band-body-r1",
"layout": "stack",
"children": [
{
"id": "block-heading",
"instanceId": "photo-band-line-r1"
}
]
}
],
"component": "band-photo-line@1"
}
]
},
"copy": {
"photo-band-r1.coverImage": "",
"photo-band-r1.coverStyle": "plain",
"photo-band-r1.coverScrim": "",
"photo-band-r1.anchor": "",
"photo-band-r1.navLabel": "",
"photo-band-r1.navHref": "",
"photo-band-r1.navSkip": "",
"photo-band-r1.landmark": "",
"photo-band-r1.tone": "",
"photo-band-r1.gutter": "",
"photo-band-r1.shape": "",
"photo-band-r1.padding": "",
"photo-band-r1.sticky": "",
"photo-band-r1.reveal": "",
"photo-band-r1.dismissible": "",
"photo-band-r1.width": "",
"photo-band-r1.gradient": "",
"photo-band-body-r1.align": "",
"photo-band-body-r1.phone": "",
"photo-band-body-r1.dividers": "",
"photo-band-body-r1.tone": "",
"photo-band-line-r1.text": "A headline that says what you do",
"photo-band-line-r1.level": "h1",
"photo-band-line-r1.size": "display"
},
"ds": {}
}
import type { SectionRegistry } from '@nersh/render';
import { Component as BlockHeading } from '@/sections/block-heading/Component';
import { Component as LayoutContainer } from '@/sections/layout-container/Component';
import { Component as LayoutSection } from '@/sections/layout-section/Component';
export const registry: SectionRegistry = {
'block-heading': BlockHeading,
'layout-container': LayoutContainer,
'layout-section': LayoutSection,
};
"use client";
import { SiteRenderer } from "@nersh/render";
import { registry } from "./band-photo-line.registry";
import siteJson from "./band-photo-line.site.json";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const site = siteJson as any;
export default function BandPhotoLine() {
return <SiteRenderer site={site} registry={registry} />;
}
The registry source and the @nersh/render renderer are MIT licensed.