From 9186aff98e05d114bf8b4380b5034b85c5bb50db Mon Sep 17 00:00:00 2001 From: kj1352 Date: Tue, 16 Feb 2021 13:20:04 +0530 Subject: [PATCH] Login UI --- src/components/input/InputWidget.tsx | 2 +- src/pages/login/Login.module.scss | 54 +++++++++++++++++++++++++--- src/pages/login/Login.tsx | 8 +++++ 3 files changed, 59 insertions(+), 5 deletions(-) diff --git a/src/components/input/InputWidget.tsx b/src/components/input/InputWidget.tsx index 4053168..3914f61 100644 --- a/src/components/input/InputWidget.tsx +++ b/src/components/input/InputWidget.tsx @@ -28,7 +28,7 @@ class InputWidget extends Component { { this.props.icon && } { this.props.type === 'TEXT' && } - { this.props.type === 'PASSWORD' && } + { this.props.type === 'PASSWORD' && } { this.props.type === 'PASSWORD' && this.setState({ showPassword: !this.state.showPassword })}> diff --git a/src/pages/login/Login.module.scss b/src/pages/login/Login.module.scss index 019857c..29c7c90 100644 --- a/src/pages/login/Login.module.scss +++ b/src/pages/login/Login.module.scss @@ -9,7 +9,6 @@ z-index: 1; box-shadow: 0px 0px 10px 5px var(--black-rock); animation: riseDown 1s forwards; - animation-delay: 1s; display: flex; align-items: center; justify-content: center; @@ -36,7 +35,6 @@ width: 100%; margin: 10px 0; animation: fadeIn 1s forwards; - animation-delay: 1.5s; opacity: 0; transform: translateY(10vh); } @@ -60,10 +58,58 @@ .inputForm { width: 80%; margin: 40px auto 0; + opacity: 0; + transform: translateY(10vh); + position: relative; + animation: fadeIn 1s forwards; + + .input { + margin: 20px 0; + } + + .actionLink { + text-align: right; + margin: 20px 0; + + a { + font-size: 14px; + color: var(--rock); + text-decoration: none; + } + } + + .actionButtonsHolder { + width: 60%; + margin: 20px auto; + + .actionButton { + height: 50px; + text-transform: none; + font-size: 16px; + --border-radius: 30px; + --border-color: var(--shamrock); + font-weight: 500; + + &:nth-child(1) { + --background: var(--shamrock); + } + } + } } -.input { - margin: 20px 0; +.navigationLink { + position: absolute; + left: 0; + width: 100%; + bottom: 10px; + text-align: center; + font-size: 14px; + color: var(--rock); + + a { + color: var(--shamrock); + text-decoration: none; + } } @keyframes fadeIn { diff --git a/src/pages/login/Login.tsx b/src/pages/login/Login.tsx index 5090b17..c410396 100644 --- a/src/pages/login/Login.tsx +++ b/src/pages/login/Login.tsx @@ -35,8 +35,16 @@ class LoginPage extends Component {
+
+ +
Forgot Password?
+ +
+ Login
+ +
Don't have an account? Sign up
};