mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
53 lines
1.4 KiB
TypeScript
53 lines
1.4 KiB
TypeScript
import { Metadata } from "next"
|
|
|
|
import { Announcement } from "@/components/announcement"
|
|
import {
|
|
PageActions,
|
|
PageHeader,
|
|
PageHeaderDescription,
|
|
PageHeaderHeading,
|
|
} from "@/components/page-header"
|
|
import { Button } from "@/registry/new-york/ui/button"
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Building Blocks.",
|
|
description:
|
|
"Beautifully designed. Copy and paste into your apps. Open Source.",
|
|
}
|
|
|
|
export default function BlocksLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<div className="container relative">
|
|
<PageHeader className="max-w-3xl">
|
|
<Announcement />
|
|
<PageHeaderHeading className="text-balance">
|
|
Building Blocks for the Web
|
|
</PageHeaderHeading>
|
|
<PageHeaderDescription>
|
|
Beautifully designed. Copy and paste into your apps. Open Source.
|
|
</PageHeaderDescription>
|
|
<PageActions>
|
|
<Button asChild>
|
|
<a href="#blocks">Browse</a>
|
|
</Button>
|
|
<Button asChild variant="outline">
|
|
<a
|
|
href="https://github.com/shadcn-ui/ui/discussions/new?category=blocks-request"
|
|
target="_blank"
|
|
>
|
|
Request a block
|
|
</a>
|
|
</Button>
|
|
</PageActions>
|
|
</PageHeader>
|
|
<section id="blocks" className="grid scroll-mt-24 gap-24 lg:gap-48">
|
|
{children}
|
|
</section>
|
|
</div>
|
|
)
|
|
}
|