A muted band with a centered heading, one line of support and a short email form below.
newsletter, email, signup, form, centered
npx shadcn@latest add https://ner.sh/r/newsletter-centered.json{
"registries": {
"@nertia": "https://ner.sh/r/{name}.json"
}
}npx shadcn@latest add @nertia/newsletter-centerednpm create nersh@latest my-site -- --site https://nertia.ai/components/newsletter/newsletter-centered/site.json scaffolds a project from it.{
"slug": "newsletter-centered",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "newsletter-centered",
"sections": [
{
"id": "layout-section",
"instanceId": "newsc-band-r1",
"layout": "centered",
"children": [
{
"id": "layout-container",
"instanceId": "newsc-intro-r1",
"layout": "stack",
"children": [
{
"id": "block-heading",
"instanceId": "newsc-heading-r1"
},
{
"id": "block-text",
"instanceId": "newsc-sub-r1"
}
]
},
{
"id": "layout-container",
"instanceId": "newsc-form-row-r1",
"layout": "stack",
"children": [
{
"id": "block-form",
"instanceId": "newsc-form-r1",
"children": [
{
"id": "block-input",
"instanceId": "newsc-email-r1"
}
]
}
]
}
],
"component": "newsletter-centered@1"
}
]
},
"copy": {
"newsc-band-r1.coverImage": "",
"newsc-band-r1.coverStyle": "",
"newsc-band-r1.coverScrim": "",
"newsc-band-r1.anchor": "newsletter",
"newsc-band-r1.navLabel": "",
"newsc-band-r1.navHref": "",
"newsc-band-r1.navSkip": "",
"newsc-band-r1.landmark": "",
"newsc-band-r1.tone": "muted",
"newsc-band-r1.gutter": "",
"newsc-band-r1.shape": "",
"newsc-band-r1.padding": "",
"newsc-band-r1.sticky": "",
"newsc-band-r1.reveal": "",
"newsc-band-r1.dismissible": "",
"newsc-band-r1.width": "",
"newsc-band-r1.gradient": "",
"newsc-intro-r1.align": "center",
"newsc-intro-r1.phone": "",
"newsc-heading-r1.text": "Get the latest news",
"newsc-heading-r1.level": "h2",
"newsc-sub-r1.text": "One sentence on what people get and how often.",
"newsc-sub-r1.textStyle": "",
"newsc-form-row-r1.align": "",
"newsc-form-row-r1.phone": "",
"newsc-form-r1.submitLabel": "Sign up",
"newsc-form-r1.email": "",
"newsc-form-r1.successMessage": "Thanks. You are on the list.",
"newsc-email-r1.label": "Email",
"newsc-email-r1.name": "email",
"newsc-email-r1.inputType": "email",
"newsc-email-r1.placeholder": "you@example.com",
"newsc-email-r1.required": "true"
}
}
{
"slug": "newsletter-centered",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "newsletter-centered",
"sections": [
{
"id": "layout-section",
"instanceId": "newsc-band-r1",
"layout": "centered",
"children": [
{
"id": "layout-container",
"instanceId": "newsc-intro-r1",
"layout": "stack",
"children": [
{
"id": "block-heading",
"instanceId": "newsc-heading-r1"
},
{
"id": "block-text",
"instanceId": "newsc-sub-r1"
}
]
},
{
"id": "layout-container",
"instanceId": "newsc-form-row-r1",
"layout": "stack",
"children": [
{
"id": "block-form",
"instanceId": "newsc-form-r1",
"children": [
{
"id": "block-input",
"instanceId": "newsc-email-r1"
}
]
}
]
}
],
"component": "newsletter-centered@1"
}
]
},
"copy": {
"newsc-band-r1.coverImage": "",
"newsc-band-r1.coverStyle": "",
"newsc-band-r1.coverScrim": "",
"newsc-band-r1.anchor": "newsletter",
"newsc-band-r1.navLabel": "",
"newsc-band-r1.navHref": "",
"newsc-band-r1.navSkip": "",
"newsc-band-r1.landmark": "",
"newsc-band-r1.tone": "muted",
"newsc-band-r1.gutter": "",
"newsc-band-r1.shape": "",
"newsc-band-r1.padding": "",
"newsc-band-r1.sticky": "",
"newsc-band-r1.reveal": "",
"newsc-band-r1.dismissible": "",
"newsc-band-r1.width": "",
"newsc-band-r1.gradient": "",
"newsc-intro-r1.align": "center",
"newsc-intro-r1.phone": "",
"newsc-heading-r1.text": "Get the latest news",
"newsc-heading-r1.level": "h2",
"newsc-sub-r1.text": "One sentence on what people get and how often.",
"newsc-sub-r1.textStyle": "",
"newsc-form-row-r1.align": "",
"newsc-form-row-r1.phone": "",
"newsc-form-r1.submitLabel": "Sign up",
"newsc-form-r1.email": "",
"newsc-form-r1.successMessage": "Thanks. You are on the list.",
"newsc-email-r1.label": "Email",
"newsc-email-r1.name": "email",
"newsc-email-r1.inputType": "email",
"newsc-email-r1.placeholder": "you@example.com",
"newsc-email-r1.required": "true"
},
"ds": {}
}
import type { SectionRegistry } from '@nersh/render';
import { Component as BlockForm } from '@/sections/block-form/Component';
import { Component as BlockHeading } from '@/sections/block-heading/Component';
import { Component as BlockInput } from '@/sections/block-input/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-form': BlockForm,
'block-heading': BlockHeading,
'block-input': BlockInput,
'block-text': BlockText,
'layout-container': LayoutContainer,
'layout-section': LayoutSection,
};
"use client";
import { SiteRenderer } from "@nersh/render";
import { registry } from "./newsletter-centered.registry";
import siteJson from "./newsletter-centered.site.json";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const site = siteJson as any;
export default function NewsletterCentered() {
return <SiteRenderer site={site} registry={registry} />;
}