From 46459ed4ab800570f1507bdfb57768ac0cd48d85 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 7 May 2024 17:22:02 +0800 Subject: [PATCH] Fix styling on web reset password page --- .../components/templates/ProfileLayout.tsx | 3 +- .../templates/auth/EmailResetPassword.tsx | 29 ++++++++++++------- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/packages/web/components/templates/ProfileLayout.tsx b/packages/web/components/templates/ProfileLayout.tsx index af9fd04e9..d21a42e30 100644 --- a/packages/web/components/templates/ProfileLayout.tsx +++ b/packages/web/components/templates/ProfileLayout.tsx @@ -15,7 +15,8 @@ export function ProfileLayout(props: ProfileLayoutProps): JSX.Element { distribution="center" css={{ height: '100vh', - bg: '$omnivoreYellow', + color: '#898989', + background: '#2A2A2A', }} > {props.children} diff --git a/packages/web/components/templates/auth/EmailResetPassword.tsx b/packages/web/components/templates/auth/EmailResetPassword.tsx index 10f378c8b..c6fd89b37 100644 --- a/packages/web/components/templates/auth/EmailResetPassword.tsx +++ b/packages/web/components/templates/auth/EmailResetPassword.tsx @@ -13,8 +13,9 @@ export function EmailResetPassword(): JSX.Element { const router = useRouter() const [token, setToken] = useState(undefined) const [password, setPassword] = useState('') - const [errorMessage, setErrorMessage] = - useState(undefined) + const [errorMessage, setErrorMessage] = useState( + undefined + ) useEffect(() => { if (!router.isReady) return @@ -39,42 +40,48 @@ export function EmailResetPassword(): JSX.Element { alignment="center" css={{ padding: '16px', - background: 'white', minWidth: '340px', width: '70vw', maxWidth: '576px', borderRadius: '8px', - border: '1px solid #3D3D3D', - boxShadow: '#B1B1B1 9px 9px 9px -9px', + background: '#343434', + border: '1px solid #6A6968', + boxShadow: '0px 4px 4px 0px rgba(0, 0, 0, 0.15)', }} > - - Enter new password + + + Enter new password + { e.preventDefault() setPassword(e.target.value) }} /> - + (Password must be at least 8 chars) - + {errorMessage && {errorMessage}} -