-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
412 lines (358 loc) · 11 KB
/
index.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
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
<!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" />
<link rel="icon" type="image/x-icon"
href="//assets.faasos.io/order.faasos.io/production/app/public/images/faviconFaasos.png" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
integrity="sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link href="https://fonts.googleapis.com/css2?family=Mulish:wght@300;400;500;600;700;800&display=swap"
rel="stylesheet" />
<title>Order Food Online from Faasos | Zero Contact Delivery</title>
<link rel="stylesheet" href="./styles/landing_page.css" />
<link rel="stylesheet" href="./styles/footer.css" />
<script type="module" defer src="./scripts/landing_page.js"></script>
<!-- login section -->
<style>
#lscontainer {
margin-top: 1.8rem;
display: flex;
width: 100vw;
position: absolute;
z-index: 5001;
}
#lsdiv {
display: none;
flex-direction: column;
align-content: space-between;
/* position: absolute; */
z-index: 5001;
width: 30vw;
border: 1px solid dimgray;
font-family: sans-serif;
background-color: white;
padding: 1.8em 1em 0 1em;
border-radius: 0.3em;
margin: auto;
}
.login-1,
.signup-1 {
display: flex;
justify-content: space-between;
}
.login-1 img,
.signup-1 img {
width: 15px;
object-fit: contain;
}
.login-1 h3,
.signup-1 h3 {
display: flex;
font-weight: 800;
font-size: 1.4rem;
color: rgb(51, 51, 51);
margin: 0;
margin-bottom: 0.3em;
/* margin-left: 2.5rem; */
}
.login-1 h3>img,
.signup-1 h3>img {
margin-top: -0.5rem;
margin-right: 1.5rem;
}
#lsdiv>div>p {
color: rgb(126, 126, 126);
font-size: 0.9rem;
white-space: normal;
/* font-weight: 400; */
margin: 0;
}
.ls-input {
margin-top: 3em;
display: flex;
flex-direction: column;
}
#signin-input {
margin-top: 0.8em;
}
.ls-input>input {
margin: 0.6em 0;
background-color: transparent;
padding: 0.8em 0;
width: 100%;
border: 1.5px solid rgb(224, 224, 224);
border-radius: 0.2em;
text-align: center;
color: rgb(51, 51, 51);
font-size: 1.05rem;
}
#login-cont {
font-weight: 800;
margin-bottom: 8rem;
background-color: rgb(255, 211, 68);
border-color: rgb(255, 211, 68);
}
#signup-create {
font-weight: 800;
margin-bottom: 1.75rem;
background-color: rgb(255, 211, 68);
border-color: rgb(255, 211, 68);
}
#lsdiv>p {
color: rgb(126, 126, 126);
font-size: 0.9rem;
white-space: normal;
text-align: center;
padding: 0.8em 0;
background-color: rgb(244, 244, 245);
margin: 0 -1em 0 -1em;
letter-spacing: 0.01em;
}
#lsdiv>p>span {
font-weight: 600;
color: rgb(59, 30, 108)
}
#loginUIOverlay {
position: absolute;
display: none;
top: 0px;
left: 0px;
width: 0px;
height: 0px;
background-color: rgba(0, 0, 0, 0.6);
opacity: 1;
overflow: hidden auto;
/* filter: alpha(opacity=70); */
z-index: 5000;
}
#thumbs-up {
width: 80px;
height: 75px;
margin-top: -1rem;
/* margin-right: -1rem; */
}
</style>
<!-- login section -->
</head>
<body>
<!-- login section -->
<div id="loginUIOverlay"></div>
<div id="lscontainer">
<div id="lsdiv"></div>
</div>
<!-- login section -->
<div id="main">
<div id="main-left">
<div class="main-left-header">
<img src="https://assets.faasos.io/faasos_v2/faasosLogoBrand.svg" alt="faasos logo" />
<div class="buttons">
<button onclick="goToLogin()">Login</button>
<button onclick="goToSignup()">Sign Up</button>
</div>
</div>
<h1>Surprises under wraps</h1>
<div id="location">
<input type="text" placeholder="Enter your delivery location" />
<p>
<span><i class="fa-solid fa-location-crosshairs"></i></span> Locate
Me
</p>
<p>FIND FOOD</p>
</div>
</div>
<div id="main-right">
<img src="https://assets.faasos.io/faasos_v2/faasos-hero-banner.jpg" alt="hero banner" />
</div>
</div>
<!--? section-1 -->
<div id="section-1">
<div class="section-1-header">
<h2>Eat Good, Eat Safe. Always! Now with the EatSure promise.</h2>
<p>
To keep your food safe and hygienic, here are some proactive steps
that we have been taking.
</p>
</div>
<div class="section-1-main">
<div class="section-1-left">
<div>
<img src="./assets/landing_page/bike.png" alt="" />
<div>
<h4>Real-time Temperature</h4>
<span>Tracking of the kitchen and delivery staff</span>
</div>
</div>
<div>
<img src="./assets/landing_page/stop.png" alt="" />
<div>
<h4>Contactless Delivery</h4>
</div>
</div>
<div>
<img src="./assets/landing_page/face.png" alt="" />
<div>
<h4>Regular health</h4>
<span>check-ups for the staff members</span>
</div>
</div>
</div>
<div class="section-1-right">
<iframe width="400" height="223" src="https://www.youtube.com/embed/SBGKA87fmCM"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
</div>
</div>
</div>
<!--? section-2 -->
<div id="section-2">
<div>
<img src="https://assets.faasos.io/faasos_v2/esSafetyLogo.svg" alt="eat sure logo" />
</div>
<div>
<span>✓</span>
<p>Medically Certified Staff</p>
</div>
<div>
<span>✓</span>
<p>200+ Stringent Quality Checks</p>
</div>
<div>
<span>✓</span>
<p>No Artificial Colors or Flavours</p>
</div>
<div>
<span>✓</span>
<p>Double Sealed Packaging</p>
</div>
<div><button>Know More</button></div>
</div>
<!--? section - 3 -->
<div id="section-3">
<h4>Here are some additional measures which our kitchen teams are rigorously follwing!</h4>
<div class="section-3-main">
<div>
<img src="https://assets.faasos.io/faasos_v2/mask1.svg" alt="">
<p>Using masks all the time.</p>
</div>
<div>
<img src="https://assets.faasos.io/faasos_v2/staff2.svg" alt="">
<p>Maintaining a log of kitchen staff’s body temperature.</p>
</div>
<div>
<img src="https://assets.faasos.io/faasos_v2/safety3.svg" alt="">
<p>Using handwash frequently to clean hands.</p>
</div>
<div>
<img src="https://assets.faasos.io/faasos_v2/kitchenSurface4.svg" alt="">
<p>Sanitising all the kitchen surfaces, every 4 hours.</p>
</div>
<div>
<img src="https://assets.faasos.io/faasos_v2/delivery_5.png" alt="">
<p>Delivering food in an enclosed sealed package to avoid contamination.</p>
</div>
</div>
</div>
<div id="footer"></div>
</body>
</html>
<script>
let lsUserData = JSON.parse(localStorage.getItem('lsUserData')) || [];
function goToLogin() {
document.getElementById('loginUIOverlay').setAttribute('style', 'display:block;width:100vw;height:100vh');
let content =
`<div>
<div class="login-1">
<h3>
<img src="https://img.icons8.com/external-becris-lineal-becris/2x/external-left-arrow-mintab-for-ios-becris-lineal-becris.png" onclick=goBackFromLogin()>
Login
</h3>
<img id="thumbs-up" src="thumbsup2.png">
</div>
<p>Enter your phone number to continue</p>
</div>
<div class="ls-input">
<!-- <input value="+91"> -->
<input type="number" placeholder="Phone number" id="lNumber">
<input type="submit" value="CONTINUE" id="login-cont" onclick="checkUserData()">
</div>
<p>Don’t have an account? <span id="goToSignup" onclick="goToSignup()">Sign up</span> </p>`;
document.getElementById('lsdiv').innerHTML = content;
document.getElementById('lsdiv').setAttribute('style', 'display:flex');
}
function goToSignup() {
document.getElementById('loginUIOverlay').setAttribute('style', 'display:block;width:100vw;height:100vh');
let content =
`<div>
<div class="signup-1">
<h3>
<img src="https://img.icons8.com/external-becris-lineal-becris/2x/external-left-arrow-mintab-for-ios-becris-lineal-becris.png" onclick=goBackFromLogin()>
Sign Up
</h3>
<img id="thumbs-up" src="thumbsup2.png">
</div>
<p>Create a account with new phone number</p>
</div>
<div class="ls-input" id="signin-input">
<!-- <input value="+91"> -->
<input type="number" placeholder="Phone number" id="ls-number">
<input type="text" placeholder="Name" id="ls-name">
<input type="email" placeholder="Email Address" id="ls-email">
<input type="submit" value="CREATE ACCOUNT" id="signup-create" onclick=addUserData()>
</div>
<p>Already have an account? <span id="goToLogin" onclick="goToLogin()">Log in</span> </p>`;
document.getElementById('lsdiv').innerHTML = content;
document.getElementById('lsdiv').setAttribute('style', 'display:flex');
}
function goBackFromLogin() {
document.getElementById('lsdiv').setAttribute('style', 'display:none');
document.getElementById('loginUIOverlay').setAttribute('style', 'display:none');
}
function goToLSVerify() {
let content =
`<div>
<div class="login-1">
<h3>
<img src="https://img.icons8.com/external-becris-lineal-becris/2x/external-left-arrow-mintab-for-ios-becris-lineal-becris.png" onclick=goBackFromLogin()>
Verify Details
</h3>
<img id="thumbs-up" src="thumbsup2.png">
</div>
<p>OTP sent</p>
</div>
<div class="ls-input">
<!-- <input value="+91"> -->
<input type="number" placeholder="Enter OTP" id="lOTP">
<input type="submit" value="VERIFY" id="login-cont" onclick="goBackHomePage()">
</div>
<p>Don’t have an account? <span id="goToSignup" onclick="goToSignup()">Sign up</span> </p>`;
document.getElementById('lsdiv').innerHTML = content;
}
function addUserData() {
let temp = {};
let lsNumber = document.getElementById('ls-number').value;
let lsName = document.getElementById('ls-name').value;
let lsEmail = document.getElementById('ls-email').value;
temp['lsNumber'] = lsNumber;
temp['lsName'] = lsName;
temp['lsEmail'] = lsEmail;
// console.log(temp);
lsUserData.push(temp);
localStorage.setItem('lsUserData', JSON.stringify(lsUserData));
goToLogin();
}
function checkUserData() {
let lNumber = document.getElementById('lNumber').value;
for (let i = 0; i < lsUserData.length; i++) {
if (lNumber == lsUserData[i].lsNumber) {
goToLSVerify();
}
}
}
function goBackHomePage() {
window.location.href = "./HomePage/index1.html"
}
</script>