mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +00:00
Squash merge of shadcn-ui/ui main branch into hanzo/ui, bringing in: - [email protected] through [email protected] releases - New apps/v4 directory structure - Registry system improvements and MCP server - Framework support (Vue, Svelte, React Native) - New templates (vite-app, monorepo-next, laravel) - Zod 4 compatibility (scoped override for zod@>4) - Test fixture corrections for alias resolution All 867 merge conflicts resolved preserving Hanzo customizations. 1020/1020 shadcn tests pass.
36 lines
945 B
TypeScript
36 lines
945 B
TypeScript
import Link from "next/link"
|
|
|
|
import { BlockDisplay } from "@/components/block-display"
|
|
import { getActiveStyle } from "@/registry/_legacy-styles"
|
|
import { Button } from "@/registry/new-york-v4/ui/button"
|
|
|
|
export const dynamic = "force-static"
|
|
export const revalidate = false
|
|
|
|
const FEATURED_BLOCKS = [
|
|
"dashboard-01",
|
|
"sidebar-07",
|
|
"sidebar-03",
|
|
"login-03",
|
|
"login-04",
|
|
]
|
|
|
|
export default async function BlocksPage() {
|
|
const activeStyle = await getActiveStyle()
|
|
|
|
return (
|
|
<div className="flex flex-col gap-12 md:gap-24">
|
|
{FEATURED_BLOCKS.map((name) => (
|
|
<BlockDisplay name={name} key={name} styleName={activeStyle.name} />
|
|
))}
|
|
<div className="container-wrapper">
|
|
<div className="container flex justify-center py-6">
|
|
<Button asChild variant="outline">
|
|
<Link href="/blocks/sidebar">Browse more blocks</Link>
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|