Skip to content

Commit

Permalink
Updates to Auth form UI
Browse files Browse the repository at this point in the history
  • Loading branch information
DangaRanga committed Apr 16, 2021
1 parent 786d80d commit aecbfd7
Show file tree
Hide file tree
Showing 23 changed files with 62 additions and 28 deletions.
3 changes: 3 additions & 0 deletions src/assets/icons/account-circle-purple.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icons/lock-purple.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/icons/mail-purple.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 25 additions & 6 deletions src/components/AuthForm/AuthForm.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 26 additions & 3 deletions src/components/AuthForm/AuthForm.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}

& span {
padding: 15px 30px;
padding: 15px 35px;
pointer-events: none;
position: absolute;
left: 0;
Expand All @@ -49,14 +49,14 @@
& input:focus + span,
& input:not(:placeholder-shown) + span {
opacity: 0.7;
transform: scale(0.75) translateY(-100%) translateX(-45px);
transform: scale(0.75) translateY(-100%) translateX(-50px);
}

/* For IE Browsers*/
& input:focus + span,
& input:not(:-ms-input-placeholder) + span {
opacity: 0.7;
transform: scale(0.75) translateY(-100%) translateX(-45px);
transform: scale(0.75) translateY(-100%) translateX(-50px);
}
}

Expand Down Expand Up @@ -98,3 +98,26 @@
cursor: pointer;
color: #9377e2;
}

#firstname,
#lastname,
#username,
#address {
background: url('../../assets/icons/account-circle-purple.svg') no-repeat
scroll;
background-position: left;
background-size: 30px;
}

#password,
#password-confirm {
background: url('../../assets/icons/lock-purple.svg') no-repeat scroll;
background-position: left;
background-size: 30px;
}

#email {
background: url('../../assets/icons/mail-purple.svg') no-repeat scroll;
background-position: left;
background-size: 30px;
}
2 changes: 1 addition & 1 deletion src/components/AuthForm/AuthForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function AuthForm({ isLogin: isLogin }: AuthFormProps) {
className="input-field"
type="password"
name="password-confirm"
id="password-confim"
id="password-confirm"
placeholder=" "
onChange={(e) =>
setFormState((prev) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@

.order-detail {
margin: 20px 0px; }

/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk9yZGVySXRlbS5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxhQUFhLEVBQUU7O0FBRWpCO0VBQ0UsZ0JBQWdCLEVBQUUiLCJmaWxlIjoiT3JkZXJJdGVtLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi5ub3Qtc2VsZWN0ZWQge1xuICBkaXNwbGF5OiBub25lOyB9XG5cbi5vcmRlci1kZXRhaWwge1xuICBtYXJnaW46IDIwcHggMHB4OyB9XG4iXX0= */
1 change: 0 additions & 1 deletion src/views/Menu/Menu.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

1 comment on commit aecbfd7

@vercel
Copy link

@vercel vercel bot commented on aecbfd7 Apr 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.