Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | "use client"; import React, { useState } from "react"; import { Icon } from "@/components/ui/icons"; import { Button, Input } from "@/components/ui"; const Login = () => { const [dropdown, setDropdown] = useState(false); // Custom className to match existing design system const inputClassName = "rounded-md border-gray-3 dark:border-gray-600 bg-gray-1 dark:bg-gray-700 placeholder:text-dark-5 dark:placeholder:text-gray-400 dark:text-gray-200 py-2.5 px-5 focus:shadow-input"; return ( <div className="bg-white dark:bg-gray-800 shadow-1 rounded-[10px]"> <div onClick={() => setDropdown(!dropdown)} className={`cursor-pointer flex items-center gap-0.5 py-5 px-5.5 dark:text-gray-300 ${ dropdown && "border-b border-gray-3 dark:border-gray-700" }`} > Returning customer? <span className="flex items-center gap-2.5 pl-1 font-medium text-dark dark:text-gray-100"> Click here to login <Icon name="chevron-down" className={`${dropdown && "rotate-180"} fill-current ease-out duration-200`} size={22} /> </span> </div> {/* <!-- dropdown menu --> */} <div className={`${ dropdown ? "block" : "hidden" } pt-7.5 pb-8.5 px-4 sm:px-8.5`} > <p className="text-custom-sm mb-6 dark:text-gray-300"> If you didn't Logged in, Please Log in first. </p> <div className="mb-5"> <Input label="Username or Email" type="text" name="name" id="name" fullWidth className={inputClassName} /> </div> <div className="mb-5"> <Input label="Password" type="password" name="password" id="password" autoComplete="on" fullWidth className={inputClassName} /> </div> <Button type="submit" variant="primary" size="md" className="py-3 px-10.5" > Login </Button> </div> </div> ); }; export default Login; |