Skip to content

Commit 2a0de49

Browse files
authored
Merge pull request #157 from ModusCreateOrg/ADE-200
[ADE-200] Sign Up UI Fixes
2 parents d6d102b + 7d6da9c commit 2a0de49

File tree

5 files changed

+191
-108
lines changed

5 files changed

+191
-108
lines changed

frontend/src/common/utils/i18n/resources/en/auth.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"password": "Password",
2121
"remember-me": "Remember me",
2222
"username": "Username",
23-
"email": "Email Address",
23+
"email": "Email",
2424
"first-name": "First Name",
2525
"last-name": "Last Name",
2626
"confirm-password": "Confirm Password",
@@ -30,6 +30,7 @@
3030
"signin.title": "Log in",
3131
"signin.subtitle": "Login to access MedReport AI",
3232
"signup": "Sign Up",
33+
"signup.button": "Create Account",
3334
"signout": "Sign Out",
3435
"loading": "Loading...",
3536
"signin.loading": "Signing in...",
Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,38 @@
11
.ls-signup-page {
2-
.ls-signup-page__container {
3-
max-width: 32rem;
2+
&__content {
3+
--padding-start: 0;
4+
--padding-end: 0;
5+
--padding-top: 0;
6+
--padding-bottom: 0;
7+
}
8+
9+
&__background {
10+
position: absolute;
11+
top: 0;
12+
left: 0;
13+
width: 100%;
414
height: 100%;
15+
background-size: cover;
16+
background-position: center;
17+
background-repeat: no-repeat;
18+
z-index: -1;
19+
}
20+
21+
&__container {
522
display: flex;
623
flex-direction: column;
7-
padding-top: 1rem;
24+
justify-content: center;
25+
align-items: center;
26+
min-height: 100%;
27+
padding: 1rem;
828
}
929

10-
.ls-signup-page__form {
30+
&__form {
1131
width: 100%;
32+
max-width: 400px;
33+
border-radius: 16px;
34+
background-color: white;
35+
box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
36+
overflow: hidden;
1237
}
1338
}

frontend/src/pages/Auth/SignUp/SignUpPage.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { IonContent, IonPage } from '@ionic/react';
2-
import { useTranslation } from 'react-i18next';
32

43
import './SignUpPage.scss';
54
import { PropsWithTestId } from 'common/components/types';
65
import ProgressProvider from 'common/providers/ProgressProvider';
7-
import Header from 'common/components/Header/Header';
86
import SignUpForm from './components/SignUpForm';
97
import Container from 'common/components/Content/Container';
8+
import splashBg from 'assets/Splash.png';
109

1110
/**
1211
* Properties for the `SignUpPage` component.
@@ -19,15 +18,15 @@ interface SignUpPageProps extends PropsWithTestId {}
1918
* @returns {JSX.Element} JSX
2019
*/
2120
const SignUpPage = ({ testid = 'page-signup' }: SignUpPageProps): JSX.Element => {
22-
const { t } = useTranslation();
23-
2421
return (
2522
<IonPage className="ls-signup-page" data-testid={testid}>
2623
<ProgressProvider>
27-
<Header title={t('signup', { ns: 'auth' })} />
28-
29-
<IonContent fullscreen className="ion-padding" scrollY={true}>
30-
<Container className="ls-signup-page__container" fixed>
24+
<IonContent fullscreen scrollY={true} className="ls-signup-page__content">
25+
<div
26+
className="ls-signup-page__background"
27+
style={{ backgroundImage: `url(${splashBg})` }}
28+
/>
29+
<Container className="ls-signup-page__container">
3130
<SignUpForm className="ls-signup-page__form" />
3231
</Container>
3332
</IonContent>

frontend/src/pages/Auth/SignUp/components/SignUpForm.scss

Lines changed: 68 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,95 @@
11
.ls-signup-form {
2-
padding: 1rem;
2+
width: 100%;
33

4-
.ls-signup-form__input {
5-
margin-bottom: 1rem;
4+
&__content {
5+
padding: 1.5rem;
66
}
77

8-
.ls-signup-form__button {
9-
margin-top: 1rem;
8+
&__title {
9+
font-size: 1.5rem;
10+
font-weight: 600;
11+
margin: 0 0 0.25rem;
12+
color: #333;
1013
}
1114

12-
&__password-guidelines {
13-
margin-top: -0.5rem;
15+
&__subtitle {
16+
font-size: 0.9rem;
17+
margin: 0 0 1.5rem;
18+
color: #666;
19+
}
20+
21+
&__input {
1422
margin-bottom: 1rem;
15-
font-size: 0.85rem;
1623

17-
&-header {
18-
margin-bottom: 0.25rem;
24+
ion-input {
25+
--border-radius: 8px;
26+
--border-width: 1px;
27+
--border-color: #d1d1d1;
28+
--padding-start: 12px;
29+
--padding-end: 12px;
30+
--padding-top: 12px;
31+
--padding-bottom: 12px;
32+
--background: #fff;
33+
}
34+
}
35+
36+
&__button {
37+
margin-top: 1.5rem;
38+
39+
--border-radius: 8px;
40+
--background: #734bff;
41+
--background-activated: #5a3acc;
42+
--background-focused: #5a3acc;
43+
--background-hover: #5a3acc;
44+
--color: white;
45+
46+
font-weight: 500;
47+
height: 48px;
48+
text-transform: none;
49+
50+
&[disabled] {
51+
--background: #e6e6e6;
52+
--color: #a0a0a0;
53+
54+
opacity: 1;
55+
}
56+
}
57+
58+
&__login-link {
59+
text-align: center;
60+
margin-top: 1.25rem;
61+
font-size: 0.9rem;
62+
63+
a {
64+
color: #734bff;
1965
font-weight: 500;
66+
text-decoration: none;
2067
}
68+
}
69+
70+
&__password-guidelines {
71+
display: flex;
72+
flex-direction: column;
73+
gap: 0.5rem;
74+
margin-top: -0.25rem;
75+
margin-bottom: 1rem;
76+
font-size: 0.85rem;
2177

2278
&-item {
2379
display: flex;
2480
align-items: center;
25-
margin-bottom: 0.125rem;
2681

2782
&-icon {
2883
margin-right: 0.375rem;
84+
font-size: 1.1rem;
2985
}
3086

3187
&-valid {
3288
color: var(--ion-color-success);
3389
}
3490

3591
&-invalid {
36-
color: var(--ion-color-medium);
92+
color: #c5c5c5;
3793
}
3894
}
3995
}

0 commit comments

Comments
 (0)