From 8e892fe2f6cd3ffec61c762fe0daf9f7477e07bf Mon Sep 17 00:00:00 2001 From: Caleb Okpara Date: Sat, 21 May 2022 13:25:14 +0000 Subject: [PATCH] style register page --- Accounts/src/App.scss | 137 ++++++++++++------ Accounts/src/App.tsx | 3 +- Accounts/src/Pages/ForgotPassword.tsx | 23 +-- Accounts/src/Pages/Login.tsx | 27 ++-- Accounts/src/Pages/Register.tsx | 67 ++++++--- Accounts/src/Pages/SsoLogin.tsx | 23 +-- Common/Models/BaseModel.ts | 6 +- CommonUI/src/Components/Forms/BasicForm.tsx | 25 +++- .../src/Components/Forms/BasicModelForm.tsx | 9 +- 9 files changed, 205 insertions(+), 115 deletions(-) diff --git a/Accounts/src/App.scss b/Accounts/src/App.scss index 5552826080..472dd694be 100644 --- a/Accounts/src/App.scss +++ b/Accounts/src/App.scss @@ -72,18 +72,7 @@ body { } } -form { - height: fit-content; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - background-color: $bglight; - border-radius: 5px; - box-shadow: 1px 2px 10px lighten($bgDark, 85%); - padding: 50px 70px; - z-index: 40; - +.grid_form_1 { @include responsive($xs) { width: 95%; padding: 25px; @@ -106,13 +95,50 @@ form { @include responsive($xl) { width: 35%; } +} + +.grid_form_2 { + width: 45%; + + @include responsive($xs) { + width: 100%; + } + + @include responsive($sm) { + width: 90%; + } + + @include responsive($med) { + width: 75%; + } + + @include responsive($lg) { + width: 50%; + } + + @include responsive($xl) { + width: 50%; + } +} + +form { + height: fit-content; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + background-color: $bglight; + border-radius: 5px; + box-shadow: 1px 2px 10px lighten($bgDark, 85%); + padding: 50px 70px; + z-index: 40; h1 { color: lighten($bgDark, 20%); font-family: 'Helvetica Neue', sans-serif; font-size: 2.4rem; font-weight: 500; - margin-bottom: 20px; + margin-bottom: 30px; letter-spacing: -0.2px; line-height: 32px; } @@ -123,53 +149,74 @@ form { color: lighten($bgDark, 40%); } - div { + .grid_1 { display: flex; flex-direction: column; + } + .grid_2 { + display: flex; + justify-content: space-between; + flex-wrap: wrap; + width: 100%; + + div { + flex: 0 0 48%; + input { + padding: 10px 15px; + } + } + } + + div { &:not(:last-child) { margin-bottom: 30px; } - label { - font-size: 1.35rem; - font-weight: 400; - color: lighten($bgDark, 20%); - margin-bottom: 5px; - + div { display: flex; - justify-content: space-between; + flex-direction: column; - span:last-child { - color: $lightBlue; - cursor: pointer; - transition: $transition; + label { + font-size: 1.35rem; + font-weight: 400; + color: lighten($bgDark, 20%); + margin-bottom: 5px; - &:hover { - color: darken($lightBlue, 50%); + display: flex; + justify-content: space-between; + + span:last-child { + color: $lightBlue; + cursor: pointer; + transition: $transition; + + &:hover { + color: darken($lightBlue, 50%); + } } } - } - input { - width: 100%; - padding: 15px 20px; - border: 1px solid $colorLightGrey; - border-radius: 5px; - outline: none; - appearance: none; - background: transparent; - font-size: 1.3rem; - color: darken($colorLightGrey, 50%); + input { + width: 100%; + padding: 15px 20px; + border: 1px solid $colorLightGrey; + border-radius: 5px; + outline: none; + appearance: none; + background: transparent; + font-size: 1.3rem; + color: darken($colorLightGrey, 50%); - &:focus { - outline: 2px solid rgba(84, 84, 238, 0.72); - } + &:focus { + outline: 2px solid rgba(84, 84, 238, 0.72); + } - & + div { - color: rgb(189, 11, 11); - margin-top: 5px; - font-size: 1.2rem; + & + div { + color: rgb(189, 11, 11); + margin-top: 5px; + font-size: 1.2rem; + } } } } diff --git a/Accounts/src/App.tsx b/Accounts/src/App.tsx index e5e51c8e04..dbbe412b0b 100644 --- a/Accounts/src/App.tsx +++ b/Accounts/src/App.tsx @@ -4,6 +4,7 @@ import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; import LoginPage from './Pages/Login'; import SsoLoginPage from './Pages/SsoLogin'; import ForgotPasswordPage from './Pages/ForgotPassword'; +import RegisterPage from './Pages/Register'; function App(): ReactElement { return ( @@ -22,7 +23,7 @@ function App(): ReactElement { path="/forgot-password" element={} /> - } /> + } /> } /> } /> diff --git a/Accounts/src/Pages/ForgotPassword.tsx b/Accounts/src/Pages/ForgotPassword.tsx index 660bed084d..518f5f2546 100644 --- a/Accounts/src/Pages/ForgotPassword.tsx +++ b/Accounts/src/Pages/ForgotPassword.tsx @@ -28,17 +28,18 @@ const ForgotPasswordPage: FunctionComponent = () => { submitButtonText={'Continue'} title={'Reset your password'} description={`Enter the email address associated with your account, and we'll send you a link to reset your password.`} - > -
-

- Return to sign in -

-

- Don't have an account? - Sign up -

-
- + footer={ +
+

+ Return to sign in +

+

+ Don't have an account? + Sign up +

+
+ } + />