From 35c1ba57c2d5938d02cde2f368282170ecdb3fc0 Mon Sep 17 00:00:00 2001 From: shadcn Date: Fri, 18 Oct 2024 00:34:03 +0400 Subject: [PATCH] feat: add login-01 to v0 --- apps/www/__registry__/default/v0/login-01.tsx | 70 +++++++++++++++++++ apps/www/__registry__/index.tsx | 24 +++++++ .../www/__registry__/new-york/v0/login-01.tsx | 70 +++++++++++++++++++ .../public/r/styles/default/v0-login-01.json | 19 +++++ .../public/r/styles/new-york/v0-login-01.json | 19 +++++ apps/www/registry/default/v0/login-01.tsx | 70 +++++++++++++++++++ apps/www/registry/new-york/v0/login-01.tsx | 70 +++++++++++++++++++ apps/www/registry/registry-v0.ts | 2 +- 8 files changed, 343 insertions(+), 1 deletion(-) create mode 100644 apps/www/__registry__/default/v0/login-01.tsx create mode 100644 apps/www/__registry__/new-york/v0/login-01.tsx create mode 100644 apps/www/public/r/styles/default/v0-login-01.json create mode 100644 apps/www/public/r/styles/new-york/v0-login-01.json create mode 100644 apps/www/registry/default/v0/login-01.tsx create mode 100644 apps/www/registry/new-york/v0/login-01.tsx diff --git a/apps/www/__registry__/default/v0/login-01.tsx b/apps/www/__registry__/default/v0/login-01.tsx new file mode 100644 index 0000000000..c63ae1412f --- /dev/null +++ b/apps/www/__registry__/default/v0/login-01.tsx @@ -0,0 +1,70 @@ +import Link from "next/link" + +import { Button } from "@/registry/default/ui/button" +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/registry/default/ui/card" +import { Input } from "@/registry/default/ui/input" +import { Label } from "@/registry/default/ui/label" + +export const description = "A simple login form." + +export const iframeHeight = "870px" + +export const containerClassName = "w-full h-full" + +export default function Page() { + return ( +
+ + + Login + + Enter your email below to login to your account + + + +
+
+ + +
+
+
+ + + Forgot your password? + +
+ +
+ + +
+
+ Don't have an account?{" "} + + Sign up + +
+
+
+
+ ) +} diff --git a/apps/www/__registry__/index.tsx b/apps/www/__registry__/index.tsx index ded905f7ed..35bb5e4c9f 100644 --- a/apps/www/__registry__/index.tsx +++ b/apps/www/__registry__/index.tsx @@ -3749,6 +3749,18 @@ export const Index: Record = { subcategory: "Sidebars", chunks: [] }, + "v0-login-01": { + name: "v0-login-01", + description: "A simple login form.", + type: "registry:block", + registryDependencies: ["button","card","input","label"], + files: ["registry/new-york/v0/login-01.tsx"], + component: React.lazy(() => import("@/registry/new-york/v0/login-01.tsx")), + source: "__registry__/new-york/v0/login-01.tsx", + category: "Authentication", + subcategory: "Login", + chunks: [] + }, }, "default": { "accordion": { name: "accordion", @@ -7494,5 +7506,17 @@ export const Index: Record = { subcategory: "Sidebars", chunks: [] }, + "v0-login-01": { + name: "v0-login-01", + description: "A simple login form.", + type: "registry:block", + registryDependencies: ["button","card","input","label"], + files: ["registry/default/v0/login-01.tsx"], + component: React.lazy(() => import("@/registry/default/v0/login-01.tsx")), + source: "__registry__/default/v0/login-01.tsx", + category: "Authentication", + subcategory: "Login", + chunks: [] + }, }, } diff --git a/apps/www/__registry__/new-york/v0/login-01.tsx b/apps/www/__registry__/new-york/v0/login-01.tsx new file mode 100644 index 0000000000..17232fa145 --- /dev/null +++ b/apps/www/__registry__/new-york/v0/login-01.tsx @@ -0,0 +1,70 @@ +import Link from "next/link" + +import { Button } from "@/registry/new-york/ui/button" +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/registry/new-york/ui/card" +import { Input } from "@/registry/new-york/ui/input" +import { Label } from "@/registry/new-york/ui/label" + +export const description = "A simple login form." + +export const iframeHeight = "870px" + +export const containerClassName = "w-full h-full" + +export default function Page() { + return ( +
+ + + Login + + Enter your email below to login to your account + + + +
+
+ + +
+
+
+ + + Forgot your password? + +
+ +
+ + +
+
+ Don't have an account?{" "} + + Sign up + +
+
+
+
+ ) +} diff --git a/apps/www/public/r/styles/default/v0-login-01.json b/apps/www/public/r/styles/default/v0-login-01.json new file mode 100644 index 0000000000..77e2af719a --- /dev/null +++ b/apps/www/public/r/styles/default/v0-login-01.json @@ -0,0 +1,19 @@ +{ + "name": "v0-login-01", + "type": "registry:block", + "description": "A simple login form.", + "registryDependencies": [ + "button", + "card", + "input", + "label" + ], + "files": [ + { + "path": "v0/login-01.tsx", + "content": "import Link from \"next/link\"\n\nimport { Button } from \"@/components/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\"\nimport { Input } from \"@/components/ui/input\"\nimport { Label } from \"@/components/ui/label\"\n\nexport default function Page() {\n return (\n
\n \n \n Login\n \n Enter your email below to login to your account\n \n \n \n
\n
\n \n \n
\n
\n
\n \n \n Forgot your password?\n \n
\n \n
\n \n \n
\n
\n Don't have an account?{\" \"}\n \n Sign up\n \n
\n
\n
\n
\n )\n}\n", + "type": "registry:block", + "target": "components/login-01.tsx" + } + ] +} \ No newline at end of file diff --git a/apps/www/public/r/styles/new-york/v0-login-01.json b/apps/www/public/r/styles/new-york/v0-login-01.json new file mode 100644 index 0000000000..77e2af719a --- /dev/null +++ b/apps/www/public/r/styles/new-york/v0-login-01.json @@ -0,0 +1,19 @@ +{ + "name": "v0-login-01", + "type": "registry:block", + "description": "A simple login form.", + "registryDependencies": [ + "button", + "card", + "input", + "label" + ], + "files": [ + { + "path": "v0/login-01.tsx", + "content": "import Link from \"next/link\"\n\nimport { Button } from \"@/components/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\"\nimport { Input } from \"@/components/ui/input\"\nimport { Label } from \"@/components/ui/label\"\n\nexport default function Page() {\n return (\n
\n \n \n Login\n \n Enter your email below to login to your account\n \n \n \n
\n
\n \n \n
\n
\n
\n \n \n Forgot your password?\n \n
\n \n
\n \n \n
\n
\n Don't have an account?{\" \"}\n \n Sign up\n \n
\n
\n
\n
\n )\n}\n", + "type": "registry:block", + "target": "components/login-01.tsx" + } + ] +} \ No newline at end of file diff --git a/apps/www/registry/default/v0/login-01.tsx b/apps/www/registry/default/v0/login-01.tsx new file mode 100644 index 0000000000..c63ae1412f --- /dev/null +++ b/apps/www/registry/default/v0/login-01.tsx @@ -0,0 +1,70 @@ +import Link from "next/link" + +import { Button } from "@/registry/default/ui/button" +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/registry/default/ui/card" +import { Input } from "@/registry/default/ui/input" +import { Label } from "@/registry/default/ui/label" + +export const description = "A simple login form." + +export const iframeHeight = "870px" + +export const containerClassName = "w-full h-full" + +export default function Page() { + return ( +
+ + + Login + + Enter your email below to login to your account + + + +
+
+ + +
+
+
+ + + Forgot your password? + +
+ +
+ + +
+
+ Don't have an account?{" "} + + Sign up + +
+
+
+
+ ) +} diff --git a/apps/www/registry/new-york/v0/login-01.tsx b/apps/www/registry/new-york/v0/login-01.tsx new file mode 100644 index 0000000000..17232fa145 --- /dev/null +++ b/apps/www/registry/new-york/v0/login-01.tsx @@ -0,0 +1,70 @@ +import Link from "next/link" + +import { Button } from "@/registry/new-york/ui/button" +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/registry/new-york/ui/card" +import { Input } from "@/registry/new-york/ui/input" +import { Label } from "@/registry/new-york/ui/label" + +export const description = "A simple login form." + +export const iframeHeight = "870px" + +export const containerClassName = "w-full h-full" + +export default function Page() { + return ( +
+ + + Login + + Enter your email below to login to your account + + + +
+
+ + +
+
+
+ + + Forgot your password? + +
+ +
+ + +
+
+ Don't have an account?{" "} + + Sign up + +
+
+
+
+ ) +} diff --git a/apps/www/registry/registry-v0.ts b/apps/www/registry/registry-v0.ts index 24aec59d0c..fb2f2ed3c9 100644 --- a/apps/www/registry/registry-v0.ts +++ b/apps/www/registry/registry-v0.ts @@ -268,7 +268,7 @@ export const v0: Registry = [ subcategory: "Sidebars", }, { - name: "login-01", + name: "v0-login-01", type: "registry:block", registryDependencies: ["button", "card", "input", "label"], files: [