-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #770 from ShivanshPlays/main
Email otp signon user
- Loading branch information
Showing
16 changed files
with
747 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
"use client"; | ||
import { | ||
DropdownMenu, | ||
DropdownMenuContent, | ||
DropdownMenuItem, | ||
DropdownMenuLabel, | ||
DropdownMenuSeparator, | ||
DropdownMenuTrigger, | ||
} from "@/components/ui/dropdown-menu"; | ||
import { ChevronDown } from "lucide-react"; | ||
import Link from "next/link"; | ||
|
||
|
||
const Login = () => { | ||
return ( | ||
<div className="dark:bg-DarkGray "> | ||
{/* <div className="bg-slate-700 h-100 w-100">{switchCss ? "1" : "0"}</div> | ||
<Button onClick={() => setSwitchCss(!switchCss)}>Toggle CSS</Button> */} | ||
<div className="flex h-screen w-full items-center justify-center"> | ||
<div className="flex rounded-2xl justify-between shadow-xl shadow-black dark:shadow-Green relative lg:h-4/6 lg:w-2/4 border overflow-hidden"> | ||
{/* First background div */} | ||
<div | ||
className={`w-full h-full absolute left-60 bottom-[9.5rem] rotate-45 transition-opacity duration-1000 ease-in-out bg-customTeal dark:bg-gradient-to-r from-Green to-Yellow `} | ||
></div> | ||
<DropdownMenu> | ||
<DropdownMenuTrigger className="flex bg-customTeal dark:bg-Green rounded-full p-5 ml-20 mt-40 h-10 items-center justify-center"> | ||
Proceed as a | ||
<ChevronDown className="h-5 w-5" /> | ||
</DropdownMenuTrigger> | ||
<DropdownMenuContent> | ||
<DropdownMenuLabel className="bg-gray-200 dark:bg-DarkGray"> | ||
Role | ||
</DropdownMenuLabel> | ||
<DropdownMenuSeparator /> | ||
<Link href="/auth/customer"> | ||
<DropdownMenuItem>Customer</DropdownMenuItem> | ||
</Link> | ||
<Link href="/auth/seller"> | ||
<DropdownMenuItem>Seller</DropdownMenuItem> | ||
</Link> | ||
|
||
</DropdownMenuContent> | ||
</DropdownMenu> | ||
|
||
<div | ||
className={`text-white flex pt-10 px-4 flex-col w-2/4 z-10 h-full`} | ||
> | ||
<div className="text-7xl text-right font-handlee font-bold "> | ||
Welcome to EzyShop! | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Login; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.