-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change login buttons and general styles
- Loading branch information
1 parent
19800ac
commit 66e532e
Showing
13 changed files
with
148 additions
and
92 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
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
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,39 @@ | ||
import SingUpForm from "@components/organisms/login/signupForm"; | ||
import LoginForm from "@components/organisms/login/loginForm"; | ||
import { cn } from "@utils/styles"; | ||
import { useTranslation } from "@modules/i18n"; | ||
import { HTMLAttributes, useState } from "react"; | ||
|
||
export interface EmailLoginProps extends HTMLAttributes<HTMLDivElement> { | ||
|
||
} | ||
|
||
export function EmailLogin({ className }: EmailLoginProps) { | ||
const [isLogin, setIsLogin] = useState(true); | ||
const { t } = useTranslation(); | ||
|
||
|
||
return <div className={cn(className)}> | ||
<div className="tabs flex justify-center"> | ||
<a | ||
className={cn('tab tab-lg tab-bordered uppercase font-bold', isLogin ? "tab-active" : "")} | ||
onClick={() => setIsLogin(true)} | ||
> | ||
{t.login.login()} | ||
</a> | ||
<a | ||
className={cn('tab tab-lg tab-bordered uppercase font-bold', !isLogin ? "tab-active" : "")} | ||
onClick={() => setIsLogin(false)} | ||
> | ||
{t.login.sign_up()} | ||
</a> | ||
</div> | ||
<div className="w-full z-10 my-4"> | ||
{isLogin ? ( | ||
<LoginForm /> | ||
) : ( | ||
<SingUpForm /> | ||
)} | ||
</div> | ||
</div> | ||
} |
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
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
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
Oops, something went wrong.