🚚 separating forms ui and logic

separate the form from other elements on the signup and login cards
This commit is contained in:
2025-08-05 10:40:21 +07:00
parent 77857d5575
commit fcebe9708d
8 changed files with 74 additions and 38 deletions

View File

@ -1,30 +0,0 @@
"use client";
import { Card, CardBody, CardHeader, Input } from "@heroui/react";
import React from "react";
const LoginForm = () => {
return (
<Card
className="min-w-[30vw]"
shadow="none"
classNames={{ base: "outline-1 outline-neutral-400" }}
>
<CardHeader className="mt-2 justify-center">
<h1 className="text-2xl font-medium text-center">Welcome Back</h1>
</CardHeader>
<CardBody className="px-4">
<Input
label="Email"
variant="bordered"
classNames={{
input: "focus:outline-none text-md",
label: "mb-1",
}}
/>
</CardBody>
</Card>
);
};
export default LoginForm;