From e52fc493ccee9c2e50a5de0a5bc3a5c67065863a Mon Sep 17 00:00:00 2001 From: MuhammadKhalilzadeh Date: Fri, 24 May 2024 18:32:40 +0330 Subject: [PATCH] Register Page UI --- Client/src/Components/Check/Check.jsx | 15 +++ Client/src/Components/Check/check.css | 20 ++++ Client/src/Components/Checkbox/Checkbox.css | 2 +- .../TextFields/Email/EmailTextField.jsx | 5 +- .../TextFields/Password/PasswordTextField.jsx | 5 +- .../Components/TextFields/Text/TextField.jsx | 86 +++++++++++++++++ .../Components/TextFields/Text/textField.css | 0 Client/src/Pages/Login/index.css | 1 + Client/src/Pages/Register/index.css | 77 +++++++++++++++- Client/src/Pages/Register/index.jsx | 87 ++++++++++++++++-- Client/src/assets/Images/Check-icon-grey.png | Bin 0 -> 571 bytes 11 files changed, 284 insertions(+), 14 deletions(-) create mode 100644 Client/src/Components/Check/Check.jsx create mode 100644 Client/src/Components/Check/check.css create mode 100644 Client/src/Components/TextFields/Text/TextField.jsx create mode 100644 Client/src/Components/TextFields/Text/textField.css create mode 100644 Client/src/assets/Images/Check-icon-grey.png diff --git a/Client/src/Components/Check/Check.jsx b/Client/src/Components/Check/Check.jsx new file mode 100644 index 000000000..061600405 --- /dev/null +++ b/Client/src/Components/Check/Check.jsx @@ -0,0 +1,15 @@ +import "./check.css"; +import React from "react"; +import CheckGrey from "../../assets/Images/Check-icon-grey.png"; + +const Check = ({ text }) => { + return ( +
+ un-checked +
+ +
+ ); +}; + +export default Check; diff --git a/Client/src/Components/Check/check.css b/Client/src/Components/Check/check.css new file mode 100644 index 000000000..284b79bda --- /dev/null +++ b/Client/src/Components/Check/check.css @@ -0,0 +1,20 @@ +.check { + display: flex; + align-items: center; + justify-content: start; +} + +.check-icon { + width: 20px; + height: 20px; +} + +.check-h-spacing { + margin-right: 8px; +} + +.check-label { + font-size: 11px; + font-weight: 600; + color: #475467; +} diff --git a/Client/src/Components/Checkbox/Checkbox.css b/Client/src/Components/Checkbox/Checkbox.css index b8b092276..b77eac3d6 100644 --- a/Client/src/Components/Checkbox/Checkbox.css +++ b/Client/src/Components/Checkbox/Checkbox.css @@ -14,7 +14,7 @@ .checkbox-label { margin-left: 5px; - font-size: 14px; + font-size: 13px; color: #344054; font-weight: 600; cursor: pointer; diff --git a/Client/src/Components/TextFields/Email/EmailTextField.jsx b/Client/src/Components/TextFields/Email/EmailTextField.jsx index b1428e1c5..3aabdc924 100644 --- a/Client/src/Components/TextFields/Email/EmailTextField.jsx +++ b/Client/src/Components/TextFields/Email/EmailTextField.jsx @@ -19,7 +19,7 @@ import { useTheme } from "@mui/material"; */ const EmailTextField = ({ id, - label, + label = "Email", variant, placeholder, icon, @@ -41,13 +41,12 @@ const EmailTextField = ({ return (
-
Email
+
{label}
-
Password
+
{label}
{ + const theme = useTheme(); + + const fontLookup = { + default: theme.font.default.font, + }; + + const fontFamily = fontLookup["default"]; + + const [showIcon, setShowIcon] = useState(false); + + const handleMouseEnter = () => setShowIcon(true); + const handleMouseLeave = () => setShowIcon(false); + + return ( +
+
{label}
+
+ +
+ {error && showIcon && ( + + )} + {error && !showIcon && ( + + )} + {!error && showIcon && ( + + )} +
+ + ), + }} + helperText={helperText} + onMouseEnter={handleMouseEnter} + onMouseLeave={handleMouseLeave} + /> +
+
+ ); +}; + +export default StringTextField; diff --git a/Client/src/Components/TextFields/Text/textField.css b/Client/src/Components/TextFields/Text/textField.css new file mode 100644 index 000000000..e69de29bb diff --git a/Client/src/Pages/Login/index.css b/Client/src/Pages/Login/index.css index c5b6d8f8e..57a37ffe6 100644 --- a/Client/src/Pages/Login/index.css +++ b/Client/src/Pages/Login/index.css @@ -63,6 +63,7 @@ color: #1570ef; font-weight: 600; cursor: pointer; + font-size: 13px; } .google-enter { diff --git a/Client/src/Pages/Register/index.css b/Client/src/Pages/Register/index.css index 0a52fcec9..10b1694d5 100644 --- a/Client/src/Pages/Register/index.css +++ b/Client/src/Pages/Register/index.css @@ -1 +1,76 @@ -/*REgister styles*/ \ No newline at end of file +:root { + --dimension-width-1: 100vw; + --dimension-width-2: 360px; + + --dimension-height-1: 100vh; + + --spacing-small: 12px; + --spacing-medium: 24px; + --spacing-large: 40px; + + --font-size-small: 13px; + --font-size-medium: 16px; + + --register-form-heading-color-1: #101828; + --register-form-subheading-color-1: #475467; +} + +.register-page { + width: var(--dimension-width-1); + display: flex; + justify-content: center; + min-height: var(--dimension-height-1); +} + +.register-form { + width: var(--dimension-width-2); + margin: 140px auto; +} + +.register-form-header { + justify-content: center; + align-items: center; + text-align: center; +} + +.register-form-header-logo { + margin: 0 auto; +} + +.register-form-v-spacing-24px { + height: var(--spacing-medium); +} + +.register-form-v-spacing-12px { + height: var(--spacing-small); +} + +.register-form-v-spacing-40px { + height: var(--spacing-large); +} + +.register-form-heading { + font-size: var(--spacing-medium); + font-weight: 700; + color: var(--register-form-heading-color-1); +} + +.register-form-subheading { + font-size: var(--spacing-small); + color: var(--register-form-subheading-color-1); + font-weight: 600; +} + +#register-firstname-input, +#register-lastname-input, +#register-email-input, +#register-password-input { + font-size: var(--spacing-small); + width: 294px; + height: 11px; + padding: 12px 14px; +} + +.register-bottom-spacing { + height: 50px; +} diff --git a/Client/src/Pages/Register/index.jsx b/Client/src/Pages/Register/index.jsx index 6429ae2c0..6409ad536 100644 --- a/Client/src/Pages/Register/index.jsx +++ b/Client/src/Pages/Register/index.jsx @@ -1,9 +1,84 @@ -import React from 'react' +import React from "react"; +import "./index.css"; +import BackgroundPattern from "../../Components/BackgroundPattern/BackgroundPattern"; +import Logomark from "../../assets/Images/Logomark.png"; +import EmailTextField from "../../Components/TextFields/Email/EmailTextField"; +import PasswordTextField from "../../Components/TextFields/Password/PasswordTextField"; +import StringTextField from "../../Components/TextFields/Text/TextField"; +import Check from "../../Components/Check/Check"; +import Button from "../../Components/Button"; +import Google from "../../assets/Images/Google.png"; const Register = () => { - return ( -
Register
- ) -} + return ( +
+ +
+
+ Logomark +
+
Create an account
+
+
+ Start your 30-day free trial. +
+
+
+
+ +
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+
+
+ ); +}; -export default Register \ No newline at end of file +export default Register; diff --git a/Client/src/assets/Images/Check-icon-grey.png b/Client/src/assets/Images/Check-icon-grey.png new file mode 100644 index 0000000000000000000000000000000000000000..bf526770eae9250f39e92ddac44f50c9e6516302 GIT binary patch literal 571 zcmV-B0>u4^P)i%7f!c2K&4h9z_bcnR!)W(8yk?7#sL9)J)dBm@FM z#6={?KEoVy4<oIV=MF;O;;{v@dAi2SNd7} zcPsQ(HY!s7JcfY7;Eyx;qZSG4tD7zJ2^fwxUmO>#s5+oBNakqnErK9KsP+BuE0xOZ zD*4pk7=W+&QRF}5qSXsCrev4NMna72UG@#aP-E}lDDIK62)W!F{q!-1@o!)7I+Ko- zHMe$f-nobq+A1y@NK$%a1VuX^NfXK