Migrates the docs site from remote-config-server to this repo as a standalone static Next.js app. Key changes: - Copy app-docs from remote-config-server to docs-site/ - Configure `output: 'export'` for static HTML generation - Replace API routes with build-time scripts (search index, image copy) - Add generateStaticParams() to enumerate all doc slugs at build time - Convert server-side redirects to client-side redirects - Point DOCS_DIR to sibling ../docs directory - Add GitHub Actions workflow for deploying to GitHub Pages - Add missing Radix UI dependencies (accordion, tabs) to package.json Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
21 lines
480 B
TypeScript
21 lines
480 B
TypeScript
export function Columns({
|
|
cols = 2,
|
|
children,
|
|
}: {
|
|
cols?: number;
|
|
children: React.ReactNode;
|
|
}) {
|
|
const colClasses = {
|
|
1: "grid-cols-1",
|
|
2: "grid-cols-1 sm:grid-cols-2",
|
|
3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
|
|
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",
|
|
};
|
|
const colClass = colClasses[Math.min(cols, 4) as 1 | 2 | 3 | 4] || colClasses[2];
|
|
|
|
return (
|
|
<div className={`my-6 grid gap-6 ${colClass}`}>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|