mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-26 06:05:56 +00:00
66 lines
1.9 KiB
TypeScript
66 lines
1.9 KiB
TypeScript
import { Metadata } from "next"
|
|
import Link from "next/link"
|
|
|
|
import { cn } from "@/lib/utils"
|
|
import { Announcement } from "@/components/announcement"
|
|
import { ExamplesNav } from "@/components/examples-nav"
|
|
import {
|
|
PageActions,
|
|
PageHeader,
|
|
PageHeaderDescription,
|
|
PageHeaderHeading,
|
|
} from "@/components/page-header"
|
|
import { buttonVariants } from "@/registry/new-york/ui/button"
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Examples",
|
|
description: "Check out some examples app built using the components.",
|
|
}
|
|
|
|
interface ExamplesLayoutProps {
|
|
children: React.ReactNode
|
|
}
|
|
|
|
export default function ExamplesLayout({ children }: ExamplesLayoutProps) {
|
|
return (
|
|
<>
|
|
<div className="container relative">
|
|
<PageHeader>
|
|
<Announcement />
|
|
<PageHeaderHeading className="hidden md:block">
|
|
Check out some examples
|
|
</PageHeaderHeading>
|
|
<PageHeaderHeading className="md:hidden">Examples</PageHeaderHeading>
|
|
<PageHeaderDescription>
|
|
Dashboard, cards, authentication. Some examples built using the
|
|
components. Use this as a guide to build your own.
|
|
</PageHeaderDescription>
|
|
<PageActions>
|
|
<Link
|
|
href="/docs"
|
|
className={cn(buttonVariants(), "rounded-[6px]")}
|
|
>
|
|
Get Started
|
|
</Link>
|
|
<Link
|
|
href="/components"
|
|
className={cn(
|
|
buttonVariants({ variant: "outline" }),
|
|
"rounded-[6px]"
|
|
)}
|
|
>
|
|
Components
|
|
</Link>
|
|
</PageActions>
|
|
</PageHeader>
|
|
<section>
|
|
<ExamplesNav />
|
|
<div className="overflow-hidden rounded-[0.5rem] border bg-background shadow-md md:shadow-xl">
|
|
{children}
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</>
|
|
)
|
|
}
|