mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 14:08:47 +00:00
* feat(v4): update home page * fix * fix: cards * feat(v4): charts page * feat: update pages * feat: colors * fix * feat: add docs * feat: mdx work * fix * fix * fix: sidebar * fix: lint * feat: updates * feat: update components * feat: fix docs * fix: responsive * feat: implement cmdk * fix: update navigation menu demo * fix: code style * fix: themes * feat: implement blocks page * fix: docs config * refactor * fix: outputFileTracingIncludes * fix * fix: output * fix * fix: registry * refactor: move docs * debug: docs * debug * revert * fix: mjs * deps: pin fumadocs * debug * fix: downgrade next * fix: index page * refactor: move mdx components * fix: remove copy button * fix * was it zod * yes it was * remove copy page * fix: color page * fix: colors page * fix: meta colors * fix: copy button * feat: sync registry * fix: registry build script * feat: update port * feat: clean up examples * fix * fix: mobile nav * fix: blur for mobile * fix: sidebar nav * feat: update examples * fix: build scripts * feat: update components * feat: restyle * fix: types * fix: styles * fix: margins * fix: screenshots * fix * feat: update theme * fix: charts nav * fix: image * feat: optimize images * fix: menu * fix: card * fix: border * check * feat: implement charts page * fix: charts * fix: og images * feat: extend touch * fix: static * fix: sizing * fix: mobile screenshots * fix: page nav * fix * feat: update favicon * fix: theme selector * fix: feedback * fix: sink * docs: update * fix: styles * chore: update registry * fix: command * fix * fix: minor updates * fix: typography on smaller devices * fix: format * fix: remove unused icon * feat: update favicon * fix: typography * docs: typography page * fix: steps
104 lines
3.5 KiB
TypeScript
104 lines
3.5 KiB
TypeScript
import { Metadata } from "next"
|
|
import Image from "next/image"
|
|
import Link from "next/link"
|
|
|
|
import { cn } from "@/lib/utils"
|
|
import { buttonVariants } from "@/registry/new-york-v4/ui/button"
|
|
import { UserAuthForm } from "@/app/(app)/examples/authentication/components/user-auth-form"
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Authentication",
|
|
description: "Authentication forms built using the components.",
|
|
}
|
|
|
|
export default function AuthenticationPage() {
|
|
return (
|
|
<>
|
|
<div className="md:hidden">
|
|
<Image
|
|
src="/examples/authentication-light.png"
|
|
width={1280}
|
|
height={843}
|
|
alt="Authentication"
|
|
className="block dark:hidden"
|
|
priority
|
|
/>
|
|
<Image
|
|
src="/examples/authentication-dark.png"
|
|
width={1280}
|
|
height={843}
|
|
alt="Authentication"
|
|
className="hidden dark:block"
|
|
priority
|
|
/>
|
|
</div>
|
|
<div className="relative container hidden flex-1 shrink-0 items-center justify-center md:grid lg:max-w-none lg:grid-cols-2 lg:px-0">
|
|
<Link
|
|
href="/examples/authentication"
|
|
className={cn(
|
|
buttonVariants({ variant: "ghost" }),
|
|
"absolute top-4 right-4 md:top-8 md:right-8"
|
|
)}
|
|
>
|
|
Login
|
|
</Link>
|
|
<div className="text-primary relative hidden h-full flex-col p-10 lg:flex dark:border-r">
|
|
<div className="bg-primary/5 absolute inset-0" />
|
|
<div className="relative z-20 flex items-center text-lg font-medium">
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
viewBox="0 0 24 24"
|
|
fill="none"
|
|
stroke="currentColor"
|
|
strokeWidth="2"
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
className="mr-2 h-6 w-6"
|
|
>
|
|
<path d="M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3" />
|
|
</svg>
|
|
Acme Inc
|
|
</div>
|
|
<div className="relative z-20 mt-auto">
|
|
<blockquote className="leading-normal text-balance">
|
|
“This library has saved me countless hours of work and
|
|
helped me deliver stunning designs to my clients faster than ever
|
|
before.” - Sofia Davis
|
|
</blockquote>
|
|
</div>
|
|
</div>
|
|
<div className="flex items-center justify-center lg:h-[1000px] lg:p-8">
|
|
<div className="mx-auto flex w-full flex-col justify-center gap-6 sm:w-[350px]">
|
|
<div className="flex flex-col gap-2 text-center">
|
|
<h1 className="text-2xl font-semibold tracking-tight">
|
|
Create an account
|
|
</h1>
|
|
<p className="text-muted-foreground text-sm">
|
|
Enter your email below to create your account
|
|
</p>
|
|
</div>
|
|
<UserAuthForm />
|
|
<p className="text-muted-foreground px-8 text-center text-sm">
|
|
By clicking continue, you agree to our{" "}
|
|
<Link
|
|
href="/terms"
|
|
className="hover:text-primary underline underline-offset-4"
|
|
>
|
|
Terms of Service
|
|
</Link>{" "}
|
|
and{" "}
|
|
<Link
|
|
href="/privacy"
|
|
className="hover:text-primary underline underline-offset-4"
|
|
>
|
|
Privacy Policy
|
|
</Link>
|
|
.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</>
|
|
)
|
|
}
|