fix bug 1207

uat
HOANGLAOTA 1 year ago
parent 2a5a6acdcb
commit 8aa3da75b3
  1. 2
      public/assets/css/login.css
  2. 4
      public/assets/css/responsive.css
  3. BIN
      public/assets/images/avatar_female.png
  4. BIN
      public/assets/images/avatar_male.png
  5. 2
      src/_containers/HomePage/index.js
  6. 14
      src/_containers/LoginPage/components/Login.scss
  7. 13
      src/_containers/RegisterPage/CreateAccount/index.js
  8. 10
      src/_containers/RegisterPage/CreateAccount/index.scss

@ -179,7 +179,7 @@ h2.title {
padding: 0 10px; padding: 0 10px;
} }
.login-form-container { .login-form-container {
padding: 100px 16px 40px; padding: 0px 16px 40px;
} }
.res-form-container { .res-form-container {
padding: 100px 10px 40px; padding: 100px 10px 40px;

@ -2713,9 +2713,9 @@
/* end region avatar rank */ /* end region avatar rank */
.responsive_small_screen_margin_login { /* .responsive_small_screen_margin_login {
margin-top: -30px !important; margin-top: -30px !important;
} } */
.register_account_type .account_content { .register_account_type .account_content {
margin-bottom: 0 !important; margin-bottom: 0 !important;

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

@ -84,7 +84,7 @@ export default function HomePage() {
<div className="box-info-agency box-info"> <div className="box-info-agency box-info">
<div className="avatar-agency"> <div className="avatar-agency">
<img <img
src="https://www.svgrepo.com/show/384674/account-avatar-profile-user-11.svg" src={authentication?.gender === 'male' ? "/assets/images/avatar_male.png" : "/assets/images/avatar_female.png"}
alt="Logo Sun-E" alt="Logo Sun-E"
/> />
</div> </div>

@ -1,3 +1,5 @@
@import "/src/_styles/mixin";
$green: #00b9b7; $green: #00b9b7;
$bg-color: #f3ffff; $bg-color: #f3ffff;
$bg-fb: #1b75bb; $bg-fb: #1b75bb;
@ -15,14 +17,18 @@ $loading-color: #f8f8f8;
margin-top: 50px; margin-top: 50px;
max-width: 450px; max-width: 450px;
@media screen and (max-height: 800px) { // @media screen and (max-height: 800px) {
margin-top: -145px; // margin-top: -145px;
} // }
.title { .title {
font-size: 32px; font-size: 32px;
text-transform: uppercase; text-transform: uppercase;
margin-bottom: 22px; margin-bottom: 34px;
@include screen_mobile {
margin-bottom: 22px;
}
} }
.password_options { .password_options {

@ -11,6 +11,7 @@ import { useDispatch, useSelector } from "react-redux";
import { Alert } from "../../../_components/Alert"; import { Alert } from "../../../_components/Alert";
import { userConstants } from "../../../_constants"; import { userConstants } from "../../../_constants";
import { alertActions } from "../../../_actions"; import { alertActions } from "../../../_actions";
import { isEmail } from "../../../_helpers/validateEmail";
const CreateAccount = () => { const CreateAccount = () => {
const params = new URL(document.location).searchParams; const params = new URL(document.location).searchParams;
@ -63,6 +64,12 @@ const CreateAccount = () => {
} }
} }
const checkEmail = () => {
if (!isEmail(email)) {
setEmailError("Định dạng email không đúng");
}
};
const checkPw = () => { const checkPw = () => {
if (password.length < 6 || password.trim() === "") { if (password.length < 6 || password.trim() === "") {
setPwError("Mật khẩu cần tối thiểu 6 kí tự và không gồm toàn dấu cách"); setPwError("Mật khẩu cần tối thiểu 6 kí tự và không gồm toàn dấu cách");
@ -135,9 +142,9 @@ const CreateAccount = () => {
const onBlurField = (type) => { const onBlurField = (type) => {
switch (type) { switch (type) {
case "email": { case "email": {
// if (email && !emailError) { if (email && !emailError) {
// checkEmail(); checkEmail();
// } }
return; return;
} }
case "password": { case "password": {

@ -71,7 +71,11 @@
.title { .title {
font-size: 32px; font-size: 32px;
text-transform: uppercase; text-transform: uppercase;
margin-bottom: 22px; margin-bottom: 34px;
@include screen_mobile {
margin-bottom: 22px;
}
} }
.button_submit { .button_submit {
@ -130,4 +134,8 @@
padding: 2px; padding: 2px;
border: 2px solid #00b9b7; border: 2px solid #00b9b7;
} }
.input_date_base_container {
flex: 1;
}
} }
Loading…
Cancel
Save