The wordmark centred over a single row of page links, pinned to the top of the page.
header, navbar, brand, centered, sticky
npx shadcn@latest add https://ner.sh/r/header-centered.json{
"registries": {
"@nertia": "https://ner.sh/r/{name}.json"
}
}npx shadcn@latest add @nertia/header-centerednpm create nersh@latest my-site -- --site https://nertia.ai/components/headers/header-centered/site.json scaffolds a project from it.{
"slug": "header-centered",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "header-centered",
"sections": [
{
"id": "layout-section",
"instanceId": "header-band-r1",
"layout": "centered",
"children": [
{
"id": "layout-container",
"instanceId": "header-stack-r1",
"layout": "stack",
"children": [
{
"id": "block-brand",
"instanceId": "header-brand-r1"
},
{
"id": "block-nav",
"instanceId": "header-nav-r1"
}
]
}
],
"component": "header-centered@1"
}
]
},
"copy": {
"header-band-r1.coverImage": "",
"header-band-r1.coverStyle": "",
"header-band-r1.coverScrim": "",
"header-band-r1.anchor": "",
"header-band-r1.navLabel": "",
"header-band-r1.navHref": "",
"header-band-r1.navSkip": "true",
"header-band-r1.landmark": "header",
"header-band-r1.tone": "default",
"header-band-r1.gutter": "",
"header-band-r1.shape": "",
"header-band-r1.padding": "compact",
"header-band-r1.sticky": "true",
"header-band-r1.reveal": "",
"header-band-r1.dismissible": "",
"header-band-r1.width": "",
"header-band-r1.gradient": "",
"header-stack-r1.align": "",
"header-stack-r1.phone": "",
"header-brand-r1.wordmark": "Your Company",
"header-brand-r1.wordmarkAccent": "",
"header-brand-r1.logoImage": "",
"header-brand-r1.tagline": "",
"header-brand-r1.href": "#",
"header-nav-r1.links": "[{\"label\":\"Home\",\"href\":\"#\"},{\"label\":\"About\",\"href\":\"#about\"},{\"label\":\"Services\",\"href\":\"#services\"},{\"label\":\"Contact\",\"href\":\"#contact\"}]",
"header-nav-r1.ctaLabel": "",
"header-nav-r1.ctaHref": "#contact",
"header-nav-r1.ctaTone": "",
"header-nav-r1.ctaIcon": "",
"header-nav-r1.phoneMenu": "",
"header-nav-r1.align": ""
}
}
{
"slug": "header-centered",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "header-centered",
"sections": [
{
"id": "layout-section",
"instanceId": "header-band-r1",
"layout": "centered",
"children": [
{
"id": "layout-container",
"instanceId": "header-stack-r1",
"layout": "stack",
"children": [
{
"id": "block-brand",
"instanceId": "header-brand-r1"
},
{
"id": "block-nav",
"instanceId": "header-nav-r1"
}
]
}
],
"component": "header-centered@1"
}
]
},
"copy": {
"header-band-r1.coverImage": "",
"header-band-r1.coverStyle": "",
"header-band-r1.coverScrim": "",
"header-band-r1.anchor": "",
"header-band-r1.navLabel": "",
"header-band-r1.navHref": "",
"header-band-r1.navSkip": "true",
"header-band-r1.landmark": "header",
"header-band-r1.tone": "default",
"header-band-r1.gutter": "",
"header-band-r1.shape": "",
"header-band-r1.padding": "compact",
"header-band-r1.sticky": "true",
"header-band-r1.reveal": "",
"header-band-r1.dismissible": "",
"header-band-r1.width": "",
"header-band-r1.gradient": "",
"header-stack-r1.align": "",
"header-stack-r1.phone": "",
"header-brand-r1.wordmark": "Your Company",
"header-brand-r1.wordmarkAccent": "",
"header-brand-r1.logoImage": "",
"header-brand-r1.tagline": "",
"header-brand-r1.href": "#",
"header-nav-r1.links": "[{\"label\":\"Home\",\"href\":\"#\"},{\"label\":\"About\",\"href\":\"#about\"},{\"label\":\"Services\",\"href\":\"#services\"},{\"label\":\"Contact\",\"href\":\"#contact\"}]",
"header-nav-r1.ctaLabel": "",
"header-nav-r1.ctaHref": "#contact",
"header-nav-r1.ctaTone": "",
"header-nav-r1.ctaIcon": "",
"header-nav-r1.phoneMenu": "",
"header-nav-r1.align": ""
},
"ds": {}
}
import type { SectionRegistry } from '@nersh/render';
import { Component as BlockBrand } from '@/sections/block-brand/Component';
import { Component as BlockNav } from '@/sections/block-nav/Component';
import { Component as LayoutContainer } from '@/sections/layout-container/Component';
import { Component as LayoutSection } from '@/sections/layout-section/Component';
export const registry: SectionRegistry = {
'block-brand': BlockBrand,
'block-nav': BlockNav,
'layout-container': LayoutContainer,
'layout-section': LayoutSection,
};
"use client";
import { SiteRenderer } from "@nersh/render";
import { registry } from "./header-centered.registry";
import siteJson from "./header-centered.site.json";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const site = siteJson as any;
export default function HeaderCentered() {
return <SiteRenderer site={site} registry={registry} />;
}