{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "blog57",
  "title": "Journal Lead And Index",
  "description": "Editorial journal preview pairing one lead entry with a wide image, category, title, excerpt and date against a ruled index of three shorter entries, headed by an eyebrow, a display heading and an outline pill CTA.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/blog57/blog57.tsx",
      "content": "\"use client\";\n\nimport Link from \"next/link\";\nimport { Badge7 } from \"@/components/beste/component/badge7\";\nimport { Button12 } from \"@/components/beste/component/button12\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Badge {\n  label: string;\n}\n\ninterface ActionButton {\n  label: string;\n  href: string;\n}\n\ninterface PostImage {\n  src: string;\n  alt: string;\n}\n\ninterface FeaturedPost {\n  image: PostImage;\n  category: string;\n  title: string;\n  excerpt: string;\n  meta: string;\n  href: string;\n}\n\ninterface PostLink {\n  category: string;\n  title: string;\n  meta: string;\n  href: string;\n}\n\ninterface Blog57Labels {\n  listTitle?: string;\n}\n\ninterface Blog57Props {\n  badge?: Badge;\n  heading?: string;\n  featured?: FeaturedPost;\n  posts?: PostLink[];\n  button?: ActionButton;\n  labels?: Blog57Labels;\n  className?: string;\n}\n\nexport const blog57Demo: Blog57Props = {\n  badge: { label: \"The journal\" },\n  heading: \"What we work out in writing.\",\n  featured: {\n    image: {\n      src: \"https://images.unsplash.com/photo-1773244175899-76ce69d3e2aa?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n      alt: \"Spread of a printed editorial type specimen\",\n    },\n    category: \"Process\",\n    title: \"The brief we now refuse to start without\",\n    excerpt:\n      \"Every project that went sideways skipped the same page. Here is the single sheet we ask for before anyone opens a design file, and the three questions on it that do the real work.\",\n    meta: \"12 April 2026 · 8 min read\",\n    href: \"https://beste.co\",\n  },\n  posts: [\n    {\n      category: \"Typography\",\n      title: \"Setting a type scale that survives real copy\",\n      meta: \"28 March 2026 · 6 min read\",\n      href: \"https://beste.co\",\n    },\n    {\n      category: \"Studio\",\n      title: \"Why we still print everything before it ships\",\n      meta: \"9 March 2026 · 4 min read\",\n      href: \"https://beste.co\",\n    },\n    {\n      category: \"Craft\",\n      title: \"Naming things the client has already named\",\n      meta: \"21 February 2026 · 5 min read\",\n      href: \"https://beste.co\",\n    },\n  ],\n  button: {\n    label: \"Read every entry\",\n    href: \"https://beste.co\",\n  },\n  labels: {\n    listTitle: \"Also this season\",\n  },\n};\n\nexport function Blog57({\n  badge,\n  heading,\n  featured,\n  posts = [],\n  button,\n  labels = {},\n  className,\n}: Blog57Props) {\n  const { listTitle } = labels;\n\n  return (\n    <section className={cn(\"py-16 md:py-24 w-full\", className)}>\n      <div className=\"mx-auto max-w-7xl px-4 md:px-6\">\n        <div className=\"flex flex-wrap items-end justify-between gap-8\">\n          <div>\n            {badge && <Badge7 label={badge.label} />}\n            {heading && (\n              <h2 className=\"mt-6 max-w-2xl text-balance text-3xl font-bold leading-tight tracking-tight text-foreground md:text-4xl lg:text-5xl\">\n                {heading}\n              </h2>\n            )}\n          </div>\n\n          {button && (\n            <Button12 asChild label={button.label} tone=\"outline\">\n              <Link href={button.href} />\n            </Button12>\n          )}\n        </div>\n\n        <div className=\"mt-12 grid gap-12 md:mt-16 md:grid-cols-[1.35fr_1fr] md:gap-16\">\n          {featured && (\n            <Link href={featured.href} className=\"block\">\n              <div className=\"relative aspect-[16/10] overflow-hidden rounded-md bg-muted\">\n                <img\n                  className=\"absolute inset-0 size-full object-cover\"\n                  src={featured.image.src}\n                  alt={featured.image.alt}\n                />\n              </div>\n\n              <p className=\"mt-6 text-base text-muted-foreground md:text-lg\">{featured.category}</p>\n              <h3 className=\"mt-3 text-balance text-2xl font-bold leading-tight tracking-tight text-foreground md:text-3xl lg:text-4xl\">\n                {featured.title}\n              </h3>\n              <p className=\"mt-4 max-w-xl text-lg leading-relaxed text-muted-foreground md:text-xl\">\n                {featured.excerpt}\n              </p>\n              <p className=\"mt-5 text-base text-muted-foreground md:text-lg\">{featured.meta}</p>\n            </Link>\n          )}\n\n          {posts.length > 0 && (\n            <div className=\"md:pt-2\">\n              {listTitle && <Badge7 label={listTitle} />}\n\n              <div className=\"mt-6 flex flex-col gap-8\">\n                {posts.map((post, index) => (\n                  <Link key={index} href={post.href} className=\"block border-t pt-6\">\n                    <p className=\"text-base text-muted-foreground md:text-lg\">{post.category}</p>\n                    <h3 className=\"mt-2 text-balance text-xl font-bold leading-snug tracking-tight text-foreground md:text-2xl\">\n                      {post.title}\n                    </h3>\n                    <p className=\"mt-3 text-base text-muted-foreground md:text-lg\">{post.meta}</p>\n                  </Link>\n                ))}\n              </div>\n            </div>\n          )}\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/blog57.tsx"
    },
    {
      "path": "registry-components/badge7/badge7.tsx",
      "content": "import { cn } from \"@/lib/utils\";\n\n/** Allowed wrapper styles, a fixed set, not arbitrary characters. */\ntype Badge7Bracket = \"round\" | \"square\" | \"curly\" | \"angle\" | \"none\";\n\nconst BRACKETS: Record<Badge7Bracket, [open: string, close: string]> = {\n  round: [\"(\", \")\"],\n  square: [\"[\", \"]\"],\n  curly: [\"{\", \"}\"],\n  angle: [\"<\", \">\"],\n  none: [\"\", \"\"],\n};\n\ntype Tone = \"muted\" | \"foreground\" | \"primary\";\n\ninterface Badge7Props {\n  /** Eyebrow label */\n  label: string;\n  /** Which characters wrap the label. Limited to the BRACKETS set. */\n  bracket?: Badge7Bracket;\n  /** Label color */\n  tone?: Tone;\n  /** Render rotated for vertical edge placement (e.g. along a hero side) */\n  vertical?: boolean;\n  /** Additional classes merged onto the root */\n  className?: string;\n}\n\nconst toneStyles: Record<Tone, string> = {\n  muted: \"text-muted-foreground\",\n  foreground: \"text-foreground\",\n  primary: \"text-primary\",\n};\n\nexport const badge7Demo: Badge7Props = {\n  label: \"About\",\n};\n\nexport function Badge7({\n  label,\n  bracket = \"round\",\n  tone = \"muted\",\n  vertical = false,\n  className,\n}: Badge7Props) {\n  const [open, close] = BRACKETS[bracket];\n\n  return (\n    <span\n      className={cn(\n        \"text-base font-medium\",\n        toneStyles[tone],\n        vertical ? \"rotate-180 [writing-mode:vertical-rl]\" : \"inline-block\",\n        className\n      )}\n    >\n      {`${open}${label}${close}`}\n    </span>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/component/badge7.tsx"
    },
    {
      "path": "registry-components/button12/button12.tsx",
      "content": "\"use client\";\n\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { ArrowUpRight, type LucideIcon } from \"lucide-react\";\nimport * as React from \"react\";\nimport { cn } from \"@/lib/utils\";\n\ntype Tone = \"dark\" | \"primary\" | \"outline\";\n\ninterface Button12Props {\n  /** Button label */\n  label: string;\n  /**\n   * Compose the rendered element shadcn-style (radix asChild): your element\n   * (e.g. a router Link) becomes the root and the button content is injected\n   * as its children. Pass the element without children of its own.\n   */\n  asChild?: boolean;\n  /** The element to render when `asChild` is set (e.g. your framework's Link) */\n  children?: React.ReactElement;\n  /**\n   * Fallback link: renders a plain `<a>`. Prefer `asChild` with your\n   * framework's Link component for client-side navigation.\n   */\n  href?: string;\n  /** Seal icon (defaults to ArrowUpRight) */\n  icon?: LucideIcon;\n  /** Surface tone: solid dark (default), solid primary, or bordered outline */\n  tone?: Tone;\n  /** Click handler (used when there is no href and no asChild) */\n  onClick?: React.MouseEventHandler<HTMLButtonElement>;\n  /** Additional classes merged onto the button */\n  className?: string;\n}\n\nconst toneStyles: Record<Tone, { pill: string; seal: string }> = {\n  dark: {\n    pill: \"bg-foreground text-background hover:bg-foreground/90\",\n    seal: \"bg-background text-foreground\",\n  },\n  primary: {\n    pill: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n    seal: \"bg-primary-foreground text-primary\",\n  },\n  outline: {\n    pill: \"border bg-background text-foreground hover:bg-muted\",\n    seal: \"bg-foreground text-background\",\n  },\n};\n\nexport const button12Demo: Button12Props = {\n  label: \"Book an intro call\",\n};\n\nexport function Button12({\n  label,\n  asChild = false,\n  children,\n  href,\n  icon: Icon = ArrowUpRight,\n  tone = \"dark\",\n  onClick,\n  className,\n}: Button12Props) {\n  const styles = toneStyles[tone];\n\n  const classes = cn(\n    \"group/button12 inline-flex w-fit cursor-pointer items-center gap-3 rounded-full py-2 pl-8 pr-2 text-base font-bold transition-colors\",\n    styles.pill,\n    className\n  );\n\n  const inner = (\n    <>\n      {/* Label slides out the bottom while a copy drops in from the top */}\n      <span className=\"relative block overflow-hidden\">\n        <span className=\"block transition-transform duration-300 ease-out motion-safe:group-hover/button12:translate-y-full\">\n          {label}\n        </span>\n        <span\n          aria-hidden=\"true\"\n          className=\"absolute inset-0 block -translate-y-full transition-transform duration-300 ease-out motion-safe:group-hover/button12:translate-y-0\"\n        >\n          {label}\n        </span>\n      </span>\n\n      {/* Seal: icon exits the top-right corner as a copy enters from bottom-left */}\n      <span\n        className={cn(\n          \"relative flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-full\",\n          styles.seal\n        )}\n      >\n        <Icon className=\"size-4 transition-transform duration-300 ease-out motion-safe:group-hover/button12:translate-x-[160%] motion-safe:group-hover/button12:-translate-y-[160%]\" />\n        <Icon\n          aria-hidden=\"true\"\n          className=\"absolute size-4 -translate-x-[160%] translate-y-[160%] transition-transform duration-300 ease-out motion-safe:group-hover/button12:translate-x-0 motion-safe:group-hover/button12:translate-y-0\"\n        />\n      </span>\n    </>\n  );\n\n  if (asChild && React.isValidElement(children)) {\n    return (\n      <Slot className={classes}>\n        {React.cloneElement(children, undefined, inner)}\n      </Slot>\n    );\n  }\n\n  if (href) {\n    return (\n      <a href={href} className={classes}>\n        {inner}\n      </a>\n    );\n  }\n\n  return (\n    <button type=\"button\" onClick={onClick} className={classes}>\n      {inner}\n    </button>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/component/button12.tsx"
    }
  ],
  "type": "registry:block"
}