Skip to content

Commit b5db1c5

Browse files
medss19Medha
andauthored
implemented github oauth (#1342)
* Save local changes * fixed the glitch of the signin page * Fixed the regitser/login page along with the its appearance and working * Enhanced github badges by adding rounded corners to all * Implemented oauth with github and related changes * modified login.html --------- Co-authored-by: Medha <[email protected]>
1 parent 5210bfc commit b5db1c5

File tree

3 files changed

+58
-400
lines changed

3 files changed

+58
-400
lines changed

login.css

Lines changed: 26 additions & 205 deletions
Original file line numberDiff line numberDiff line change
@@ -40,44 +40,24 @@ input {
4040
z-index: 5;
4141
}
4242

43-
form {
43+
.auth-form {
4444
display: flex;
4545
align-items: center;
4646
justify-content: center;
4747
flex-direction: column;
48-
padding: 0 5rem;
48+
padding: 0rem 5rem;
4949
transition: all 0.2s 0.7s;
5050
overflow: hidden;
5151
grid-column: 1 / 2;
5252
grid-row: 1 / 2;
5353
}
5454

55-
form.sign-up-form {
56-
opacity: 0;
57-
z-index: 1;
58-
}
59-
60-
form.sign-in-form {
61-
z-index: 2;
62-
}
63-
64-
.remember-me {
65-
display: flex;
66-
align-items: center;
67-
margin: 10px 0;
68-
color: #333;
69-
}
70-
71-
.remember-me input {
72-
margin-right: 5px;
73-
}
74-
7555
.github-login {
7656
cursor: pointer;
7757
background-color: transparent;
7858
border: none;
7959
outline: none;
80-
padding: 5px;
60+
padding: 1rem;
8161
transition: transform 0.3s ease;
8262
}
8363

@@ -88,72 +68,21 @@ form.sign-in-form {
8868
.title {
8969
font-size: 2.2rem;
9070
color: #444;
91-
margin-bottom: 10px;
92-
}
93-
94-
.input-field {
95-
max-width: 380px;
96-
width: 100%;
97-
background-color: #f0f0f0;
98-
margin: 10px 0;
99-
height: 55px;
100-
border-radius: 55px;
101-
display: grid;
102-
grid-template-columns: 15% 85%;
103-
padding: 0 0.4rem;
104-
position: relative;
105-
}
106-
107-
.input-field i {
71+
margin-bottom: 1rem;
10872
text-align: center;
109-
line-height: 55px;
110-
color: #acacac;
111-
transition: 0.5s;
112-
font-size: 1.1rem;
11373
}
11474

115-
.input-field input {
116-
background: none;
117-
outline: none;
118-
border: none;
119-
line-height: 1;
120-
font-weight: 600;
75+
.auth-text {
76+
color: #666;
12177
font-size: 1.1rem;
122-
color: #333;
123-
}
124-
125-
.input-field input::placeholder {
126-
color: #aaa;
127-
font-weight: 500;
128-
}
129-
130-
.social-text {
131-
padding: 0.7rem 0;
132-
font-size: 1rem;
78+
margin-bottom: 2rem;
79+
text-align: center;
13380
}
13481

13582
.social-media {
13683
display: flex;
13784
justify-content: center;
138-
}
139-
140-
.btn {
141-
width: 150px;
142-
background-color: #000000;
143-
border: none;
144-
outline: none;
145-
height: 49px;
146-
border-radius: 49px;
147-
color: #fff;
148-
text-transform: uppercase;
149-
font-weight: 600;
150-
margin: 10px 0;
151-
cursor: pointer;
152-
transition: 0.5s;
153-
}
154-
155-
.btn:hover {
156-
background-color: #161618;
85+
margin-top: 1rem;
15786
}
15887

15988
.panels-container {
@@ -189,24 +118,18 @@ form.sign-in-form {
189118
.panel {
190119
display: flex;
191120
flex-direction: column;
192-
align-items: flex-end;
193121
justify-content: space-around;
194122
text-align: center;
195123
z-index: 6;
196124
}
197125

198126
.left-panel {
199127
pointer-events: all;
200-
padding: 3rem 17% 2rem 12%;
201-
}
202-
203-
.right-panel {
204-
pointer-events: none;
205-
padding: 3rem 12% 2rem 17%;
128+
padding: 4rem 17% 2rem 12%;
206129
}
207130

208131
.panel .content {
209-
color: #fff;
132+
color: #ffffff;
210133
transition: transform 0.9s ease-in-out;
211134
transition-delay: 0.6s;
212135
}
@@ -222,77 +145,24 @@ form.sign-in-form {
222145
padding: 0.7rem 0;
223146
}
224147

225-
.btn.transparent {
226-
margin: 0;
227-
background: none;
228-
border: 2px solid #fff;
229-
width: 130px;
230-
height: 41px;
231-
font-weight: 600;
232-
font-size: 0.8rem;
233-
}
234-
235-
.right-panel .image,
236-
.right-panel .content {
237-
transform: translateX(800px);
238-
}
239-
240-
/* ANIMATION */
241-
.container.sign-up-mode:before {
242-
transform: translate(100%, -50%);
243-
right: 52%;
244-
}
245-
246-
.container.sign-up-mode .left-panel .image,
247-
.container.sign-up-mode .left-panel .content {
248-
transform: translateX(-800px);
249-
}
250-
251-
.container.sign-up-mode .signin-signup {
252-
left: 25%;
253-
}
254-
255-
.container.sign-up-mode form.sign-up-form {
256-
opacity: 1;
257-
z-index: 2;
258-
}
259-
260-
.container.sign-up-mode form.sign-in-form {
261-
opacity: 0;
262-
z-index: 1;
263-
}
264-
265-
.container.sign-up-mode .right-panel .image,
266-
.container.sign-up-mode .right-panel .content {
267-
transform: translateX(0%);
268-
}
269-
270-
.container.sign-up-mode .left-panel {
271-
pointer-events: none;
272-
}
273-
274-
.container.sign-up-mode .right-panel {
275-
pointer-events: all;
276-
}
277-
278148
.homeBtn {
279149
position: absolute;
280150
top: 20px;
281151
left: 20px;
282152
background: #ffffff;
153+
color: #ffffff;
283154
padding: 10px;
284155
border-radius: 10px;
285156
cursor: pointer;
286157
transition: 0.3s;
287158
text-decoration: none;
288-
z-index: 7;
159+
z-index: 10;
289160
}
290161

291-
.toggle-password {
292-
cursor: pointer;
162+
.homeBtn:hover {
163+
transform: scale(1.1);
293164
}
294165

295-
/* Responsive Design */
296166
@media (max-width: 870px) {
297167
.container {
298168
min-height: 800px;
@@ -304,10 +174,6 @@ form.sign-in-form {
304174
top: 95%;
305175
transform: translate(-50%, -100%);
306176
transition: 1s 0.8s ease-in-out;
307-
}
308-
309-
.signin-signup,
310-
.container.sign-up-mode .signin-signup {
311177
left: 50%;
312178
}
313179

@@ -324,10 +190,6 @@ form.sign-in-form {
324190
grid-column: 1 / 2;
325191
}
326192

327-
.right-panel {
328-
grid-row: 3 / 4;
329-
}
330-
331193
.left-panel {
332194
grid-row: 1 / 2;
333195
}
@@ -353,12 +215,6 @@ form.sign-in-form {
353215
padding: 0.5rem 0;
354216
}
355217

356-
.btn.transparent {
357-
width: 110px;
358-
height: 35px;
359-
font-size: 0.7rem;
360-
}
361-
362218
.container:before {
363219
width: 1500px;
364220
height: 1500px;
@@ -370,44 +226,24 @@ form.sign-in-form {
370226
transition: 2s ease-in-out;
371227
}
372228

373-
.container.sign-up-mode:before {
374-
transform: translate(-50%, 100%);
375-
bottom: 32%;
376-
right: initial;
377-
}
378-
379-
.container.sign-up-mode .left-panel .image,
380-
.container.sign-up-mode .left-panel .content {
381-
transform: translateY(-300px);
382-
}
383-
384-
.container.sign-up-mode .right-panel .image,
385-
.container.sign-up-mode .right-panel .content {
386-
transform: translateY(0px);
387-
}
388-
389-
.right-panel .image,
390-
.right-panel .content {
391-
transform: translateY(300px);
392-
}
393-
394-
.container.sign-up-mode .signin-signup {
395-
top: 5%;
396-
transform: translate(-50%, 0);
229+
.auth-form {
230+
padding: 0 1.5rem;
397231
}
398232
}
399233

400234
@media (max-width: 570px) {
401-
form {
402-
padding: 0 1.5rem;
235+
.auth-form {
236+
padding: 0 1rem;
403237
}
404238

405239
.image {
406240
display: none;
407241
}
242+
408243
.panel .content {
409244
padding: 0.5rem 1rem;
410245
}
246+
411247
.container {
412248
padding: 1.5rem;
413249
}
@@ -417,26 +253,11 @@ form.sign-in-form {
417253
left: 50%;
418254
}
419255

420-
.container.sign-up-mode:before {
421-
bottom: 28%;
422-
left: 50%;
256+
.title {
257+
font-size: 1.8rem;
423258
}
424-
}
425-
426259

427-
428-
.homeBtn {
429-
position: absolute;
430-
top: 20px;
431-
left: 20px;
432-
background: #ffffff;
433-
color: #ffffff;
434-
padding: 10px;
435-
border-radius: 10px;
436-
cursor: pointer;
437-
transition: 0.3s;
438-
text-decoration: none;
439-
}
440-
.toggle-password {
441-
cursor: pointer;
260+
.auth-text {
261+
font-size: 1rem;
262+
}
442263
}

0 commit comments

Comments
 (0)