Redesign Login page, Add Theme toggle button and logo in login card
This commit is contained in:
@@ -8,9 +8,9 @@ export const metadata: Metadata = {
|
||||
export default function SignIn() {
|
||||
return (
|
||||
<div className="flex h-svh flex-col items-center justify-center">
|
||||
<div className="shadow-3xl m-auto flex w-1/2 flex-col items-center justify-center rounded-2xl bg-white dark:bg-gray-dark dark:shadow-card">
|
||||
<div className="shadow-3xl px-8 m-auto flex w-4/12 flex-col items-center justify-center rounded-2xl bg-white dark:bg-gray-dark dark:shadow-card">
|
||||
<div className="relative flex w-full flex-wrap items-center justify-center">
|
||||
<div className="w-full xl:w-1/2">
|
||||
<div className="w-full">
|
||||
<div className="w-full p-4 sm:p-12.5 xl:p-15">
|
||||
<Signin />
|
||||
</div>
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
"use client";
|
||||
import { Logo } from "@/components/logo";
|
||||
import SigninWithPassword from "../SigninWithPassword";
|
||||
|
||||
export default function Signin() {
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
<div className="flex items-center justify-center my-10">
|
||||
<Logo />
|
||||
</div>
|
||||
<SigninWithPassword />
|
||||
</div>
|
||||
</>
|
||||
|
||||
@@ -28,8 +28,8 @@ export default function SigninWithPassword() {
|
||||
});
|
||||
};
|
||||
return (
|
||||
<form onSubmit={handleSubmit(onSubmit)}>
|
||||
<div className="absolute right-4 top-4">
|
||||
<form onSubmit={handleSubmit(onSubmit)} className="mt-5">
|
||||
<div className="absolute top-7 right-0">
|
||||
<ThemeToggleSwitch />
|
||||
</div>
|
||||
<InputGroup
|
||||
|
||||
Reference in New Issue
Block a user