Login page ui implemented

This commit is contained in:
MuhammadKhalilzadeh committed 2024-05-22 17:41:24 +03:30
1 parent d18b88aa15
commit 90b5d894c8
13 files changed
+339 -20

No files matched your search

+86 -1
View File
@@ -1 +1,86 @@
/*Login styles*/
:root {
--spacing-1: 15px;
--spacing-2: 20px;
--spacing-3: 25px;
}
.login-page {
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.login-form {
width: 360px;
height: 526px;
margin: 90px auto;
}
.login-form-header {
justify-content: center;
align-items: center;
text-align: center;
}
.login-form-header-logo {
margin: 0 auto;
}
.login-form-v-spacing {
height: var(--spacing-1);
}
.login-form-v2-spacing {
height: var(--spacing-2);
}
.login-form-v3-spacing {
height: var(--spacing-3);
}
.login-form-heading {
font-size: 30px;
font-weight: 700;
color: #101828;
}
#login-email-input {
width: 308px;
height: 11px;
}
.login-form-password-options {
display: flex;
align-items: center;
justify-content: space-between;
}
.login-form-forgot-password {
color: #1570ef;
font-weight: 600;
cursor: pointer;
}
.google-enter {
width: 20px;
height: 20px;
margin-right: 10px;
}
.new-account-option {
display: flex;
justify-content: center;
align-items: center;
color: #475467;
font-size: 13px;
font-weight: 600;
}
.new-account-option-span {
margin-left: 5px;
color: #1570ef;
font-size: 14px;
cursor: pointer;
}
+62 -7
View File
@@ -1,10 +1,65 @@
import React from 'react'
import './index.css'
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 CheckBox from "../../Components/Checkbox/Checkbox";
import Button from "../../Components/Button";
import Google from "../../assets/Images/Google.png";
import PasswordTextField from "../../Components/TextFields/Password/PasswordTextField";
const Login = () => {
return (
<div>Login</div>
)
}
return (
<div className="login-page">
<BackgroundPattern></BackgroundPattern>
<div className="login-form">
<div className="login-form-header">
<img
className="login-form-header-logo"
src={Logomark}
alt="Logomark"
/>
<div className="login-form-v-spacing" />
<div className="login-form-heading">Log in to your account</div>
</div>
<div className="login-form-v3-spacing" />
<div className="login-form-inputs">
<EmailTextField
error={false}
placeholder="Enter your email"
id="login-email-input"
/>
<div className="login-form-v2-spacing" />
<PasswordTextField
error={false}
placeholder="Password"
id="login-email-input"
/>
</div>
<div className="login-form-v3-spacing" />
<div className="login-form-password-options">
<CheckBox />
<div className="login-form-forgot-password">Forgot password</div>
</div>
<div className="login-form-v3-spacing" />
<div className="login-form-actions">
<Button level="primary" label="Sign in" sx={{ width: "100%" }} />
<div className="login-form-v-spacing" />
<Button
level="secondary"
label="Sign in with Google"
sx={{ width: "100%", color: "#344054", fontWeight: "700" }}
img={<img className="google-enter" src={Google} alt="Google" />}
/>
</div>
<div className="login-form-v3-spacing" />
<div className="new-account-option">
Don’t have an account?
<span className="new-account-option-span">Sign up</span>
</div>
</div>
</div>
);
};
export default Login
export default Login;