File tree Expand file tree Collapse file tree 6 files changed +136
-3
lines changed Expand file tree Collapse file tree 6 files changed +136
-3
lines changed Original file line number Diff line number Diff line change 1
- import logo from './logo.svg' ;
2
1
import './App.css' ;
3
2
import { LoginSignUp } from './Components/LoginSignUp/LoginSignUp' ;
4
3
5
4
function App ( ) {
6
5
return (
7
6
< div >
8
- < LoginSignUp > </ LoginSignUp >
7
+ < LoginSignUp / >
9
8
</ div >
10
9
) ;
11
10
}
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
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'
3
7
4
8
export const LoginSignUp = ( ) => {
9
+ const [ action , setAction ] = useState ( "Log In" ) ;
5
10
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
+
7
35
)
8
36
}
37
+
38
+
Original file line number Diff line number Diff line change 5
5
sans-serif;
6
6
-webkit-font-smoothing : antialiased;
7
7
-moz-osx-font-smoothing : grayscale;
8
+
9
+ height : 100vh ;
8
10
}
9
11
10
12
code {
You can’t perform that action at this time.
0 commit comments