{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "grid",
  "title": "Grid",
  "description": "A framed, technical Open Graph image with a dashed border grid and a corner brand mark.",
  "registryDependencies": [
    "https://ogimagecn.com/r/brand-mark.json",
    "https://ogimagecn.com/r/grid-lines.json"
  ],
  "files": [
    {
      "path": "registry/blocks/grid/index.tsx",
      "content": "import { BrandMark } from \"@/components/og/brand-mark\";\nimport { GridLines } from \"@/components/og/grid-lines\";\n\nexport interface GridProps {\n  title: string;\n  description: string;\n  brand: string;\n  logo?: string;\n}\n\nexport const Grid = ({ title, description, brand, logo = \"\" }: GridProps) => (\n  <div\n    style={{\n      backgroundColor: \"#0a0a0a\",\n      color: \"#ffffff\",\n      display: \"flex\",\n      height: \"100%\",\n      position: \"relative\",\n      width: \"100%\",\n    }}\n  >\n    <GridLines />\n\n    <div\n      style={{\n        bottom: \"128px\",\n        display: \"flex\",\n        flexDirection: \"column\",\n        justifyContent: \"center\",\n        left: \"128px\",\n        position: \"absolute\",\n        right: \"128px\",\n        top: \"128px\",\n        width: \"896px\",\n      }}\n    >\n      <div\n        style={{\n          display: \"flex\",\n          flexGrow: 1,\n          fontSize: title && title.length > 20 ? 64 : 80,\n          fontWeight: 600,\n          letterSpacing: \"-0.04em\",\n          lineHeight: 1.1,\n          textWrap: \"balance\",\n        }}\n      >\n        {title}\n      </div>\n      <div\n        style={{\n          color: \"#a8a29e\",\n          display: \"flex\",\n          flexGrow: 1,\n          fontSize: \"40px\",\n          fontWeight: 500,\n          lineHeight: 1.5,\n          marginTop: \"24px\",\n          textWrap: \"balance\",\n        }}\n      >\n        {description}\n      </div>\n    </div>\n\n    <div\n      style={{\n        alignItems: \"center\",\n        bottom: \"96px\",\n        display: \"flex\",\n        gap: \"14px\",\n        position: \"absolute\",\n        right: \"96px\",\n      }}\n    >\n      <BrandMark background=\"#ffffff\" radius={12} size={48} src={logo} />\n      <span\n        style={{\n          fontSize: \"30px\",\n          fontWeight: 600,\n        }}\n      >\n        {brand}\n      </span>\n    </div>\n  </div>\n);\n",
      "type": "registry:component",
      "target": "components/og/grid.tsx"
    }
  ],
  "categories": [
    "content"
  ],
  "type": "registry:block"
}