{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-status",
  "type": "registry:block",
  "title": "Footer, with system status",
  "description": "A compact footer for a product: brand and tagline, a status pill (a dot, the words \"All systems operational\" and a link to the status page), one wrapped row of links and the legal line. The dot is shown by shape as well as colour. No columns.",
  "categories": [
    "footer"
  ],
  "dependencies": [
    "lucide-react@^1.49.0",
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/button.json",
    "https://ui.klarhimmel.com/r/editing.json",
    "https://ui.klarhimmel.com/r/kit-d-chrome.json",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/footer-status/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/footer-status/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, req, t } from '../_shared/schema';\n\nconst schema = z.object({\n  brand: req(40),\n  tagline: t(120),\n  /** The state shown by the status pill's dot and wording; the words are yours. */\n  statusTone: z.enum(['ok', 'degraded', 'down']),\n  status: req(60),\n  statusLink: link,\n  links: z.array(link).min(2).max(8),\n  legal: t(120),\n});\n\nexport const spec = defineSpec({\n  type: 'footer-status',\n  aliases: ['footer/status'],\n  name: 'Footer, with system status',\n  category: 'footer',\n  role: 'foot',\n  description: 'A compact footer for a product: brand and tagline, a status pill (a dot, the words \"All systems operational\" and a link to the status page), one wrapped row of links and the legal line. The dot is shown by shape as well as colour. No columns.',\n  schema,\n  defaults: {\n    brand: 'Brand name',\n    tagline: 'Say what you do in one line.',\n    statusTone: 'ok',\n    status: 'Say how things stand right now',\n    statusLink: { label: 'Status page', href: '#status' },\n    links: [\n      { label: 'First page', href: '#docs' },\n      { label: 'Second page', href: '#changelog' },\n      { label: 'Third page', href: '#pricing' },\n      { label: 'Fourth page', href: '#security' },\n      { label: 'Fifth page', href: '#privacy' },\n      { label: 'Sixth page', href: '#terms' },\n    ],\n    legal: '© 0000 Company name',\n  },\n});\n"
    },
    {
      "path": "src/blocks/footer-status/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/footer-status/index.tsx",
      "content": "import { AlertTriangle, CircleCheck, CircleX } from 'lucide-react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { safeHref } from '../../ui/button';\nimport { Container, Gate, Opt } from '../_shared/kit';\nimport { FOCUS } from '../_shared/d-chrome-kit';\nimport { cn } from '../../lib/utils';\nimport { spec } from './spec';\nimport type { BlockProps } from '../types';\nimport type { z } from 'zod';\n\nexport { spec };\ntype Props = z.infer<typeof spec.schema>;\n\nconst TONE = {\n  ok: { Icon: CircleCheck, cls: 'text-kh-accent-ink' },\n  degraded: { Icon: AlertTriangle, cls: 'text-kh-ink' },\n  down: { Icon: CircleX, cls: 'text-kh-danger' },\n} as const;\n\nfunction FooterStatus({ props }: BlockProps<Props>) {\n  const { Icon, cls } = TONE[props.statusTone];\n  const link = cn('inline-flex min-h-8 items-center rounded-kh-sm px-2 text-kh-small text-kh-muted transition-colors hover:text-kh-ink', FOCUS);\n  return (\n    <footer className=\"border-t border-kh-line bg-kh-canvas py-10\">\n      <Container>\n        <div className=\"flex flex-col gap-6 @3xl:flex-row @3xl:items-start @3xl:justify-between\">\n          <div>\n            <Text path={['brand']} value={props.brand} as=\"p\" className=\"text-kh-heading font-semibold tracking-tight\" />\n            <Opt path={['tagline']} value={props.tagline} className=\"mt-1 text-kh-small text-kh-muted\" placeholder=\"Tagline\" />\n          </div>\n          <p className=\"inline-flex flex-wrap items-center gap-x-2 gap-y-1 self-start rounded-kh-pill border border-kh-line bg-kh-surface px-4 py-1.5 text-kh-small\">\n            <Icon aria-hidden strokeWidth={1.75} className={cn('size-4', cls)} />\n            <Text path={['status']} value={props.status} as=\"span\" className=\"font-medium\" />\n            <Gate label={props.statusLink.label}>\n              <a href={safeHref(props.statusLink.href)} className={cn('inline-flex min-h-6 items-center rounded-kh-sm text-kh-muted underline underline-offset-4 hover:text-kh-ink', FOCUS)}>\n                <Text path={['statusLink', 'label']} value={props.statusLink.label} as=\"span\" placeholder=\"Label\" />\n              </a>\n            </Gate>\n          </p>\n        </div>\n        <nav aria-label=\"Footer\" className=\"mt-8\">\n          <ul className=\"-mx-2 flex flex-wrap\">\n            {props.links.map((l, i) => (\n              <Gate key={i} label={l.label}>\n                <li>\n                  <a href={safeHref(l.href)} className={link}>\n                    <Text path={['links', i, 'label']} value={l.label} as=\"span\" />\n                  </a>\n                </li>\n              </Gate>\n            ))}\n          </ul>\n        </nav>\n        <Opt path={['legal']} value={props.legal} className=\"mt-8 border-t border-kh-line pt-5 text-kh-caption text-kh-muted\" placeholder=\"Legal\" />\n      </Container>\n    </footer>\n  );\n}\n\nexport default withHeadingLevel(FooterStatus);\n"
    }
  ]
}
