-
Notifications
You must be signed in to change notification settings - Fork 1
/
loginOTP.html
392 lines (318 loc) · 10.6 KB
/
loginOTP.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Verify with OTP</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap" rel="stylesheet">
<style>
/* ---------------------------------------Header CSS Start------------------------------------------------ */
* {
box-sizing: border-box;
}
body {
font-family: 'Montserrat', sans-serif;
width: 98.18%;
}
#Header {
position: sticky;
top: 0;
left: 0;
background-color: white;
margin-top: -6px;
}
a {
text-decoration: none;
font-size: 15px;
color: black;
}
#topNavbar {
display: flex;
justify-content: space-around;
background-color: #eee;
padding: 5px;
}
.left>a {
margin-left: 10px;
text-decoration: none;
font-size: 10px;
font-weight: 600;
}
.right>a {
margin-left: 10px;
text-decoration: none;
font-size: 10px;
font-weight: 600;
}
.search {
width: 25%;
background: #eaeaea;
color: rgba(0, 0, 0, .5);
border: 1px solid transparent;
border-radius: 8px;
padding: 10px;
font-weight: 600;
font-size: 0.51em;
}
#searchLogo>img {
width: 40px;
height: 40px;
padding: 10px;
}
input::selection {
background-color: white;
color: black;
}
.moblogo {
width: 20px;
}
#midNavbar {
display: flex;
justify-content: space-around;
width: 80%;
margin: auto;
box-sizing: border-box;
margin-top: 0.30%;
}
.midMid {
font-size: 17px;
padding: 10px;
margin-right: 20%;
}
.midMid>a {
margin-left: 25px;
margin: 0px 10px 0px 10px;
font-size: 12px;
font-weight: 600;
}
#bottomNavbar>a:hover,
.midMid>a:hover {
border-bottom: 4px solid #fdd835;
}
.midRight {
border-left: 1px solid black;
padding: 10px;
}
.midRight>a>img {
width: 24px;
margin: 0.00100%;
}
#bottomNavbar {
display: flex;
justify-content: space-around;
width: 40%;
margin: auto;
}
#bottomNavbar>a {
font-weight: 600;
}
#bottomNavbar>a>p {
font-size: 16px;
font-weight: 500;
}
#bottomNavbar>a>p:hover {
font-weight: bolder;
}
.imglogo {
width: 150px;
padding: 10px;
}
/*--------------------------------------------------- Header CSS END ---------------------------------------------------------*/
html,
body {
height: 100%;
}
body {
background-image: linear-gradient(0deg, #fff4c4, #fff);
text-align: center;
font-family: 'Montserrat', sans-serif;
padding: 0 0 0 0.5em;
}
#container>h4 {
margin-top: 0;
font-weight: 800;
}
#container>p {
font-size: 0.8rem;
color: darkgray;
font-weight: 600;
}
#container>hr {
margin-top: 0;
margin-bottom: 2em;
width: 30%;
border-top: 0;
border-left: 0;
border-right: 0;
border-bottom: 0.5px solid darkgray;
}
#container {
margin: auto;
padding: 1em 1em 1em 1em;
background-color: snow;
width: 85%;
}
#container>#mobile {
margin-bottom: 0.2rem;
font-weight: 800;
}
#container>#otp {
background-color: transparent;
border: 0.5px solid darkgray;
border-top: 0;
border-left: 0;
border-right: 0;
height: 9vh;
/* width: 40%; */
font-size: 1.5em;
text-align: center;
}
#container>.text2 {
color: rgb(68, 181, 185);
font-weight: 400;
}
#container>.text3 {
margin-top: 2.3em;
font-size: 0.7em;
}
.arrow-con {
border: solid rgb(68, 181, 185);
border-width: 0 2px 2px 0;
display: inline-block;
padding: 5px;
/* border-width: thin; */
}
.right-con {
transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
}
#container>#submit {
margin-top: 0.8em;
/* background-color: rgb(143, 143, 143); */
background-color: #42a2a2;
color: snow;
border: none;
font-family: 'Montserrat', sans-serif;
width: 40%;
padding: 0.9em;
border-radius: 0.2em;
}
#container>.inv {
color: transparent;
margin-top: 0.4em;
margin-bottom: 1.5em;
font-size: 0.7em;
}
#container>#inv {
color: #d24141;
}
/*------------------------------------- Scrool Bar Design------------------------------------------------- */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(#3838389c, #1312127a);
border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(#5ca3a6, #0051ff);
}
/*--------------------------------------- Scrool Bar Design End-------------------------------------------------- */
</style>
</head>
<body>
<!-- <************************************************Header **************************************> -->
<div id="Header">
<!-- <************************************************Top Navbar **************************************> -->
<div id="topNavbar">
<!-------------------------Left Part ------------------------------>
<div class="left">
<a href="">Offers</a>
<a href="">Fanbook</a>
<a href="">Download App</a>
<a href="">TriBe Membership</a>
</div>
<!------------------------ Right Part ------------------>
<div class="right">
<a href="">Contact Us</a>
<a href="">Track Order</a>
</div>
</div>
<!-- <************************************************Mid Navbar **************************************> -->
<div id="midNavbar">
<!------------------------------------------ Left Part -------------------------------------------------->
<div class="midLeft">
<div>
<a href="Homepage.html"><img class="imglogo"
src="https://images.bewakoof.com/web/bewakoof-primary-logo-white-bg-2x-1635745564.png"
alt=""></a>
</div>
</div>
<!------------------------------------------ Mid Part -------------------------------------------------->
<div class="midMid">
<a href="Mens.html">MEN</a>
<a href="Womens.html">WOMEN</a>
<a href="Accessories.html">ACCESSORIES</a>
</div>
<a id="searchLogo" href=""><img src="https://cdn-icons-png.flaticon.com/128/54/54481.png" alt=""></a>
<input type="text" class="search" placeholder="Search by product, categories or collection">
<!------------------------------------------ Right Part -------------------------------------------------->
<div class="midRight">
<a href="login.html"><img
src="https://cdn2.iconfinder.com/data/icons/e-commerce-line-4-1/1024/user4-128.png" alt=""></a>
<a href="wishlist.html"><img
src="https://cdn0.iconfinder.com/data/icons/small-n-flat/24/678087-heart-128.png" alt=""></a>
<a href="AddToCart.html"><img
src="https://cdn1.iconfinder.com/data/icons/shopping-346/24/buy-bag-cart-shop-shopping-128.png"
alt=""></a>
</div>
</div>
<hr>
<!-- <************************************************Bottom Navbar **************************************> -->
<!-- <div id="bottomNavbar">
<a href="">
<p>MEN</p>
</a>
<a href="">
<p>WOMEN</p>
</a>
<a href="">
<p>ACCESSORIES</p>
</a>
</div> -->
</div>
<!-- <h1 style="margin: 0;">main page content</h1> -->
<div id="container">
<h4>Verify with OTP</h4>
<p> Sent to </p>
<p id="mobile"></p>
<hr>
<p> Enter OTP </p>
<input type="number" id="otp" maxlength="4">
<p class="inv">Please enter a valid OTP.</p>
<p class="text2"> RESEND OTP </p>
<p class="text2 text3" id="loginP"> Login with password <span> <i class="arrow-con right-con"></i> </span> </p>
<input type="submit" value="LOGIN" id="submit">
</div>
</body>
</html>
<script>
let phone = JSON.parse(localStorage.getItem('userContactNo'));
document.getElementById('mobile').textContent = phone;
function loginWithPass() {
window.location.href = "loginPass.html";
}
document.getElementById('loginP').addEventListener('click', loginWithPass);
function loginWithOtp() {
console.log(typeof (document.getElementById('otp').value))
if (document.getElementById('otp').value == "1234") {
window.location.href = "Homepage.html";
} else {
document.getElementsByClassName('inv')[0].setAttribute('id', 'inv');
}
}
document.getElementById('submit').addEventListener('click', loginWithOtp)
</script>