A pinned rail with a photo, a name and contact links beside a column of summary, experience, skills and education.
profile, resume, rail, sticky
npx shadcn@latest add https://ner.sh/r/profile-rail.json{
"registries": {
"@nertia": "https://ner.sh/r/{name}.json"
}
}npx shadcn@latest add @nertia/profile-railnpm create nersh@latest my-site -- --site https://nertia.ai/components/profile/profile-rail/site.json scaffolds a project from it.{
"slug": "profile-rail",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "profile-rail",
"sections": [
{
"id": "layout-section",
"instanceId": "profile-band-r1",
"layout": "stack",
"children": [
{
"id": "layout-container",
"instanceId": "profile-row-r1",
"layout": "rail",
"children": [
{
"id": "layout-column",
"instanceId": "profile-rail-r1",
"children": [
{
"id": "block-media",
"instanceId": "profile-avatar-r1"
},
{
"id": "block-heading",
"instanceId": "profile-name-r1"
},
{
"id": "block-text",
"instanceId": "profile-title-r1"
},
{
"id": "block-text",
"instanceId": "profile-location-r1"
},
{
"id": "block-link-group",
"instanceId": "profile-links-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "profile-main-r1",
"children": [
{
"id": "block-card",
"instanceId": "profile-summary-r1"
},
{
"id": "block-heading",
"instanceId": "experience-heading-r1"
},
{
"id": "block-card",
"instanceId": "experience-1-r1",
"children": [
{
"id": "block-heading",
"instanceId": "experience-1-role-r1"
},
{
"id": "block-text",
"instanceId": "experience-1-meta-r1"
},
{
"id": "block-text",
"instanceId": "experience-1-body-r1"
}
]
},
{
"id": "block-card",
"instanceId": "experience-2-r1",
"children": [
{
"id": "block-heading",
"instanceId": "experience-2-role-r1"
},
{
"id": "block-text",
"instanceId": "experience-2-meta-r1"
},
{
"id": "block-text",
"instanceId": "experience-2-body-r1"
}
]
},
{
"id": "block-card",
"instanceId": "experience-3-r1",
"children": [
{
"id": "block-heading",
"instanceId": "experience-3-role-r1"
},
{
"id": "block-text",
"instanceId": "experience-3-meta-r1"
},
{
"id": "block-text",
"instanceId": "experience-3-body-r1"
}
]
},
{
"id": "block-heading",
"instanceId": "skills-heading-r1"
},
{
"id": "block-list",
"instanceId": "skills-list-r1"
},
{
"id": "block-heading",
"instanceId": "education-heading-r1"
},
{
"id": "block-card",
"instanceId": "education-1-r1"
},
{
"id": "block-heading",
"instanceId": "contact-heading-r1"
},
{
"id": "block-card",
"instanceId": "contact-card-r1",
"children": [
{
"id": "block-link-group",
"instanceId": "contact-links-r1"
}
]
}
]
}
]
}
],
"component": "profile-rail@1"
}
]
},
"copy": {
"profile-band-r1.coverImage": "",
"profile-band-r1.coverStyle": "",
"profile-band-r1.coverScrim": "",
"profile-band-r1.anchor": "",
"profile-band-r1.navLabel": "",
"profile-band-r1.navHref": "",
"profile-band-r1.navSkip": "",
"profile-band-r1.landmark": "",
"profile-band-r1.tone": "",
"profile-band-r1.gutter": "",
"profile-band-r1.shape": "",
"profile-band-r1.padding": "",
"profile-band-r1.sticky": "",
"profile-band-r1.reveal": "",
"profile-band-r1.dismissible": "",
"profile-band-r1.width": "",
"profile-band-r1.gradient": "",
"profile-row-r1.align": "",
"profile-row-r1.phone": "",
"profile-rail-r1.pad": "",
"profile-rail-r1.sticky": "top",
"profile-avatar-r1.image": "",
"profile-avatar-r1.alt": "Placeholder image",
"profile-avatar-r1.caption": "",
"profile-avatar-r1.frame": "avatar",
"profile-avatar-r1.initials": "",
"profile-avatar-r1.href": "",
"profile-avatar-r1.lightbox": "",
"profile-avatar-r1.badge": "",
"profile-name-r1.text": "Your name",
"profile-name-r1.level": "h2",
"profile-title-r1.text": "Your title",
"profile-title-r1.textStyle": "",
"profile-location-r1.text": "City, ST",
"profile-location-r1.textStyle": "note",
"profile-links-r1.title": "",
"profile-links-r1.links": "[{\"label\":\"Email\",\"href\":\"mailto:hello@yourcompany.com\"},{\"label\":\"LinkedIn\",\"href\":\"#\"},{\"label\":\"Résumé\",\"href\":\"#\"}]",
"profile-links-r1.direction": "",
"profile-links-r1.icons": "",
"profile-main-r1.pad": "",
"profile-main-r1.sticky": "",
"profile-summary-r1.title": "Summary",
"profile-summary-r1.body": "Two or three sentences about who you are and how you work.",
"profile-summary-r1.href": "",
"profile-summary-r1.emphasis": "",
"profile-summary-r1.density": "",
"profile-summary-r1.align": "",
"profile-summary-r1.icon": "",
"experience-heading-r1.text": "Experience",
"experience-heading-r1.level": "h2",
"experience-1-r1.title": "",
"experience-1-r1.body": "",
"experience-1-r1.href": "",
"experience-1-r1.emphasis": "",
"experience-1-r1.density": "",
"experience-1-r1.align": "",
"experience-1-r1.icon": "",
"experience-1-role-r1.text": "Role one",
"experience-1-role-r1.level": "h3",
"experience-1-meta-r1.text": "Company one, a year to a year",
"experience-1-meta-r1.textStyle": "note",
"experience-1-body-r1.text": "A sentence about this role.",
"experience-1-body-r1.textStyle": "",
"experience-2-r1.title": "",
"experience-2-r1.body": "",
"experience-2-r1.href": "",
"experience-2-r1.emphasis": "",
"experience-2-r1.density": "",
"experience-2-r1.align": "",
"experience-2-r1.icon": "",
"experience-2-role-r1.text": "Role two",
"experience-2-role-r1.level": "h3",
"experience-2-meta-r1.text": "Company two, a year to a year",
"experience-2-meta-r1.textStyle": "note",
"experience-2-body-r1.text": "A sentence about this role.",
"experience-2-body-r1.textStyle": "",
"experience-3-r1.title": "",
"experience-3-r1.body": "",
"experience-3-r1.href": "",
"experience-3-r1.emphasis": "",
"experience-3-r1.density": "",
"experience-3-r1.align": "",
"experience-3-r1.icon": "",
"experience-3-role-r1.text": "Role three",
"experience-3-role-r1.level": "h3",
"experience-3-meta-r1.text": "Company three, a year to a year",
"experience-3-meta-r1.textStyle": "note",
"experience-3-body-r1.text": "A sentence about this role.",
"experience-3-body-r1.textStyle": "",
"skills-heading-r1.text": "Skills",
"skills-heading-r1.level": "h2",
"skills-list-r1.items": "Skill one\nSkill two\nSkill three\nSkill four\nSkill five\nSkill six",
"skills-list-r1.marker": "dot",
"skills-list-r1.size": "",
"skills-list-r1.markerImage": "",
"education-heading-r1.text": "Education",
"education-heading-r1.level": "h2",
"education-1-r1.title": "Course one",
"education-1-r1.body": "School one, a year to a year",
"education-1-r1.href": "",
"education-1-r1.emphasis": "",
"education-1-r1.density": "",
"education-1-r1.align": "",
"education-1-r1.icon": "",
"contact-heading-r1.text": "Contact",
"contact-heading-r1.level": "h2",
"contact-card-r1.title": "",
"contact-card-r1.body": "",
"contact-card-r1.href": "",
"contact-card-r1.emphasis": "",
"contact-card-r1.density": "",
"contact-card-r1.align": "",
"contact-card-r1.icon": "",
"contact-links-r1.title": "",
"contact-links-r1.links": "[{\"label\":\"hello@yourcompany.com\",\"href\":\"mailto:hello@yourcompany.com\"},{\"label\":\"(555) 555-0100\",\"href\":\"tel:+15555550100\"}]",
"contact-links-r1.direction": "",
"contact-links-r1.icons": ""
}
}
{
"slug": "profile-rail",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "profile-rail",
"sections": [
{
"id": "layout-section",
"instanceId": "profile-band-r1",
"layout": "stack",
"children": [
{
"id": "layout-container",
"instanceId": "profile-row-r1",
"layout": "rail",
"children": [
{
"id": "layout-column",
"instanceId": "profile-rail-r1",
"children": [
{
"id": "block-media",
"instanceId": "profile-avatar-r1"
},
{
"id": "block-heading",
"instanceId": "profile-name-r1"
},
{
"id": "block-text",
"instanceId": "profile-title-r1"
},
{
"id": "block-text",
"instanceId": "profile-location-r1"
},
{
"id": "block-link-group",
"instanceId": "profile-links-r1"
}
]
},
{
"id": "layout-column",
"instanceId": "profile-main-r1",
"children": [
{
"id": "block-card",
"instanceId": "profile-summary-r1"
},
{
"id": "block-heading",
"instanceId": "experience-heading-r1"
},
{
"id": "block-card",
"instanceId": "experience-1-r1",
"children": [
{
"id": "block-heading",
"instanceId": "experience-1-role-r1"
},
{
"id": "block-text",
"instanceId": "experience-1-meta-r1"
},
{
"id": "block-text",
"instanceId": "experience-1-body-r1"
}
]
},
{
"id": "block-card",
"instanceId": "experience-2-r1",
"children": [
{
"id": "block-heading",
"instanceId": "experience-2-role-r1"
},
{
"id": "block-text",
"instanceId": "experience-2-meta-r1"
},
{
"id": "block-text",
"instanceId": "experience-2-body-r1"
}
]
},
{
"id": "block-card",
"instanceId": "experience-3-r1",
"children": [
{
"id": "block-heading",
"instanceId": "experience-3-role-r1"
},
{
"id": "block-text",
"instanceId": "experience-3-meta-r1"
},
{
"id": "block-text",
"instanceId": "experience-3-body-r1"
}
]
},
{
"id": "block-heading",
"instanceId": "skills-heading-r1"
},
{
"id": "block-list",
"instanceId": "skills-list-r1"
},
{
"id": "block-heading",
"instanceId": "education-heading-r1"
},
{
"id": "block-card",
"instanceId": "education-1-r1"
},
{
"id": "block-heading",
"instanceId": "contact-heading-r1"
},
{
"id": "block-card",
"instanceId": "contact-card-r1",
"children": [
{
"id": "block-link-group",
"instanceId": "contact-links-r1"
}
]
}
]
}
]
}
],
"component": "profile-rail@1"
}
]
},
"copy": {
"profile-band-r1.coverImage": "",
"profile-band-r1.coverStyle": "",
"profile-band-r1.coverScrim": "",
"profile-band-r1.anchor": "",
"profile-band-r1.navLabel": "",
"profile-band-r1.navHref": "",
"profile-band-r1.navSkip": "",
"profile-band-r1.landmark": "",
"profile-band-r1.tone": "",
"profile-band-r1.gutter": "",
"profile-band-r1.shape": "",
"profile-band-r1.padding": "",
"profile-band-r1.sticky": "",
"profile-band-r1.reveal": "",
"profile-band-r1.dismissible": "",
"profile-band-r1.width": "",
"profile-band-r1.gradient": "",
"profile-row-r1.align": "",
"profile-row-r1.phone": "",
"profile-rail-r1.pad": "",
"profile-rail-r1.sticky": "top",
"profile-avatar-r1.image": "",
"profile-avatar-r1.alt": "Placeholder image",
"profile-avatar-r1.caption": "",
"profile-avatar-r1.frame": "avatar",
"profile-avatar-r1.initials": "",
"profile-avatar-r1.href": "",
"profile-avatar-r1.lightbox": "",
"profile-avatar-r1.badge": "",
"profile-name-r1.text": "Your name",
"profile-name-r1.level": "h2",
"profile-title-r1.text": "Your title",
"profile-title-r1.textStyle": "",
"profile-location-r1.text": "City, ST",
"profile-location-r1.textStyle": "note",
"profile-links-r1.title": "",
"profile-links-r1.links": "[{\"label\":\"Email\",\"href\":\"mailto:hello@yourcompany.com\"},{\"label\":\"LinkedIn\",\"href\":\"#\"},{\"label\":\"Résumé\",\"href\":\"#\"}]",
"profile-links-r1.direction": "",
"profile-links-r1.icons": "",
"profile-main-r1.pad": "",
"profile-main-r1.sticky": "",
"profile-summary-r1.title": "Summary",
"profile-summary-r1.body": "Two or three sentences about who you are and how you work.",
"profile-summary-r1.href": "",
"profile-summary-r1.emphasis": "",
"profile-summary-r1.density": "",
"profile-summary-r1.align": "",
"profile-summary-r1.icon": "",
"experience-heading-r1.text": "Experience",
"experience-heading-r1.level": "h2",
"experience-1-r1.title": "",
"experience-1-r1.body": "",
"experience-1-r1.href": "",
"experience-1-r1.emphasis": "",
"experience-1-r1.density": "",
"experience-1-r1.align": "",
"experience-1-r1.icon": "",
"experience-1-role-r1.text": "Role one",
"experience-1-role-r1.level": "h3",
"experience-1-meta-r1.text": "Company one, a year to a year",
"experience-1-meta-r1.textStyle": "note",
"experience-1-body-r1.text": "A sentence about this role.",
"experience-1-body-r1.textStyle": "",
"experience-2-r1.title": "",
"experience-2-r1.body": "",
"experience-2-r1.href": "",
"experience-2-r1.emphasis": "",
"experience-2-r1.density": "",
"experience-2-r1.align": "",
"experience-2-r1.icon": "",
"experience-2-role-r1.text": "Role two",
"experience-2-role-r1.level": "h3",
"experience-2-meta-r1.text": "Company two, a year to a year",
"experience-2-meta-r1.textStyle": "note",
"experience-2-body-r1.text": "A sentence about this role.",
"experience-2-body-r1.textStyle": "",
"experience-3-r1.title": "",
"experience-3-r1.body": "",
"experience-3-r1.href": "",
"experience-3-r1.emphasis": "",
"experience-3-r1.density": "",
"experience-3-r1.align": "",
"experience-3-r1.icon": "",
"experience-3-role-r1.text": "Role three",
"experience-3-role-r1.level": "h3",
"experience-3-meta-r1.text": "Company three, a year to a year",
"experience-3-meta-r1.textStyle": "note",
"experience-3-body-r1.text": "A sentence about this role.",
"experience-3-body-r1.textStyle": "",
"skills-heading-r1.text": "Skills",
"skills-heading-r1.level": "h2",
"skills-list-r1.items": "Skill one\nSkill two\nSkill three\nSkill four\nSkill five\nSkill six",
"skills-list-r1.marker": "dot",
"skills-list-r1.size": "",
"skills-list-r1.markerImage": "",
"education-heading-r1.text": "Education",
"education-heading-r1.level": "h2",
"education-1-r1.title": "Course one",
"education-1-r1.body": "School one, a year to a year",
"education-1-r1.href": "",
"education-1-r1.emphasis": "",
"education-1-r1.density": "",
"education-1-r1.align": "",
"education-1-r1.icon": "",
"contact-heading-r1.text": "Contact",
"contact-heading-r1.level": "h2",
"contact-card-r1.title": "",
"contact-card-r1.body": "",
"contact-card-r1.href": "",
"contact-card-r1.emphasis": "",
"contact-card-r1.density": "",
"contact-card-r1.align": "",
"contact-card-r1.icon": "",
"contact-links-r1.title": "",
"contact-links-r1.links": "[{\"label\":\"hello@yourcompany.com\",\"href\":\"mailto:hello@yourcompany.com\"},{\"label\":\"(555) 555-0100\",\"href\":\"tel:+15555550100\"}]",
"contact-links-r1.direction": "",
"contact-links-r1.icons": ""
},
"ds": {}
}
import type { SectionRegistry } from '@nersh/render';
import { Component as BlockCard } from '@/sections/block-card/Component';
import { Component as BlockHeading } from '@/sections/block-heading/Component';
import { Component as BlockLinkGroup } from '@/sections/block-link-group/Component';
import { Component as BlockList } from '@/sections/block-list/Component';
import { Component as BlockMedia } from '@/sections/block-media/Component';
import { Component as BlockText } from '@/sections/block-text/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-card': BlockCard,
'block-heading': BlockHeading,
'block-link-group': BlockLinkGroup,
'block-list': BlockList,
'block-media': BlockMedia,
'block-text': BlockText,
'layout-column': LayoutColumn,
'layout-container': LayoutContainer,
'layout-section': LayoutSection,
};
"use client";
import { SiteRenderer } from "@nersh/render";
import { registry } from "./profile-rail.registry";
import siteJson from "./profile-rail.site.json";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const site = siteJson as any;
export default function ProfileRail() {
return <SiteRenderer site={site} registry={registry} />;
}