From 7f5948724bc46203368787bf06034a27dabcc92c Mon Sep 17 00:00:00 2001 From: maulanasdqn Date: Fri, 10 Apr 2026 14:44:32 +0700 Subject: [PATCH] fix: remove dark mode from all login UIs, redesign gacha login modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Stripped all dark: classes from hackathon, dimentorin, backoffice, and qrcampaign login pages — light mode only - Rewrote gacha login modal to match the unified clean design: clean typography, native inputs with eye toggle, proper spacing, removed old IMPHNEN logo header and Indonesian text Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/app/(public)/auth/login/page.tsx | 26 ++-- apps/dimentorin/src/app/auth/login/page.tsx | 46 +++--- .../app/_components/form/modal-form-login.tsx | 132 ++++++++++++------ apps/hackathon/src/app/auth/login/page.tsx | 46 +++--- apps/qrcampaign/src/app/auth/login/page.tsx | 44 +++--- 5 files changed, 167 insertions(+), 127 deletions(-) diff --git a/apps/backoffice/src/app/(public)/auth/login/page.tsx b/apps/backoffice/src/app/(public)/auth/login/page.tsx index 3955cb3..687d9f4 100644 --- a/apps/backoffice/src/app/(public)/auth/login/page.tsx +++ b/apps/backoffice/src/app/(public)/auth/login/page.tsx @@ -29,26 +29,26 @@ export default function LoginPage() { }; return ( -
-
+
+
-

+

Welcome Back

-

+

Sign in to IMPHNEN Backoffice

{error && ( -
-

{error}

+
+

{error}

)}
-
-
@@ -77,13 +77,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 /> @@ -93,14 +93,14 @@ export default function LoginPage() {
-

+

By signing in, you agree to our Terms of Service and Privacy Policy

diff --git a/apps/dimentorin/src/app/auth/login/page.tsx b/apps/dimentorin/src/app/auth/login/page.tsx index 97eaaaf..a6398f8 100644 --- a/apps/dimentorin/src/app/auth/login/page.tsx +++ b/apps/dimentorin/src/app/auth/login/page.tsx @@ -64,12 +64,12 @@ export default function LoginPage() { }; return ( -
-
+
+
-

+

Welcome Back

-

+

Sign in to the mentoring platform

{error && ( -
-

{error}

+
+

{error}

)}
-
-
@@ -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() {
-
- OR -
+
+ OR +
-

+

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 +

+
- - -

- -

-
+ +
+
+ + +
+
+ + +
+ {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}

+
+

{error}

)} @@ -113,7 +113,7 @@ export default function LoginPage() {
@@ -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() {
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() {
-
- +
+ OR -
+
-

+

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 && ( -
-

{error}

+
+

{error}

)}
-
-
@@ -115,13 +115,13 @@ export default function LoginPage() { onChange={(e) => setPassword(e.target.value)} placeholder="••••••••" disabled={isSubmitting} - 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 /> @@ -131,47 +131,47 @@ export default function LoginPage() {
-
- OR -
+
+ OR +
-

+

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