From 44078b4f9eed0e3a9ae76cf91a5bb61bde70528c Mon Sep 17 00:00:00 2001 From: Sukma Gladys Date: Fri, 13 Sep 2024 10:11:52 +0700 Subject: [PATCH] fix: background and component style --- apps/frontend/src/index.css | 4 ++ .../src/routes/forgot-password/index.lazy.tsx | 44 ++++++++----------- .../routes/forgot-password/verify.lazy.tsx | 44 ++++++++----------- 3 files changed, 40 insertions(+), 52 deletions(-) diff --git a/apps/frontend/src/index.css b/apps/frontend/src/index.css index 99a7b0c..6f4ed59 100644 --- a/apps/frontend/src/index.css +++ b/apps/frontend/src/index.css @@ -66,4 +66,8 @@ body { @apply bg-background text-foreground; } +} + +:root { + --primary-color: #2555FF } \ No newline at end of file diff --git a/apps/frontend/src/routes/forgot-password/index.lazy.tsx b/apps/frontend/src/routes/forgot-password/index.lazy.tsx index bc29d01..e03c549 100644 --- a/apps/frontend/src/routes/forgot-password/index.lazy.tsx +++ b/apps/frontend/src/routes/forgot-password/index.lazy.tsx @@ -1,7 +1,7 @@ import { createLazyFileRoute } from "@tanstack/react-router"; import { TbArrowNarrowRight } from "react-icons/tb"; import { IoIosArrowUp } from "react-icons/io"; -import { HiOutlineGlobeAlt } from "react-icons/hi"; +import { HiOutlineGlobeAlt } from "react-icons/hi"; import { useForm, Control, FieldError } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; import { z } from "zod"; @@ -87,11 +87,11 @@ const CustomDropdownMenu: React.FC = ({ @@ -159,20 +159,18 @@ export function ForgotPasswordForm() { return (
-
-
-
-
-
-
-
+
+
+
+ + + +
-
+
{/* Top */}
Amati
@@ -180,8 +178,7 @@ export function ForgotPasswordForm() {

Forgot Password

@@ -207,12 +204,7 @@ export function ForgotPasswordForm() {
@@ -142,7 +142,7 @@ export function ResetPasswordForm() { const urlParams = new URLSearchParams(window.location.search); const tokenFromURL = urlParams.get("token"); setToken(tokenFromURL); - }, []); + }, []); // Function to handle form submission const onSubmit = async (values: FormSchema) => { @@ -195,20 +195,18 @@ export function ResetPasswordForm() { return (
-
-
-
-
-
-
-
+
+
+
+ + + +
-
+
{/* Top */}
Amati
@@ -216,8 +214,7 @@ export function ResetPasswordForm() {

Change Password

@@ -249,12 +246,7 @@ export function ResetPasswordForm() {