mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-08 14:35:09 +00:00
68 lines
2.1 KiB
TypeScript
68 lines
2.1 KiB
TypeScript
import Image from "next/image"
|
|
import Link from "next/link"
|
|
|
|
import { siteConfig } from "@/config/site"
|
|
import { cn } from "@/lib/utils"
|
|
import { Announcement } from "@/components/announcement"
|
|
import { ExamplesNav } from "@/components/examples-nav"
|
|
import { Icons } from "@/components/icons"
|
|
import {
|
|
PageActions,
|
|
PageHeader,
|
|
PageHeaderDescription,
|
|
PageHeaderHeading,
|
|
} from "@/components/page-header"
|
|
import { buttonVariants } from "@/registry/new-york/ui/button"
|
|
import MailPage from "@/app/examples/mail/page"
|
|
|
|
export default function IndexPage() {
|
|
return (
|
|
<div className="container relative">
|
|
<PageHeader>
|
|
<Announcement />
|
|
<PageHeaderHeading>Build your component library</PageHeaderHeading>
|
|
<PageHeaderDescription>
|
|
Beautifully designed components that you can copy and paste into your
|
|
apps. Accessible. Customizable. Open Source.
|
|
</PageHeaderDescription>
|
|
<PageActions>
|
|
<Link href="/docs" className={cn(buttonVariants())}>
|
|
Get Started
|
|
</Link>
|
|
<Link
|
|
target="_blank"
|
|
rel="noreferrer"
|
|
href={siteConfig.links.github}
|
|
className={cn(buttonVariants({ variant: "outline" }))}
|
|
>
|
|
<Icons.gitHub className="mr-2 h-4 w-4" />
|
|
GitHub
|
|
</Link>
|
|
</PageActions>
|
|
</PageHeader>
|
|
<ExamplesNav className="[&>a:first-child]:text-primary" />
|
|
<section className="overflow-hidden rounded-lg border bg-background shadow-md md:hidden md:shadow-xl">
|
|
<Image
|
|
src="/examples/mail-dark.png"
|
|
width={1280}
|
|
height={727}
|
|
alt="Mail"
|
|
className="hidden dark:block"
|
|
/>
|
|
<Image
|
|
src="/examples/mail-light.png"
|
|
width={1280}
|
|
height={727}
|
|
alt="Mail"
|
|
className="block dark:hidden"
|
|
/>
|
|
</section>
|
|
<section className="hidden md:block">
|
|
<div className="overflow-hidden rounded-lg border bg-background shadow-lg">
|
|
<MailPage />
|
|
</div>
|
|
</section>
|
|
</div>
|
|
)
|
|
}
|