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.
65 lines
1.5 KiB
TypeScript
65 lines
1.5 KiB
TypeScript
import { type Metadata } from "next"
|
|
import Link from "next/link"
|
|
|
|
import { Announcement } from "@/components/announcement"
|
|
import {
|
|
PageActions,
|
|
PageHeader,
|
|
PageHeaderDescription,
|
|
PageHeaderHeading,
|
|
} from "@/components/page-header"
|
|
import { Button } from "@/registry/new-york-v4/ui/button"
|
|
|
|
const title = "Pick a Color. Make it yours."
|
|
const description =
|
|
"Try our hand-picked themes. Copy and paste them into your project. New theme editor coming soon."
|
|
|
|
export const metadata: Metadata = {
|
|
title,
|
|
description,
|
|
openGraph: {
|
|
images: [
|
|
{
|
|
url: `/og?title=${encodeURIComponent(
|
|
title
|
|
)}&description=${encodeURIComponent(description)}`,
|
|
},
|
|
],
|
|
},
|
|
twitter: {
|
|
card: "summary_large_image",
|
|
images: [
|
|
{
|
|
url: `/og?title=${encodeURIComponent(
|
|
title
|
|
)}&description=${encodeURIComponent(description)}`,
|
|
},
|
|
],
|
|
},
|
|
}
|
|
|
|
export default function ThemesLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<div>
|
|
<PageHeader>
|
|
<Announcement />
|
|
<PageHeaderHeading>{title}</PageHeaderHeading>
|
|
<PageHeaderDescription>{description}</PageHeaderDescription>
|
|
<PageActions>
|
|
<Button asChild size="sm">
|
|
<a href="#themes">Browse Themes</a>
|
|
</Button>
|
|
<Button asChild variant="ghost" size="sm">
|
|
<Link href="/docs/theming">Documentation</Link>
|
|
</Button>
|
|
</PageActions>
|
|
</PageHeader>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|