{"name":"login-04","description":"A login page with form and image.","registryDependencies":["@herocn/button","@herocn/card","@herocn/input","@herocn/label","@herocn/field"],"files":[{"path":"page.tsx","content":"import { LoginForm } from \"@/components/login-form\";\n\nexport default function LoginPage() {\n\treturn (\n\t\t<div className=\"flex min-h-svh flex-col items-center justify-center bg-muted p-6 md:p-10\">\n\t\t\t<div className=\"w-full max-w-sm md:max-w-4xl\">\n\t\t\t\t<LoginForm />\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n","type":"registry:page","target":"app/login/page.tsx"},{"path":"components/login-form.tsx","content":"import { cn } from \"cn\";\n\nimport { Button } from \"@/components/ui/button\";\nimport {\n\tCard,\n\tCardContent,\n\tCardDescription,\n\tCardHeader,\n\tCardTitle,\n} from \"@/components/ui/card\";\nimport {\n\tField,\n\tFieldDescription,\n\tFieldGroup,\n\tFieldLabel,\n\tFieldSeparator,\n} from \"@/components/ui/field\";\nimport { Input } from \"@/components/ui/input\";\n\nexport function LoginForm({\n\tclassName,\n\t...props\n}: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div className={cn(\"flex flex-col gap-6\", className)} {...props}>\n\t\t\t<Card className=\"overflow-hidden p-0\">\n\t\t\t\t<CardContent className=\"grid group-has-[img:first-child]/card:px-0 md:grid-cols-2\">\n\t\t\t\t\t<form className=\"p-6 md:p-8\">\n\t\t\t\t\t\t<FieldGroup>\n\t\t\t\t\t\t\t<CardHeader className=\"group-has-[img:first-child]/card:px-0\">\n\t\t\t\t\t\t\t\t<CardTitle>Welcome back</CardTitle>\n\t\t\t\t\t\t\t\t<CardDescription>\n\t\t\t\t\t\t\t\t\tLogin to your Acme Inc account\n\t\t\t\t\t\t\t\t</CardDescription>\n\t\t\t\t\t\t\t</CardHeader>\n\t\t\t\t\t\t\t<Field>\n\t\t\t\t\t\t\t\t<FieldLabel htmlFor=\"email\">Email</FieldLabel>\n\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\tid=\"email\"\n\t\t\t\t\t\t\t\t\ttype=\"email\"\n\t\t\t\t\t\t\t\t\tplaceholder=\"maqed@example.com\"\n\t\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\t\trequired\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</Field>\n\t\t\t\t\t\t\t<Field>\n\t\t\t\t\t\t\t\t<div className=\"flex items-center\">\n\t\t\t\t\t\t\t\t\t<FieldLabel htmlFor=\"password\">Password</FieldLabel>\n\t\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\t\thref=\"#\"\n\t\t\t\t\t\t\t\t\t\tclassName=\"ml-auto text-sm underline-offset-2 hover:underline\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\tForgot your password?\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\tid=\"password\"\n\t\t\t\t\t\t\t\t\ttype=\"password\"\n\t\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\t\trequired\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</Field>\n\t\t\t\t\t\t\t<Field>\n\t\t\t\t\t\t\t\t<Button type=\"submit\">Login</Button>\n\t\t\t\t\t\t\t</Field>\n\t\t\t\t\t\t\t<FieldSeparator className=\"*:data-[slot=field-separator-content]:bg-card\">\n\t\t\t\t\t\t\t\tOr continue with\n\t\t\t\t\t\t\t</FieldSeparator>\n\t\t\t\t\t\t\t<Field className=\"grid grid-cols-3 gap-4\">\n\t\t\t\t\t\t\t\t<Button variant=\"outline\" type=\"button\">\n\t\t\t\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\t\td=\"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701\"\n\t\t\t\t\t\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t<span className=\"sr-only\">Login with Apple</span>\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t<Button variant=\"outline\" type=\"button\">\n\t\t\t\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\t\tfill=\"#4285f4\"\n\t\t\t\t\t\t\t\t\t\t\td=\"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.27-4.74 3.27-8.1Z\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\t\tfill=\"#34a853\"\n\t\t\t\t\t\t\t\t\t\t\td=\"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84A11 11 0 0 0 12 23Z\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\t\tfill=\"#fbbc05\"\n\t\t\t\t\t\t\t\t\t\t\td=\"M5.84 14.1A6.6 6.6 0 0 1 5.49 12c0-.73.13-1.43.35-2.09V7.07H2.18A11 11 0 0 0 1 12c0 1.78.43 3.45 1.18 4.93l3.66-2.83Z\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\t\tfill=\"#ea4335\"\n\t\t\t\t\t\t\t\t\t\t\td=\"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15A11 11 0 0 0 12 1 11 11 0 0 0 2.18 7.07l3.66 2.84A6.56 6.56 0 0 1 12 5.38Z\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t<span className=\"sr-only\">Login with Google</span>\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t<Button variant=\"outline\" type=\"button\">\n\t\t\t\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\t\t\t\t\tviewBox=\"0 0 256 171\"\n\t\t\t\t\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<defs>\n\t\t\t\t\t\t\t\t\t\t\t<linearGradient\n\t\t\t\t\t\t\t\t\t\t\t\tid=\"meta-gradient-a\"\n\t\t\t\t\t\t\t\t\t\t\t\tx1=\"13.878%\"\n\t\t\t\t\t\t\t\t\t\t\t\tx2=\"89.144%\"\n\t\t\t\t\t\t\t\t\t\t\t\ty1=\"55.934%\"\n\t\t\t\t\t\t\t\t\t\t\t\ty2=\"58.694%\"\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<stop offset=\"0%\" stopColor=\"#0064e1\" />\n\t\t\t\t\t\t\t\t\t\t\t\t<stop offset=\"40%\" stopColor=\"#0064e1\" />\n\t\t\t\t\t\t\t\t\t\t\t\t<stop offset=\"83%\" stopColor=\"#0073ee\" />\n\t\t\t\t\t\t\t\t\t\t\t\t<stop offset=\"100%\" stopColor=\"#0082fb\" />\n\t\t\t\t\t\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t\t\t\t\t\t\t<linearGradient\n\t\t\t\t\t\t\t\t\t\t\t\tid=\"meta-gradient-b\"\n\t\t\t\t\t\t\t\t\t\t\t\tx1=\"54.315%\"\n\t\t\t\t\t\t\t\t\t\t\t\tx2=\"54.315%\"\n\t\t\t\t\t\t\t\t\t\t\t\ty1=\"82.782%\"\n\t\t\t\t\t\t\t\t\t\t\t\ty2=\"39.307%\"\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<stop offset=\"0%\" stopColor=\"#0082fb\" />\n\t\t\t\t\t\t\t\t\t\t\t\t<stop offset=\"100%\" stopColor=\"#0064e0\" />\n\t\t\t\t\t\t\t\t\t\t\t</linearGradient>\n\t\t\t\t\t\t\t\t\t\t</defs>\n\t\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\t\tfill=\"#0081fb\"\n\t\t\t\t\t\t\t\t\t\t\td=\"M27.651 112.136c0 9.775 2.146 17.28 4.95 21.82 3.677 5.947 9.16 8.466 14.751 8.466 7.211 0 13.808-1.79 26.52-19.372 10.185-14.092 22.186-33.874 30.26-46.275l13.675-21.01c9.499-14.591 20.493-30.811 33.1-41.806C161.196 4.985 172.298 0 183.47 0c18.758 0 36.625 10.87 50.3 31.257C248.735 53.584 256 81.707 256 110.729c0 17.253-3.4 29.93-9.187 39.946-5.591 9.686-16.488 19.363-34.818 19.363v-27.616c15.695 0 19.612-14.422 19.612-30.927 0-23.52-5.484-49.623-17.564-68.273-8.574-13.23-19.684-21.313-31.907-21.313-13.22 0-23.859 9.97-35.815 27.75-6.356 9.445-12.882 20.956-20.208 33.944l-8.066 14.289c-16.203 28.728-20.307 35.271-28.408 46.07-14.2 18.91-26.324 26.076-42.287 26.076-18.935 0-30.91-8.2-38.325-20.556C2.973 139.413 0 126.202 0 111.148l27.651.988Z\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\t\tfill=\"url(#meta-gradient-a)\"\n\t\t\t\t\t\t\t\t\t\t\td=\"M21.802 33.206C34.48 13.666 52.774 0 73.757 0 85.91 0 97.99 3.597 110.605 13.897c13.798 11.261 28.505 29.805 46.853 60.368l6.58 10.967c15.881 26.459 24.917 40.07 30.205 46.49 6.802 8.243 11.565 10.7 17.752 10.7 15.695 0 19.612-14.422 19.612-30.927l24.393-.766c0 17.253-3.4 29.93-9.187 39.946-5.591 9.686-16.488 19.363-34.818 19.363-11.395 0-21.49-2.475-32.654-13.007-8.582-8.083-18.615-22.443-26.334-35.352l-22.96-38.352C118.528 64.08 107.96 49.73 101.845 43.23c-6.578-6.988-15.036-15.428-28.532-15.428-10.923 0-20.2 7.666-27.963 19.39L21.802 33.206Z\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\t\tfill=\"url(#meta-gradient-b)\"\n\t\t\t\t\t\t\t\t\t\t\td=\"M73.312 27.802c-10.923 0-20.2 7.666-27.963 19.39-10.976 16.568-17.698 41.245-17.698 64.944 0 9.775 2.146 17.28 4.95 21.82L9.027 149.482C2.973 139.413 0 126.202 0 111.148 0 83.772 7.514 55.24 21.802 33.206 34.48 13.666 52.774 0 73.757 0l-.445 27.802Z\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t\t\t<span className=\"sr-only\">Login with Meta</span>\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</Field>\n\t\t\t\t\t\t\t<FieldDescription className=\"text-center\">\n\t\t\t\t\t\t\t\tDon&apos;t have an account? <a href=\"#\">Sign up</a>\n\t\t\t\t\t\t\t</FieldDescription>\n\t\t\t\t\t\t</FieldGroup>\n\t\t\t\t\t</form>\n\t\t\t\t\t<div className=\"relative hidden bg-muted md:block\">\n\t\t\t\t\t\t<img\n\t\t\t\t\t\t\tsrc=\"/placeholder.svg\"\n\t\t\t\t\t\t\talt=\"\"\n\t\t\t\t\t\t\tclassName=\"absolute inset-0 h-full w-full object-cover dark:brightness-[0.3] dark:grayscale\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</CardContent>\n\t\t\t</Card>\n\t\t\t<FieldDescription className=\"px-6 text-center\">\n\t\t\t\tBy clicking continue, you agree to our <a href=\"#\">Terms of Service</a>{\" \"}\n\t\t\t\tand <a href=\"#\">Privacy Policy</a>.\n\t\t\t</FieldDescription>\n\t\t</div>\n\t);\n}\n","type":"registry:component","target":"components/login-form.tsx"}],"categories":["authentication","login"],"type":"registry:block"}