A full-bleed photo behind a rating line, a headline, one line of support, two calls to action and a row of trust badges.
hero, cover, photo, rating, trust
npx shadcn@latest add https://ner.sh/r/hero-cover.json{
"registries": {
"@nertia": "https://ner.sh/r/{name}.json"
}
}npx shadcn@latest add @nertia/hero-covernpm create nersh@latest my-site -- --site https://nertia.ai/components/hero/hero-cover/site.json scaffolds a project from it.{
"slug": "hero-cover",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "hero-cover",
"sections": [
{
"id": "layout-section",
"instanceId": "hero-band-r1",
"layout": "cover",
"fullBleed": true,
"children": [
{
"id": "layout-container",
"instanceId": "hero-body-r1",
"layout": "stack",
"children": [
{
"id": "block-rating",
"instanceId": "hero-rating-r1"
},
{
"id": "block-heading",
"instanceId": "hero-heading-r1"
},
{
"id": "block-text",
"instanceId": "hero-sub-r1"
},
{
"id": "layout-container",
"instanceId": "hero-actions-r1",
"layout": "cluster",
"children": [
{
"id": "block-button",
"instanceId": "hero-cta-r1"
},
{
"id": "block-button",
"instanceId": "hero-cta-2-r1"
}
]
}
]
},
{
"id": "layout-container",
"instanceId": "hero-trust-r1",
"layout": "cluster",
"children": [
{
"id": "block-badge",
"instanceId": "hero-badge-1-r1"
},
{
"id": "block-badge",
"instanceId": "hero-badge-2-r1"
},
{
"id": "block-badge",
"instanceId": "hero-badge-3-r1"
}
]
}
],
"component": "hero-cover@1"
}
]
},
"copy": {
"hero-band-r1.coverImage": "",
"hero-band-r1.coverStyle": "",
"hero-band-r1.coverScrim": "",
"hero-band-r1.anchor": "",
"hero-band-r1.navLabel": "",
"hero-band-r1.navHref": "",
"hero-band-r1.navSkip": "",
"hero-band-r1.landmark": "",
"hero-band-r1.tone": "",
"hero-band-r1.gutter": "",
"hero-band-r1.shape": "",
"hero-band-r1.padding": "",
"hero-band-r1.sticky": "",
"hero-band-r1.reveal": "",
"hero-band-r1.dismissible": "",
"hero-band-r1.width": "",
"hero-band-r1.gradient": "",
"hero-body-r1.align": "",
"hero-body-r1.phone": "",
"hero-rating-r1.stars": "5",
"hero-rating-r1.text": "Rated five stars by customers",
"hero-rating-r1.href": "",
"hero-rating-r1.starsPosition": "",
"hero-heading-r1.text": "A headline that says what you do",
"hero-heading-r1.level": "h1",
"hero-sub-r1.text": "One sentence on who this is for and why it matters.",
"hero-sub-r1.textStyle": "",
"hero-actions-r1.align": "",
"hero-actions-r1.phone": "",
"hero-cta-r1.label": "Get started",
"hero-cta-r1.href": "#contact",
"hero-cta-r1.variant": "solid",
"hero-cta-r1.size": "",
"hero-cta-r1.tone": "",
"hero-cta-r1.width": "",
"hero-cta-r1.icon": "",
"hero-cta-r1.iconOnly": "",
"hero-cta-2-r1.label": "Learn more",
"hero-cta-2-r1.href": "#work",
"hero-cta-2-r1.variant": "outline",
"hero-cta-2-r1.size": "",
"hero-cta-2-r1.tone": "",
"hero-cta-2-r1.width": "",
"hero-cta-2-r1.icon": "",
"hero-cta-2-r1.iconOnly": "",
"hero-trust-r1.align": "",
"hero-trust-r1.phone": "",
"hero-badge-1-r1.text": "Trust point one",
"hero-badge-1-r1.href": "",
"hero-badge-1-r1.style": "",
"hero-badge-1-r1.placement": "",
"hero-badge-2-r1.text": "Trust point two",
"hero-badge-2-r1.href": "",
"hero-badge-2-r1.style": "",
"hero-badge-2-r1.placement": "",
"hero-badge-3-r1.text": "Trust point three",
"hero-badge-3-r1.href": "",
"hero-badge-3-r1.style": "",
"hero-badge-3-r1.placement": ""
}
}
{
"slug": "hero-cover",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "hero-cover",
"sections": [
{
"id": "layout-section",
"instanceId": "hero-band-r1",
"layout": "cover",
"fullBleed": true,
"children": [
{
"id": "layout-container",
"instanceId": "hero-body-r1",
"layout": "stack",
"children": [
{
"id": "block-rating",
"instanceId": "hero-rating-r1"
},
{
"id": "block-heading",
"instanceId": "hero-heading-r1"
},
{
"id": "block-text",
"instanceId": "hero-sub-r1"
},
{
"id": "layout-container",
"instanceId": "hero-actions-r1",
"layout": "cluster",
"children": [
{
"id": "block-button",
"instanceId": "hero-cta-r1"
},
{
"id": "block-button",
"instanceId": "hero-cta-2-r1"
}
]
}
]
},
{
"id": "layout-container",
"instanceId": "hero-trust-r1",
"layout": "cluster",
"children": [
{
"id": "block-badge",
"instanceId": "hero-badge-1-r1"
},
{
"id": "block-badge",
"instanceId": "hero-badge-2-r1"
},
{
"id": "block-badge",
"instanceId": "hero-badge-3-r1"
}
]
}
],
"component": "hero-cover@1"
}
]
},
"copy": {
"hero-band-r1.coverImage": "",
"hero-band-r1.coverStyle": "",
"hero-band-r1.coverScrim": "",
"hero-band-r1.anchor": "",
"hero-band-r1.navLabel": "",
"hero-band-r1.navHref": "",
"hero-band-r1.navSkip": "",
"hero-band-r1.landmark": "",
"hero-band-r1.tone": "",
"hero-band-r1.gutter": "",
"hero-band-r1.shape": "",
"hero-band-r1.padding": "",
"hero-band-r1.sticky": "",
"hero-band-r1.reveal": "",
"hero-band-r1.dismissible": "",
"hero-band-r1.width": "",
"hero-band-r1.gradient": "",
"hero-body-r1.align": "",
"hero-body-r1.phone": "",
"hero-rating-r1.stars": "5",
"hero-rating-r1.text": "Rated five stars by customers",
"hero-rating-r1.href": "",
"hero-rating-r1.starsPosition": "",
"hero-heading-r1.text": "A headline that says what you do",
"hero-heading-r1.level": "h1",
"hero-sub-r1.text": "One sentence on who this is for and why it matters.",
"hero-sub-r1.textStyle": "",
"hero-actions-r1.align": "",
"hero-actions-r1.phone": "",
"hero-cta-r1.label": "Get started",
"hero-cta-r1.href": "#contact",
"hero-cta-r1.variant": "solid",
"hero-cta-r1.size": "",
"hero-cta-r1.tone": "",
"hero-cta-r1.width": "",
"hero-cta-r1.icon": "",
"hero-cta-r1.iconOnly": "",
"hero-cta-2-r1.label": "Learn more",
"hero-cta-2-r1.href": "#work",
"hero-cta-2-r1.variant": "outline",
"hero-cta-2-r1.size": "",
"hero-cta-2-r1.tone": "",
"hero-cta-2-r1.width": "",
"hero-cta-2-r1.icon": "",
"hero-cta-2-r1.iconOnly": "",
"hero-trust-r1.align": "",
"hero-trust-r1.phone": "",
"hero-badge-1-r1.text": "Trust point one",
"hero-badge-1-r1.href": "",
"hero-badge-1-r1.style": "",
"hero-badge-1-r1.placement": "",
"hero-badge-2-r1.text": "Trust point two",
"hero-badge-2-r1.href": "",
"hero-badge-2-r1.style": "",
"hero-badge-2-r1.placement": "",
"hero-badge-3-r1.text": "Trust point three",
"hero-badge-3-r1.href": "",
"hero-badge-3-r1.style": "",
"hero-badge-3-r1.placement": ""
},
"ds": {}
}
import type { SectionRegistry } from '@nersh/render';
import { Component as BlockBadge } from '@/sections/block-badge/Component';
import { Component as BlockButton } from '@/sections/block-button/Component';
import { Component as BlockHeading } from '@/sections/block-heading/Component';
import { Component as BlockRating } from '@/sections/block-rating/Component';
import { Component as BlockText } from '@/sections/block-text/Component';
import { Component as LayoutContainer } from '@/sections/layout-container/Component';
import { Component as LayoutSection } from '@/sections/layout-section/Component';
export const registry: SectionRegistry = {
'block-badge': BlockBadge,
'block-button': BlockButton,
'block-heading': BlockHeading,
'block-rating': BlockRating,
'block-text': BlockText,
'layout-container': LayoutContainer,
'layout-section': LayoutSection,
};
"use client";
import { SiteRenderer } from "@nersh/render";
import { registry } from "./hero-cover.registry";
import siteJson from "./hero-cover.site.json";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const site = siteJson as any;
export default function HeroCover() {
return <SiteRenderer site={site} registry={registry} />;
}