-
@@ -125,13 +125,13 @@ export default function LoginPage() {
onChange={(e) => setPassword(e.target.value)}
placeholder="••••••••"
disabled={loginMutation.isPending}
- className="w-full px-4 py-2.5 pr-12 border border-gray-300 dark:border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent bg-white dark:bg-gray-800 text-gray-900 dark:text-white placeholder:text-gray-400 dark:placeholder:text-gray-500 disabled:bg-gray-100 dark:disabled:bg-gray-700 disabled:cursor-not-allowed"
+ className="w-full px-4 py-2.5 pr-12 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent bg-white text-gray-900 placeholder:text-gray-400 disabled:bg-gray-100 disabled:cursor-not-allowed"
required
/>
@@ -141,47 +141,47 @@ export default function LoginPage() {
-
+
Make sure your GitHub email is{' '}
-
+
set to public
{' '}
for GitHub sign in to work.
-
+
Don't have an account?{' '}
-
+
Sign up
-
+
By signing in, you agree to our Terms of Service and Privacy Policy
diff --git a/apps/gacha/src/app/_components/form/modal-form-login.tsx b/apps/gacha/src/app/_components/form/modal-form-login.tsx
index e81ee8b..a290a23 100644
--- a/apps/gacha/src/app/_components/form/modal-form-login.tsx
+++ b/apps/gacha/src/app/_components/form/modal-form-login.tsx
@@ -1,8 +1,8 @@
-import { Button } from '@imphnen-frontend-service/ui/atoms';
+import { useState } from 'react';
import { Modal } from '@imphnen-frontend-service/ui/molecules';
-import { ControlledInputField } from '@imphnen-frontend-service/ui/organisms';
import { useLogin } from '../../_hooks/use-login';
import ModalFormVerifyEmail from './modal-form-verify-email';
+import { Icon } from '@iconify/react';
interface IModalFormLogin {
isOpen: boolean;
@@ -29,61 +29,101 @@ const ModalFormLogin = ({
emailToVerify,
} = useLogin();
+ const [showPassword, setShowPassword] = useState(false);
+
+ const email = form.watch('email');
+ const password = form.watch('password');
+
return (
<>
-
-
-
- Login
-
+
+
+
+ Welcome Back
+
+
+ Sign in to IMPHNEN Gacha
+
+
+
+
+
+
+ Password
+
+
+
+
+
+
+
+ {form.formState.errors.password && (
+
{form.formState.errors.password.message}
+ )}
+
+
+
-
Belum punya akun?
-
+ {isLoading ? 'Signing in...' : 'Sign in'}
+
+
+
+
+ Don't have an account?{' '}
+
+
diff --git a/apps/hackathon/src/app/auth/login/page.tsx b/apps/hackathon/src/app/auth/login/page.tsx
index 9a15363..9f962cf 100644
--- a/apps/hackathon/src/app/auth/login/page.tsx
+++ b/apps/hackathon/src/app/auth/login/page.tsx
@@ -81,12 +81,12 @@ export default function LoginPage() {
};
return (
-
-
+
+
-
+
Welcome Back
-
+
Sign in to join or create your hackathon team
{error && (
-
-
{error}
+
)}
@@ -113,7 +113,7 @@ export default function LoginPage() {
Email
@@ -124,7 +124,7 @@ export default function LoginPage() {
onChange={(e) => setEmail(e.target.value)}
placeholder="your@email.com"
disabled={loginMutation.isPending}
- className="w-full px-4 py-2.5 border border-gray-300 dark:border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent bg-white dark:bg-gray-800 text-gray-900 dark:text-white placeholder:text-gray-400 dark:placeholder:text-gray-500 disabled:bg-gray-100 dark:disabled:bg-gray-700 disabled:cursor-not-allowed"
+ className="w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent bg-white text-gray-900 placeholder:text-gray-400 disabled:bg-gray-100 disabled:cursor-not-allowed"
required
/>
@@ -133,13 +133,13 @@ export default function LoginPage() {
Password
Forgot password?
@@ -152,13 +152,13 @@ export default function LoginPage() {
onChange={(e) => setPassword(e.target.value)}
placeholder="••••••••"
disabled={loginMutation.isPending}
- className="w-full px-4 py-2.5 pr-12 border border-gray-300 dark:border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent bg-white dark:bg-gray-800 text-gray-900 dark:text-white placeholder:text-gray-400 dark:placeholder:text-gray-500 disabled:bg-gray-100 dark:disabled:bg-gray-700 disabled:cursor-not-allowed"
+ className="w-full px-4 py-2.5 pr-12 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent bg-white text-gray-900 placeholder:text-gray-400 disabled:bg-gray-100 disabled:cursor-not-allowed"
required
/>
@@ -168,25 +168,25 @@ export default function LoginPage() {
-
+
Make sure your GitHub email is{' '}
set to public
{' '}
@@ -208,11 +208,11 @@ export default function LoginPage() {
-
+
Don't have an account?{' '}
Sign up
@@ -220,7 +220,7 @@ export default function LoginPage() {
-
+
By signing in, you agree to our Terms of Service and Privacy Policy
diff --git a/apps/qrcampaign/src/app/auth/login/page.tsx b/apps/qrcampaign/src/app/auth/login/page.tsx
index fc7c521..8e852f2 100644
--- a/apps/qrcampaign/src/app/auth/login/page.tsx
+++ b/apps/qrcampaign/src/app/auth/login/page.tsx
@@ -64,26 +64,26 @@ export default function LoginPage() {
};
return (
-
-
+
+
-
+
Welcome Back
-
+
Sign in to QR Campaign Manager
{error && (
-