A heading over full-width ruled rows, each a number, a title and one meta column, with a photo that shows on hover or focus.
work, index, rows, list, portfolio
npx shadcn@latest add https://ner.sh/r/work-index-rows.json{
"registries": {
"@nertia": "https://ner.sh/r/{name}.json"
}
}npx shadcn@latest add @nertia/work-index-rowsnpm create nersh@latest my-site -- --site https://nertia.ai/components/gallery/work-index-rows/site.json scaffolds a project from it.{
"slug": "work-index-rows",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "work-index-rows",
"sections": [
{
"id": "layout-section",
"instanceId": "ix-band-r1",
"layout": "stack",
"children": [
{
"id": "layout-container",
"instanceId": "ix-head-r1",
"layout": "stack",
"children": [
{
"id": "block-heading",
"instanceId": "ix-heading-r1"
}
]
},
{
"id": "layout-container",
"instanceId": "ix-rows-r1",
"layout": "stack",
"gap": "flush",
"children": [
{
"id": "block-index-row",
"instanceId": "ix-row-1-r1"
},
{
"id": "block-index-row",
"instanceId": "ix-row-2-r1"
},
{
"id": "block-index-row",
"instanceId": "ix-row-3-r1"
},
{
"id": "block-index-row",
"instanceId": "ix-row-4-r1"
}
]
}
],
"component": "work-index-rows@1"
}
]
},
"copy": {
"ix-band-r1.coverImage": "",
"ix-band-r1.coverStyle": "",
"ix-band-r1.coverScrim": "",
"ix-band-r1.anchor": "",
"ix-band-r1.navLabel": "",
"ix-band-r1.navHref": "",
"ix-band-r1.navSkip": "",
"ix-band-r1.landmark": "",
"ix-band-r1.tone": "",
"ix-band-r1.gutter": "",
"ix-band-r1.shape": "",
"ix-band-r1.padding": "",
"ix-band-r1.sticky": "",
"ix-band-r1.reveal": "",
"ix-band-r1.dismissible": "",
"ix-band-r1.width": "",
"ix-band-r1.gradient": "",
"ix-head-r1.align": "",
"ix-head-r1.phone": "",
"ix-head-r1.dividers": "",
"ix-head-r1.tone": "",
"ix-heading-r1.text": "A heading for this section",
"ix-heading-r1.level": "h2",
"ix-heading-r1.size": "",
"ix-rows-r1.align": "",
"ix-rows-r1.phone": "",
"ix-rows-r1.dividers": "",
"ix-rows-r1.tone": "",
"ix-row-1-r1.number": "01",
"ix-row-1-r1.title": "Project one",
"ix-row-1-r1.meta": "Category",
"ix-row-1-r1.image": "",
"ix-row-1-r1.thumb": "",
"ix-row-1-r1.href": "#",
"ix-row-2-r1.number": "02",
"ix-row-2-r1.title": "Project two",
"ix-row-2-r1.meta": "Category",
"ix-row-2-r1.image": "",
"ix-row-2-r1.thumb": "",
"ix-row-2-r1.href": "#",
"ix-row-3-r1.number": "03",
"ix-row-3-r1.title": "Project three",
"ix-row-3-r1.meta": "Category",
"ix-row-3-r1.image": "",
"ix-row-3-r1.thumb": "",
"ix-row-3-r1.href": "#",
"ix-row-4-r1.number": "04",
"ix-row-4-r1.title": "Project four",
"ix-row-4-r1.meta": "Category",
"ix-row-4-r1.image": "",
"ix-row-4-r1.thumb": "",
"ix-row-4-r1.href": "#"
}
}
{
"slug": "work-index-rows",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "work-index-rows",
"sections": [
{
"id": "layout-section",
"instanceId": "ix-band-r1",
"layout": "stack",
"children": [
{
"id": "layout-container",
"instanceId": "ix-head-r1",
"layout": "stack",
"children": [
{
"id": "block-heading",
"instanceId": "ix-heading-r1"
}
]
},
{
"id": "layout-container",
"instanceId": "ix-rows-r1",
"layout": "stack",
"gap": "flush",
"children": [
{
"id": "block-index-row",
"instanceId": "ix-row-1-r1"
},
{
"id": "block-index-row",
"instanceId": "ix-row-2-r1"
},
{
"id": "block-index-row",
"instanceId": "ix-row-3-r1"
},
{
"id": "block-index-row",
"instanceId": "ix-row-4-r1"
}
]
}
],
"component": "work-index-rows@1"
}
]
},
"copy": {
"ix-band-r1.coverImage": "",
"ix-band-r1.coverStyle": "",
"ix-band-r1.coverScrim": "",
"ix-band-r1.anchor": "",
"ix-band-r1.navLabel": "",
"ix-band-r1.navHref": "",
"ix-band-r1.navSkip": "",
"ix-band-r1.landmark": "",
"ix-band-r1.tone": "",
"ix-band-r1.gutter": "",
"ix-band-r1.shape": "",
"ix-band-r1.padding": "",
"ix-band-r1.sticky": "",
"ix-band-r1.reveal": "",
"ix-band-r1.dismissible": "",
"ix-band-r1.width": "",
"ix-band-r1.gradient": "",
"ix-head-r1.align": "",
"ix-head-r1.phone": "",
"ix-head-r1.dividers": "",
"ix-head-r1.tone": "",
"ix-heading-r1.text": "A heading for this section",
"ix-heading-r1.level": "h2",
"ix-heading-r1.size": "",
"ix-rows-r1.align": "",
"ix-rows-r1.phone": "",
"ix-rows-r1.dividers": "",
"ix-rows-r1.tone": "",
"ix-row-1-r1.number": "01",
"ix-row-1-r1.title": "Project one",
"ix-row-1-r1.meta": "Category",
"ix-row-1-r1.image": "",
"ix-row-1-r1.thumb": "",
"ix-row-1-r1.href": "#",
"ix-row-2-r1.number": "02",
"ix-row-2-r1.title": "Project two",
"ix-row-2-r1.meta": "Category",
"ix-row-2-r1.image": "",
"ix-row-2-r1.thumb": "",
"ix-row-2-r1.href": "#",
"ix-row-3-r1.number": "03",
"ix-row-3-r1.title": "Project three",
"ix-row-3-r1.meta": "Category",
"ix-row-3-r1.image": "",
"ix-row-3-r1.thumb": "",
"ix-row-3-r1.href": "#",
"ix-row-4-r1.number": "04",
"ix-row-4-r1.title": "Project four",
"ix-row-4-r1.meta": "Category",
"ix-row-4-r1.image": "",
"ix-row-4-r1.thumb": "",
"ix-row-4-r1.href": "#"
},
"ds": {}
}
import type { SectionRegistry } from '@nersh/render';
import { Component as BlockHeading } from '@/sections/block-heading/Component';
import { Component as BlockIndexRow } from '@/sections/block-index-row/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,
'block-index-row': BlockIndexRow,
'layout-container': LayoutContainer,
'layout-section': LayoutSection,
};
"use client";
import { SiteRenderer } from "@nersh/render";
import { registry } from "./work-index-rows.registry";
import siteJson from "./work-index-rows.site.json";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const site = siteJson as any;
export default function WorkIndexRows() {
return <SiteRenderer site={site} registry={registry} />;
}
The registry source and the @nersh/render renderer are MIT licensed.