{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "center-signin-card-with-email-only", "type": "registry:block", "title": "Center Signin Card with Email Only", "description": "A centered sign-in card with email input only", "dependencies": [ "lucide-react" ], "registryDependencies": [ "form", "button", "input", "card" ], "files": [ { "path": "registry/default/blocks/signin-signup/center-signin-card-with-email-only.tsx", "content": "'use client'\r\n\r\nimport {\r\n Card,\r\n CardContent,\r\n CardFooter,\r\n CardHeader,\r\n} from '@/registry/default/ui/card'\r\nimport { z } from 'zod'\r\nimport { Button } from '@/registry/default/ui/button'\r\nimport {\r\n Form,\r\n FormControl,\r\n FormDescription,\r\n FormField,\r\n FormItem,\r\n FormLabel,\r\n FormMessage,\r\n} from '@/registry/default/ui/form'\r\nimport { Input } from '@/registry/default/ui/input'\r\nimport { useForm } from 'react-hook-form'\r\nimport { zodResolver } from '@hookform/resolvers/zod'\r\nimport { MailIcon } from 'lucide-react'\r\n\r\nconst formSchema = z.object({\r\n email: z\r\n .string()\r\n .email({\r\n message: 'Invalid email address',\r\n })\r\n .min(1, {\r\n message: 'Email is required',\r\n }),\r\n})\r\n\r\nexport default function Signin() {\r\n const form = useForm>({\r\n resolver: zodResolver(formSchema),\r\n defaultValues: {\r\n email: '',\r\n },\r\n })\r\n\r\n const onSubmit = async (data: z.infer) => {\r\n console.log('Form submitted:', data)\r\n // Handle form submission logic here\r\n }\r\n\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n

\r\n Welcome to Launch MVP Fast\r\n

\r\n

\r\n Enter your email below to login to your account\r\n

\r\n
\r\n \r\n
\r\n \r\n (\r\n \r\n Email Address\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n We will send you a magic link to\r\n your email address\r\n \r\n \r\n
\r\n )}\r\n />\r\n \r\n Continue with Email\r\n \r\n \r\n \r\n\r\n
\r\n \r\n Or\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Continue with Google\r\n \r\n \r\n \r\n \r\n \r\n Continue with Github\r\n \r\n
\r\n
\r\n \r\n

\r\n Want to create an account?{' '}\r\n \r\n Register\r\n \r\n

\r\n
\r\n
\r\n\r\n

\r\n By clicking continue, you agree to our{' '}\r\n \r\n Terms of Service\r\n {' '}\r\n and{' '}\r\n \r\n Privacy Policy\r\n \r\n .\r\n

\r\n
\r\n )\r\n}\r\n", "type": "registry:block", "target": "components/auth/signin.tsx" } ] }