Skip to content

Commit 6bbfb89

Browse files
committed
modified the sign in style
relates #186
1 parent a4eb098 commit 6bbfb89

File tree

2 files changed

+104
-52
lines changed

2 files changed

+104
-52
lines changed
Lines changed: 78 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,70 @@
1-
.signIn-container { background: #ffffff;
1+
.signIn-container {
2+
background: #ffffff;
23
width: 52%;
34
box-shadow: 0px 8px 32px 16px rgba(68, 170, 238, 0.19);
4-
padding-top: 20px;
5+
padding: 2rem 4rem;
6+
display: flex;
7+
flex-direction: column;
8+
gap: 4rem;
9+
}
10+
11+
.signIn-container .header-2 {
12+
width: 100%;
13+
display: flex;
14+
align-items: center;
15+
justify-content: space-between;
16+
gap: 10px;
17+
}
18+
19+
.signIn-container .header-2 a {
20+
height: auto;
21+
flex-shrink: 0;
522
}
6-
h3 {
23+
24+
.signIn-container .header-2 a button {
25+
height: auto;
26+
}
27+
28+
.signIn-container main {
29+
width: 100%;
30+
height: 100%;
31+
display: flex;
32+
flex-direction: column;
33+
gap: 3rem;
34+
}
35+
36+
.signIn-container main h3 {
737
text-align: center;
8-
padding-top: 50px;
938
font-family: "Inter", sans-serif;
10-
font-weight: bold;
39+
font-weight: 600;
40+
font-size: 2rem;
1141
}
12-
.inputs-container {
13-
width: 100%;
42+
43+
.signIn-container main form {
1444
display: flex;
15-
height: 300px;
16-
margin-bottom:50px;
17-
justify-content: center;
18-
align-items: center;
19-
gap: 20px;
45+
height: 100%;
46+
align-items: flex-start;
2047
flex-direction: column;
48+
gap: 1.5rem;
49+
}
50+
51+
.signIn-container main form > div {
52+
width: 100%;
2153
}
54+
2255
.inputs {
2356
width: 80%;
2457
}
2558

2659
.submit-login {
27-
width: 80%;
28-
height: 35px;
60+
margin-top: 1rem;
61+
width: 100%;
2962
background-color: #1b4b66;
3063
color: white;
3164
font-size: 16px;
3265
border-radius: 6px;
66+
height: 35px;
67+
border-radius: 10px;
3368
cursor: pointer;
3469
font-family: "Inter", sans-serif;
3570
box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
@@ -40,3 +75,32 @@ h3 {
4075
outline: #1b4b66 1px solid;
4176
transition: border-color 0.5s, background-color 0.5s, color 0.5s;
4277
}
78+
79+
@media (min-width: 992px) and (max-width: 1199.98px) {
80+
.signIn-container {
81+
padding: 2rem 3rem;
82+
}
83+
}
84+
85+
@media (min-width: 768px) and (max-width: 991.98px) {
86+
.signIn-container {
87+
padding: 2rem;
88+
}
89+
}
90+
91+
@media (max-width: 767.98px) {
92+
.signIn-container {
93+
width: 100%;
94+
height: 100%;
95+
padding: 2rem;
96+
}
97+
98+
.signIn-container main {
99+
align-items: center;
100+
justify-content: center;
101+
}
102+
103+
.signIn-container main form {
104+
width: 100%;
105+
}
106+
}

client/src/components/Signin/Signin.tsx

Lines changed: 26 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -75,53 +75,41 @@ const Signin:FC = () => {
7575
</Box>
7676

7777
{/* Form section */}
78-
<Box className="form-container-signin">
78+
<main>
7979
<Typography variant="h3">
80-
SignIn
80+
Login
8181
</Typography>
8282
<form onSubmit={(e) => formik.handleSubmit(e)}>
83-
<Box className="inputs-container">
84-
<TextField
85-
className="inputs"
86-
InputProps={{
87-
style: {
88-
padding: '10px',
89-
},
90-
}}
91-
id="email"
92-
name="email"
93-
label="Email"
94-
variant="standard"
95-
onChange={formik.handleChange}
96-
error={formik.touched.email
83+
<TextField
84+
className="inputs"
85+
id="email"
86+
name="email"
87+
label="Email"
88+
variant="standard"
89+
onChange={formik.handleChange}
90+
error={formik.touched.email
9791
&& Boolean(formik.errors.email)}
98-
helperText={formik.touched.email
92+
helperText={formik.touched.email
9993
&& formik.errors.email}
100-
/>
101-
<TextField
102-
className="inputs"
103-
InputProps={{
104-
style: {
105-
padding: '10px',
106-
},
107-
}}
108-
type="password"
109-
id="password"
110-
name="password"
111-
label="Password"
112-
variant="standard"
113-
onChange={formik.handleChange}
114-
error={formik.touched.password
94+
/>
95+
<TextField
96+
className="inputs"
97+
type="password"
98+
id="password"
99+
name="password"
100+
label="Password"
101+
variant="standard"
102+
onChange={formik.handleChange}
103+
error={formik.touched.password
115104
&& Boolean(formik.errors.password)}
116-
helperText={formik.touched.password
105+
helperText={formik.touched.password
117106
&& formik.errors.password}
118-
/>
119-
{ loading ? <Loading className="loading" />
120-
: <button type="submit" className="submit-login"> Login </button>}
107+
/>
108+
{ loading ? <Loading className="loading" />
109+
: <button type="submit" className="submit-login"> Login </button>}
121110

122-
</Box>
123111
</form>
124-
</Box>
112+
</main>
125113
</Box>
126114
);
127115
};

0 commit comments

Comments
 (0)