Skip to content

Commit fa1c4bb

Browse files
author
Aishwarya Nair
committed
add log in and sign up page
1 parent 32798a5 commit fa1c4bb

File tree

6 files changed

+136
-3
lines changed

6 files changed

+136
-3
lines changed

peer-prep/src/App.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import logo from './logo.svg';
21
import './App.css';
32
import { LoginSignUp } from './Components/LoginSignUp/LoginSignUp';
43

54
function App() {
65
return (
76
<div>
8-
<LoginSignUp></LoginSignUp>
7+
<LoginSignUp/>
98
</div>
109
);
1110
}
8.61 KB
Loading
10.8 KB
Loading
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
.container {
2+
display: flex;
3+
flex-direction: column;
4+
margin: auto;
5+
margin-top: 100px;
6+
width: 600px;
7+
background: #fff;
8+
padding-bottom: 30px;
9+
}
10+
11+
.header {
12+
display: flex;
13+
flex-direction: column;
14+
align-items: center;
15+
gap: 9px;
16+
width: 100%;
17+
margin-top: 30px;
18+
}
19+
20+
.text {
21+
color: #000;
22+
font-size: 48px;
23+
font-weight: 700;
24+
}
25+
26+
.underline {
27+
width: 61px;
28+
height: 6px;
29+
background: #52CC65;
30+
border-radius: 9px;
31+
}
32+
33+
.input img {
34+
width: 30px;
35+
height: 30px;
36+
margin: 0px 30px;
37+
}
38+
39+
.inputs {
40+
margin-top: 55px;
41+
display: flex;
42+
flex-direction: column;
43+
gap: 25px;
44+
}
45+
46+
.input {
47+
display: flex;
48+
align-items: center;
49+
margin: auto;
50+
width: 480px;
51+
height: 80px;
52+
background: #e9e9e9;
53+
border-radius: 5px;
54+
55+
}
56+
57+
.input input {
58+
height: 50px;
59+
width: 400px;
60+
background: transparent;
61+
border: none;
62+
outline: none;
63+
color: #797979;
64+
font-size: 19px;
65+
}
66+
67+
.forgot-password {
68+
padding-left: 62px;
69+
margin-top: 27px;
70+
color: #797979;
71+
font-size: 18px;
72+
}
73+
74+
.forgot-password span {
75+
color: #52CC65;
76+
cursor: pointer;
77+
}
78+
79+
.submit-container {
80+
display: flex;
81+
gap: 30px;
82+
margin: 60px auto;
83+
}
84+
85+
.submit {
86+
display: flex;
87+
justify-content: center;
88+
align-items: center;
89+
width: 150px;
90+
height: 70px;
91+
color: #fff;
92+
background: #52CC65;
93+
border-radius: 10px;
94+
font-size: 19px;
95+
font-weight: 700;
96+
cursor: pointer;
97+
}
98+
99+
.gray {
100+
background: #e9e9e9;
101+
color: #676767;
102+
}
Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,38 @@
11
import React from 'react'
22
import './LoginSignUp.css'
3+
import {useState} from 'react'
4+
5+
import password_icon from '../Assets/password.png'
6+
import user_icon from '../Assets/user.png'
37

48
export const LoginSignUp = () => {
9+
const [action, setAction] = useState("Log In");
510
return (
6-
<div>LoginSignUp</div>
11+
<div className="container">
12+
<div className="header">
13+
<div className="text"> {action} </div>
14+
<div className="underline"></div>
15+
</div>
16+
<div className="inputs">
17+
<div className="input">
18+
<img src= {user_icon} alt="" />
19+
<input type="text" placeholder = "Username"/>
20+
</div>
21+
<div className="input">
22+
<img src= {password_icon} alt="" />
23+
<input type="password" placeholder = "Password"/>
24+
</div>
25+
</div>
26+
{action === "Sign Up" ? <div></div>: <div className="forgot-password"> Forgot Password? <span> Click Here.</span></div>}
27+
<div className="submit-container">
28+
<div className={action==="Sign Up"? "submit gray": "submit"}
29+
onClick = {() => {setAction("Log In")}}>Log In</div>
30+
<div className={action==="Log In"? "submit gray": "submit"}
31+
onClick = {() => {setAction("Sign Up")}}>Sign Up</div>
32+
</div>
33+
</div>
34+
735
)
836
}
37+
38+

peer-prep/src/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ body {
55
sans-serif;
66
-webkit-font-smoothing: antialiased;
77
-moz-osx-font-smoothing: grayscale;
8+
9+
height: 100vh;
810
}
911

1012
code {

0 commit comments

Comments
 (0)