The wordmark on one side, a row of social links on the other.
footer, social, split, links
npx shadcn@latest add https://ner.sh/r/footer-social.json{
"registries": {
"@nertia": "https://ner.sh/r/{name}.json"
}
}npx shadcn@latest add @nertia/footer-socialnpm create nersh@latest my-site -- --site https://nertia.ai/components/footer/footer-social/site.json scaffolds a project from it.{
"slug": "footer-social",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "footer-social",
"sections": [
{
"id": "layout-section",
"instanceId": "footer-band-r1",
"fullBleed": true,
"children": [
{
"id": "layout-container",
"instanceId": "footer-row-r1",
"layout": "split",
"children": [
{
"id": "layout-column",
"instanceId": "footer-brand-col-r1",
"span": 6,
"children": [
{
"id": "block-brand",
"instanceId": "footer-brand-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "footer-social-col-r1",
"span": 6,
"children": [
{
"id": "block-link-group",
"instanceId": "footer-social-links-r1"
}
]
}
]
}
],
"component": "footer-social@1"
}
]
},
"copy": {
"footer-band-r1.coverImage": "",
"footer-band-r1.coverStyle": "",
"footer-band-r1.coverScrim": "",
"footer-band-r1.anchor": "",
"footer-band-r1.navLabel": "",
"footer-band-r1.navHref": "",
"footer-band-r1.navSkip": "true",
"footer-band-r1.landmark": "footer",
"footer-band-r1.tone": "muted",
"footer-band-r1.gutter": "",
"footer-band-r1.shape": "",
"footer-band-r1.padding": "",
"footer-band-r1.sticky": "",
"footer-band-r1.reveal": "",
"footer-band-r1.dismissible": "",
"footer-band-r1.width": "",
"footer-band-r1.gradient": "",
"footer-row-r1.align": "",
"footer-row-r1.phone": "",
"footer-brand-col-r1.pad": "",
"footer-brand-col-r1.sticky": "",
"footer-brand-r1.wordmark": "Your Company",
"footer-brand-r1.wordmarkAccent": "",
"footer-brand-r1.logoImage": "",
"footer-brand-r1.tagline": "A one-line description of what you do.",
"footer-brand-r1.href": "#",
"footer-social-col-r1.pad": "",
"footer-social-col-r1.sticky": "",
"footer-social-links-r1.title": "Follow along",
"footer-social-links-r1.links": "[{\"label\":\"Social link one\",\"href\":\"#\"},{\"label\":\"Social link two\",\"href\":\"#\"},{\"label\":\"Social link three\",\"href\":\"#\"}]",
"footer-social-links-r1.direction": "row",
"footer-social-links-r1.icons": "social"
}
}
{
"slug": "footer-social",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "footer-social",
"sections": [
{
"id": "layout-section",
"instanceId": "footer-band-r1",
"fullBleed": true,
"children": [
{
"id": "layout-container",
"instanceId": "footer-row-r1",
"layout": "split",
"children": [
{
"id": "layout-column",
"instanceId": "footer-brand-col-r1",
"span": 6,
"children": [
{
"id": "block-brand",
"instanceId": "footer-brand-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "footer-social-col-r1",
"span": 6,
"children": [
{
"id": "block-link-group",
"instanceId": "footer-social-links-r1"
}
]
}
]
}
],
"component": "footer-social@1"
}
]
},
"copy": {
"footer-band-r1.coverImage": "",
"footer-band-r1.coverStyle": "",
"footer-band-r1.coverScrim": "",
"footer-band-r1.anchor": "",
"footer-band-r1.navLabel": "",
"footer-band-r1.navHref": "",
"footer-band-r1.navSkip": "true",
"footer-band-r1.landmark": "footer",
"footer-band-r1.tone": "muted",
"footer-band-r1.gutter": "",
"footer-band-r1.shape": "",
"footer-band-r1.padding": "",
"footer-band-r1.sticky": "",
"footer-band-r1.reveal": "",
"footer-band-r1.dismissible": "",
"footer-band-r1.width": "",
"footer-band-r1.gradient": "",
"footer-row-r1.align": "",
"footer-row-r1.phone": "",
"footer-brand-col-r1.pad": "",
"footer-brand-col-r1.sticky": "",
"footer-brand-r1.wordmark": "Your Company",
"footer-brand-r1.wordmarkAccent": "",
"footer-brand-r1.logoImage": "",
"footer-brand-r1.tagline": "A one-line description of what you do.",
"footer-brand-r1.href": "#",
"footer-social-col-r1.pad": "",
"footer-social-col-r1.sticky": "",
"footer-social-links-r1.title": "Follow along",
"footer-social-links-r1.links": "[{\"label\":\"Social link one\",\"href\":\"#\"},{\"label\":\"Social link two\",\"href\":\"#\"},{\"label\":\"Social link three\",\"href\":\"#\"}]",
"footer-social-links-r1.direction": "row",
"footer-social-links-r1.icons": "social"
},
"ds": {}
}
import type { SectionRegistry } from '@nersh/render';
import { Component as BlockBrand } from '@/sections/block-brand/Component';
import { Component as BlockLinkGroup } from '@/sections/block-link-group/Component';
import { Component as LayoutColumn } from '@/sections/layout-column/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-link-group': BlockLinkGroup,
'layout-column': LayoutColumn,
'layout-container': LayoutContainer,
'layout-section': LayoutSection,
};
"use client";
import { SiteRenderer } from "@nersh/render";
import { registry } from "./footer-social.registry";
import siteJson from "./footer-social.site.json";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const site = siteJson as any;
export default function FooterSocial() {
return <SiteRenderer site={site} registry={registry} />;
}