Skip to content

Commit dce45d9

Browse files
authored
Merge pull request #161 from ModusCreateOrg/ADE-200
Small improvements to Sign Up page
2 parents 6abb23e + 87e7b42 commit dce45d9

File tree

11 files changed

+377
-162
lines changed

11 files changed

+377
-162
lines changed

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"email-verification": {
3+
"title": "Email Verification",
4+
"message": "Please enter the verification code sent to your email address.",
5+
"success": "Your email has been successfully verified.",
6+
"code-resent": "A new verification code has been sent to your email."
7+
},
8+
"validation": {
9+
"required": "This field is required.",
10+
"numeric": "This field must contain only numbers.",
11+
"exact-length": "This field must be exactly {{length}} characters."
12+
},
13+
"error": {
14+
"no-email": "Email address not found. Please try again."
15+
},
16+
"label": {
17+
"verification-code": "Verification code",
18+
"email": "Email"
19+
},
20+
"confirm": "Confirm",
21+
"resend-code": "Request new code",
22+
"verification": {
23+
"loading": "Verifying your code...",
24+
"enter-code": "Please enter the verification code we sent to"
25+
},
26+
"confirm-account": {
27+
"title": "Confirm Account",
28+
"message": "Please enter the verification code we sent to",
29+
"submit": "Confirm Account"
30+
},
31+
"request-new-code": "Request new code",
32+
"back-to-login": "Back to Log in",
33+
"signin": "Log in",
34+
"logo-alt": "MEDReport AI Logo"
35+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"logo-alt": "MEDReport AI Logo",
3+
"app": {
4+
"name": "MEDReport AI"
5+
},
6+
"confirm": "Confirm",
7+
"cancel": "Cancel",
8+
"loading": "Loading...",
9+
"error": "Error",
10+
"success": "Success",
11+
"back": "Back",
12+
"next": "Next"
13+
}

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

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"or-signin-with": "Or sign in with",
4242
"submit": "Submit",
4343
"confirm": "Confirm",
44-
"resend-code": "Resend Code",
44+
"resend-code": "Request new code",
4545
"forgot-password": "Forgot Password?",
4646
"password-recovery": {
4747
"title": "Password Recovery",
@@ -62,6 +62,16 @@
6262
"success": "Email verified successfully!",
6363
"code-resent": "A new verification code has been sent to your email."
6464
},
65+
"confirm-account": {
66+
"title": "Confirm Account",
67+
"message": "Please enter the verification code we sent to",
68+
"submit": "Confirm Account"
69+
},
70+
"back-to-login": "Back to Log in",
71+
"registration": {
72+
"success": "Registration successful!",
73+
"verify-email": "Please verify your email to activate your account."
74+
},
6575
"oauth": {
6676
"processing": "Processing your login...",
6777
"redirecting": "Redirecting...",
@@ -80,5 +90,6 @@
8090
"uppercase": "Must contain at least one uppercase letter",
8191
"number": "Must contain at least one number",
8292
"special-char": "Must contain at least one special character"
83-
}
93+
},
94+
"please-fill-details": "Please fill in your personal details"
8495
}

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,10 @@
1616
},
1717
"signin": "Iniciar sesión",
1818
"signin.title": "Iniciar sesión",
19-
"signin.subtitle": "Iniciar sesión para acceder a MEDReport AI"
19+
"signin.subtitle": "Iniciar sesión para acceder a MEDReport AI",
20+
"registration": {
21+
"success": "¡Registro exitoso!",
22+
"verify-email": "Por favor verifica tu correo electrónico para activar tu cuenta."
23+
},
24+
"please-fill-details": "Por favor complete sus datos personales"
2025
}

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,10 @@
1616
},
1717
"signin": "Se connecter",
1818
"signin.title": "Se connecter",
19-
"signin.subtitle": "Connectez-vous pour accéder à MEDReport AI"
19+
"signin.subtitle": "Connectez-vous pour accéder à MEDReport AI",
20+
"registration": {
21+
"success": "Inscription réussie !",
22+
"verify-email": "Veuillez vérifier votre e-mail pour activer votre compte."
23+
},
24+
"please-fill-details": "Veuillez remplir vos coordonnées personnelles"
2025
}

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

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@
8282
&-icon {
8383
margin-right: 0.375rem;
8484
font-size: 1.1rem;
85+
color: var(--ion-color-medium);
8586
}
8687

87-
&-valid {
88+
&.valid {
8889
color: var(--ion-color-success);
8990
}
9091

@@ -93,4 +94,37 @@
9394
}
9495
}
9596
}
97+
98+
&__success {
99+
display: flex;
100+
flex-direction: column;
101+
align-items: center;
102+
justify-content: center;
103+
text-align: center;
104+
padding: 2rem 1.5rem;
105+
background-color: #f8fff8;
106+
border: 1px solid var(--ion-color-success);
107+
border-radius: 8px;
108+
margin: 1rem 0;
109+
110+
&-icon {
111+
font-size: 4rem;
112+
margin-bottom: 1rem;
113+
}
114+
115+
h3 {
116+
font-size: 1.4rem;
117+
font-weight: 600;
118+
margin: 0 0 0.75rem;
119+
color: var(--ion-color-success);
120+
}
121+
122+
p {
123+
font-size: 1rem;
124+
margin: 0;
125+
color: #666;
126+
line-height: 1.5;
127+
max-width: 320px;
128+
}
129+
}
96130
}

0 commit comments

Comments
 (0)