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() {
|
export default function SignIn() {
|
||||||
return (
|
return (
|
||||||
<div className="flex h-svh flex-col items-center justify-center">
|
<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="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">
|
<div className="w-full p-4 sm:p-12.5 xl:p-15">
|
||||||
<Signin />
|
<Signin />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
|
"use client";
|
||||||
|
import { Logo } from "@/components/logo";
|
||||||
import SigninWithPassword from "../SigninWithPassword";
|
import SigninWithPassword from "../SigninWithPassword";
|
||||||
|
|
||||||
export default function Signin() {
|
export default function Signin() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div>
|
<div>
|
||||||
|
<div className="flex items-center justify-center my-10">
|
||||||
|
<Logo />
|
||||||
|
</div>
|
||||||
<SigninWithPassword />
|
<SigninWithPassword />
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -28,8 +28,8 @@ export default function SigninWithPassword() {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<form onSubmit={handleSubmit(onSubmit)}>
|
<form onSubmit={handleSubmit(onSubmit)} className="mt-5">
|
||||||
<div className="absolute right-4 top-4">
|
<div className="absolute top-7 right-0">
|
||||||
<ThemeToggleSwitch />
|
<ThemeToggleSwitch />
|
||||||
</div>
|
</div>
|
||||||
<InputGroup
|
<InputGroup
|
||||||
|
|||||||
Reference in New Issue
Block a user