-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFood_Website.html
701 lines (664 loc) · 22.1 KB
/
Food_Website.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
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="assets/css/animate.css">
<title>Food Website</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
scroll-behavior: smooth;
}
.p{
font-weight: 300;
color: #111;
}
.banner{
position: relative;
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: url(assets/food_website/bg.jpg);
background-repeat: no-repeat;
object-fit: cover;
}
.banner .content{
max-width: 900px;
text-align: center;
}
.banner .content h2{
font-size: 5em;
color: #fff;
}
.banner .content p{
font-size: 1em;
color: #fff;
}
.btn{
padding: 10px 30px;
font-size: 1em;
background: #ff0157;
display: inline-block;
margin-top: 10px;
text-transform: uppercase;
letter-spacing: 2px;
text-decoration: none;
transition: 0.5s;
color: #fff;
}
.btn:hover{
letter-spacing: 6px;
}
header{
position: absolute;
width: 100%;
padding: 10px 100px;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: space-between;
transition: 0.5s;
z-index: 99999;
}
header .logo{
color: #fff;
text-decoration: none;
font-size: 2em;
}
header .logo span{
color: #ff0157;
}
header ul{
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
list-style: none;
}
header ul li{
margin-left: 20px;
text-decoration: none;
}
header ul li a{
text-decoration: none;
color: #fff;
font-weight: 300;
font-size: 1em;
}
header ul li a:hover{
color: #ff0157;
}
.sticky{
position: sticky;
background: #fff;
padding: 10px 100px;
box-shadow: rgba(0, 0, 0, 0.05);
}
.sticky .logo{
color: #111;
}
.sticky ul li a{
color: #111;
}
section{
padding: 100px;
}
.row{
position: relative;
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.row .col50{
width: 48%;
}
.titleText{
color: #111;
font-size: 2em;
font-weight: 300;
}
.titleText span{
color: #ff0157;
font-weight: 700;
font-size: 1.5em;
}
.row .col50 .imgBx{
position: relative;
width: 100%;
height: 350px;
}
.row .col50 .imgBx img{
position: absolute;
object-fit: cover;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.title{
width: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.menu .content{
display: flex;
justify-content: center;
flex-wrap: wrap;
flex-direction: row-reverse;
margin-top: 40px;
}
.menu .content .box{
width: 340px;
margin: 20px;
border: 15px solid #fff;
box-shadow: 0px 5px 35px rgba(0, 0, 0, 0.08);
}
.menu .content .box .imgBx{
position: relative;
width: 100%;
height: 300px;
}
.menu .content .box .imgBx img{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.menu .content .box .text{
padding: 15px 0 5px;
}
.menu .content .box .text h3{
font-weight: 400;
color: #111;
}
.menu .view{
display: flex;
align-items: center;
justify-content: center;
}
.expert .content{
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
flex-direction: row;
margin-top: 40px;
}
.expert .content .box{
width: 250px;
margin: 15px;
}
.expert .content .box .imgBx{
position: relative;
width: 100%;
height: 300px;
}
.expert .content .box .imgBx img{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.expert .content .box .text{
padding: 15px 0 5px;
}
.expert .content .box .text h3{
font-weight: 400;
color: #111;
}
.testmonial{
background: url(assets/food_website/bg2.jpg);
background-size: cover;
background-repeat: no-repeat;
}
.testmonial .white
{
color: #fff;
}
.testmonial .content{
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
flex-wrap: wrap;
margin-top: 40px;
}
.testmonial .content .box{
width: 340px;
margin: 20px;
padding: 40px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
background-color: #fff;
}
.testmonial .content .box .imgBx{
position: relative;
width: 80px;
height: 80px;
top: 0;
left: 0;
margin-bottom: 20px;
border-radius: 50%;
overflow: hidden;
}
.testmonial .content .box .imgBx img{
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
}
.testmonial .content .text p{
text-align: center;
color: #666;
font-style: italic;
}
.testmonial .content .text h3{
text-align: center;
font-weight: 600;
margin-top: 20px;
color: #ff0157;
font-size: 1em;
}
.contact{
background: url(assets/food_website/bg3.jpg);
object-fit: cover;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
.contact .contactForm{
padding: 75px 50px;
background: #fff;
box-shadow:0px 15px 50px rgba(0, 0, 0, 0.1);
max-width: 500px;
margin-top: 50px;
}
.contact .contactForm h3{
color: #111;
font-size: 1.2em;
margin-bottom: 20px;
font-weight: 500;
}
.contact .contactForm .inputBox{
position: relative;
width: 100%;
margin-bottom: 20px;
}
.contact .contactForm .inputBox input,
.contact .contactForm .inputBox textarea
{
width: 100%;
border: 1px solid #555;
outline: none;
color: #111;
font-size: 16px;
font-weight: 600;
padding: 10px;
resize: none;
}
.contact .contactForm .inputBox input[type="submit"]{
font-size: 1em;
color: #fff;
background: #ff0157;
display: inline-block;
text-transform: uppercase;
text-decoration: none;
transition: 0.5s;
max-width: 100px;
font-weight: 500;
border: none;
cursor: pointer;
}
.copyrightText{
padding: 8px 40px;
border-top: 1px solid rgba(0, 0, 0, 0.1);
text-align: center;
}
.copyrightText p{
color: #333;
}
.copyrightText a{
color: #ff0157;
font-weight: 500;
text-decoration: none;
}
@media(max-width: 990px){
header,
.sticky
{
padding: 10px 35px;
}
header .navigation{
display: none;
}
header .menuToggle{
position: relative;
width: 40px;
height: 40px;
background: url(assets/food_website/menu.png);
background-repeat: no-repeat;
background-position: center;
background-size: 30px;
}
header .active{
position: relative;
width: 40px;
height: 40px;
background: url(assets/food_website/close.png);
background-repeat: no-repeat;
background-position: center;
background-size: 30px;
}
header .black{
filter: invert(1);
}
header .navActive{
position: fixed;
height: calc(100vh - 68px);
width: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
background: #fff;
top: 68px;
left: 0;
}
header .navigation li{
margin-left: 0;
}
header .navigation li a{
text-decoration: none;
color: #111;
font-size: 1.6em;
font-weight: 600;
line-height: 2;
}
}
@media(max-width: 795px){
section{
padding: 50px;
}
.banner .content h2{
font-size: 4em;
}
.banner .content p{
font-size: 0.7em;
}
.btn{
padding: 7px 15px;
font-size: 0.7em;
}
}
@media(max-width: 725px){
p{
font-size: 0.8em;
}
}
@media(max-width: 385px){
section {
padding: 25px;
}
header, .sticky {
padding: 2px 5px;
}
header .logo {
font-size: 1.7em;
}
header .active {
width: 25px;
height: 25px;
}
header .navActive {
height: calc(100vh - 36px);
top: 36px;
}
.banner .content h2 {
font-size: 2em;
}
.row{
max-width: 100%;
flex-direction: column;
}
.row .col50{
width: 100%;
}
p{
margin: 5px;
text-align: center;
}
menu .content {
margin-top: 0px;
}
.titleText {
text-align: center;
}
}
</style>
</head>
<body>
<header>
<a href="#" class="logo" draggable="false">Food<span>.</span></a>
<div class="menuToggle" onclick="toggleMenu()"></div>
<ul class="navigation">
<li><a href="#banner" draggable="false">Home</a></li>
<li><a href="#about" draggable="false">About</a></li>
<li><a href="#menu" draggable="false">Menu</a></li>
<li><a href="#expert" draggable="false">Experts</a></li>
<li><a href="#testmonial" draggable="false">Testmonials</a></li>
<li><a href="#contact" draggable="false">Contact</a></li>
</ul>
</header>
<section class="banner" id="banner">
<div class="content">
<h2>Always Choose Best</h2>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sapiente sint commodi, eos obcaecati delectus iste deserunt, modi nisi odio nesciunt atq.met consectetur adipisicing elit. Sapiente sint commodi, eos obcaecati delectus iste deserunt, modi nisi odio nesciunt atq.</p>
<a href="#" class="btn">Our Menu</a>
</div>
</section>
<section class="about" id="about">
<div class="row">
<div class="col50">
<h2 class="titleText"><span>A</span>bout Us</h2>
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Adipisci alias iusto deserunt magni? Error iste optio, maxime quisquam tenetur voluptatem vitae culpa recusandae pariatur vel neque, illo doloremque cupiditate aperiam porro sit sint sunt ipsum at voluptates suscipit, fugit ex? Ducimus earum inventore labore unde et similique fugiat ipsum soluta.<br>
<br>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus voluptatum necessitatibus minima veritatis hic officia tempora dicta nulla quia explicabo, praesentium reprehenderit corporis accusantium. Neque aut deserunt a sint quis.
</p>
</div>
<div class="col50">
<div class="imgBx">
<img src="assets/food_website/img1.jpg" alt="About Us">
</div>
</div>
</div>
</section>
<section class="menu" id="menu">
<div class="title">
<h2 class="titleText">Our <span>M</span>enu</h2>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing </p>
</div>
<div class="content">
<div class="box">
<div class="imgBx">
<img src="assets/food_website/menu1.jpg" alt="">
</div>
<div class="text">
<h3>Special Salad</h3>
</div>
</div>
<div class="box">
<div class="imgBx">
<img src="assets/food_website/menu2.jpg" alt="">
</div>
<div class="text">
<h3>Special Soup</h3>
</div>
</div>
<div class="box">
<div class="imgBx">
<img src="assets/food_website/menu3.jpg" alt="">
</div>
<div class="text">
<h3>Special Pasta</h3>
</div>
</div>
<div class="box">
<div class="imgBx">
<img src="assets/food_website/menu4.jpg" alt="">
</div>
<div class="text">
<h3>Special Pasta</h3>
</div>
</div>
<div class="box">
<div class="imgBx">
<img src="assets/food_website/menu5.jpg" alt="">
</div>
<div class="text">
<h3>Special Pasta</h3>
</div>
</div>
<div class="box">
<div class="imgBx">
<img src="assets/food_website/menu6.jpg" alt="">
</div>
<div class="text">
<h3>Special Pasta</h3>
</div>
</div>
</div>
<div class="view"><a href="#" class="btn">View All</a></div>
</section>
<section class="expert" id="expert">
<div class="title">
<h2 class="titleText">Our Kitchen <span>E</span>xperts</h2>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing </p>
</div>
<div class="content">
<div class="box">
<div class="imgBx">
<img src="assets/food_website/expert1.jpg" alt="">
</div>
<div class="text">
<h3>John Doe</h3>
</div>
</div>
<div class="box">
<div class="imgBx">
<img src="assets/food_website/expert2.jpg" alt="">
</div>
<div class="text">
<h3>John Doe</h3>
</div>
</div>
<div class="box">
<div class="imgBx">
<img src="assets/food_website/expert3.jpg" alt="">
</div>
<div class="text">
<h3>John Doe</h3>
</div>
</div>
<div class="box">
<div class="imgBx">
<img src="assets/food_website/expert4.jpg" alt="">
</div>
<div class="text">
<h3>John Doe</h3>
</div>
</div>
</div>
</section>
<section class="testmonial" id="testmonial">
<div class="title white">
<h2 class="titleText white">They <span>S</span>aid About Us</h2>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing </p>
</div>
<div class="content">
<div class="box">
<div class="imgBx">
<img src="assets/food_website/testi1.jpg" alt="">
</div>
<div class="text">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Aspernatur totam eaque rem doloribus iste. Blanditiis praesentium aut harum delectus animi facere sint, dicta adipisci beatae, voluptas ea sapiente molestias assumenda necessitatibus! Perferendis nulla, fuga reiciendis tempore earum optio pariatur minima maiores, minus illo exercitationem expedita, dolores beatae ipsum repellendus rerum.</p>
<h3>John Doe</h3>
</div>
</div>
<div class="box">
<div class="imgBx">
<img src="assets/food_website/testi2.jpg" alt="">
</div>
<div class="text">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Aspernatur totam eaque rem doloribus iste. Blanditiis praesentium aut harum delectus animi facere sint, dicta adipisci beatae, voluptas ea sapiente molestias assumenda necessitatibus! Perferendis nulla, fuga reiciendis tempore earum optio pariatur minima maiores, minus illo exercitationem expedita, dolores beatae ipsum repellendus rerum.</p>
<h3>John Doe</h3>
</div>
</div>
<div class="box">
<div class="imgBx">
<img src="assets/food_website/testi3.jpg" alt="">
</div>
<div class="text">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Aspernatur totam eaque rem doloribus iste. Blanditiis praesentium aut harum delectus animi facere sint, dicta adipisci beatae, voluptas ea sapiente molestias assumenda necessitatibus! Perferendis nulla, fuga reiciendis tempore earum optio pariatur minima maiores, minus illo exercitationem expedita, dolores beatae ipsum repellendus rerum.</p>
<h3>John Doe</h3>
</div>
</div>
</div>
</section>
<section class="contact" id="contact">
<div class="title white">
<h2 class="titleText"><span>C</span>ontact Us</h2>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing </p>
</div>
<div class="contactForm">
<h3>Send Message</h3>
<div class="inputBox">
<input type="text" name="name" placeholder="Name">
</div>
<div class="inputBox">
<input type="text" name="email" placeholder="Email">
</div>
<div class="inputBox">
<textarea placeholder="Address"></textarea>
</div>
<div class="inputBox">
<input type="submit" value="Submit">
</div>
</div>
<div class="copyrightText">
<p>Copyright 2021 <a href="#">JDE Tech</a> All Right Reserved</p>
</div>
</section>
<script>
window.addEventListener("scroll",function(){
const header = document.querySelector('header');
const menu = document.querySelector('.menuToggle');
header.classList.toggle("sticky",window.scrollY>0);
header.classList.toggle("animate__animated",window.scrollY>0);
header.classList.toggle("animate__bounceInDown",window.scrollY>0);
menu.classList.toggle("black",window.scrollY>0)
})
function toggleMenu(){
const menu = document.querySelector(".menuToggle");
const navigation = document.querySelector(".navigation");
menu.classList.toggle("active");
navigation.classList.toggle("navActive");
}
</script>
</body>
</html>