-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
248 lines (237 loc) · 11.3 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
<!-- CSS Project 2 - Using Flexbox -->
<!-- https://youtu.be/2OV78vriYhY?si=2O0c9DbOCxMi7t54 -->
<!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="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>CSS Project 2 - Restaurant Website | Harshit Vashisth</title>
</head>
<body>
<nav class="navbar">
<div class="navbar-container container">
<input type="checkbox">
<div class="hamburger-lines">
<span class="line line1"></span>
<span class="line line2"></span>
<span class="line line3"></span>
</div>
<ul class="menu-items">
<li><a href="#showcase">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#food">Catagory</a></li>
<li><a href="#food-menu">Menu</a></li>
<li><a href="#testimonials">Testimonial</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<h1 class="logo">RW</h1>
</div>
</nav>
<section class="showcase-area" id="showcase">
<div class="showcase-container">
<h1 class="main-title">Eat Right Food</h1>
<p>Eat healthy food, it is good for your health.</p>
<a href="#food-menu" class="btn btn-primary">Menu</a>
</div>
</section>
<section id="about">
<div class="about-wrapper container">
<div class="about-txt">
<p class="small">About Us</p>
<h2>We've been making healthy foods for last 10 years.</h2>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Illum quos magnam, numquam dicta quaerat laborum odio, praesentium unde labore necessitatibus eligendi id? Fuga ducimus, officia dolores excepturi ratione a corrupti veniam asperiores sit, aliquam quia perferendis corporis voluptates suscipit eos.</p>
</div>
<div class="about-img">
<img src="./IMG/about-photo.jpg" alt="About Us">
</div>
</div>
</section>
<section id="food">
<h2>Types of Food</h2>
<div class="food-container container">
<div class="food-type fruit">
<div class="img-container">
<img src="./IMG/food1.jpg" alt="">
<div class="img-content">
<h3>Fruits</h3>
<a href="#" class="btn btn-primary" target="_blank">Learn More</a>
</div>
</div>
</div>
<div class="food-type veges">
<div class="img-container">
<img src="./IMG/food2.jpg" alt="">
<div class="img-content">
<h3>Veges</h3>
<a href="#" class="btn btn-primary" target="_blank">Learn More</a>
</div>
</div>
</div>
<div class="food-type grain">
<div class="img-container">
<img src="./IMG/food3.jpg" alt="">
<div class="img-content">
<h3>Grain</h3>
<a href="#" class="btn btn-primary" target="_blank">Learn More</a>
</div>
</div>
</div>
</div>
</section>
<section id="food-menu">
<h2 class="food-menu-heading">Food Menu</h2>
<div class="food-menu-container container">
<div class="food-menu-item">
<div class="food-image">
<img src="./IMG/food-menu1.jpg" alt="">
</div>
<div class="food-description">
<h2 class="food-title">Food Menu Item 1</h2>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Corrupti, omnis.</p>
<p class="food-price">Price: ₹ 250</p>
</div>
</div>
<div class="food-menu-item">
<div class="food-image">
<img src="./IMG/food-menu2.jpg" alt="">
</div>
<div class="food-description">
<h2 class="food-title">Food Menu Item 2</h2>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Corrupti, omnis.</p>
<p class="food-price">Price: ₹ 250</p>
</div>
</div>
<div class="food-menu-item">
<div class="food-image">
<img src="./IMG/food-menu3.jpg" alt="">
</div>
<div class="food-description">
<h2 class="food-title">Food Menu Item 3</h2>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Corrupti, omnis.</p>
<p class="food-price">Price: ₹ 250</p>
</div>
</div>
<div class="food-menu-item">
<div class="food-image">
<img src="./IMG/food-menu4.jpg" alt="">
</div>
<div class="food-description">
<h2 class="food-title">Food Menu Item 4</h2>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Corrupti, omnis.</p>
<p class="food-price">Price: ₹ 250</p>
</div>
</div>
<div class="food-menu-item">
<div class="food-image">
<img src="./IMG/food-menu5.jpg" alt="">
</div>
<div class="food-description">
<h2 class="food-title">Food Menu Item 5</h2>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Corrupti, omnis.</p>
<p class="food-price">Price: ₹ 250</p>
</div>
</div>
<div class="food-menu-item">
<div class="food-image">
<img src="./IMG/food-menu6.jpg" alt="">
</div>
<div class="food-description">
<h2 class="food-title">Food Menu Item 6</h2>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Corrupti, omnis.</p>
<p class="food-price">Price: ₹ 250</p>
</div>
</div>
</div>
</section>
<section id="testimonials">
<h2 class="testimonial-title">What Our Customers Say</h2>
<div class="testimonial-container container">
<div class="testimonial-box">
<div class="star-rating">
<span class="fa fa-star checked"></span>
<span class="fa fa-star checked"></span>
<span class="fa fa-star checked"></span>
<span class="fa fa-star checked"></span>
<span class="fa fa-star checked"></span>
</div>
<p class="testimonial-text">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Commodi autem dolor molestias amet reiciendis. Nesciunt.</p>
<div class="cutomer-details">
<div class="customer-photo"><img src="./IMG/male-photo1.jpg" alt=""></div>
<p class="customer-name">John Doe</p>
</div>
</div>
<div class="testimonial-box">
<div class="star-rating">
<span class="fa fa-star checked"></span>
<span class="fa fa-star checked"></span>
<span class="fa fa-star checked"></span>
<span class="fa fa-star checked"></span>
<span class="fa fa-star checked"></span>
</div>
<p class="testimonial-text">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Commodi autem dolor molestias amet reiciendis. Nesciunt.</p>
<div class="cutomer-details">
<div class="customer-photo"><img src="./IMG/male-photo2.jpg" alt=""></div>
<p class="customer-name">Jay Doe</p>
</div>
</div>
<div class="testimonial-box">
<div class="star-rating">
<span class="fa fa-star checked"></span>
<span class="fa fa-star checked"></span>
<span class="fa fa-star checked"></span>
<span class="fa fa-star checked"></span>
<span class="fa fa-star checked"></span>
</div>
<p class="testimonial-text">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Commodi autem dolor molestias amet reiciendis. Nesciunt.</p>
<div class="cutomer-details">
<div class="customer-photo"><img src="./IMG/male-photo3.jpg" alt=""></div>
<p class="customer-name">Jolly Doe</p>
</div>
</div>
</div>
</section>
<section id="contact">
<div class="contact-container container">
<div class="contact-img">
<img src="./IMG/restraunt-image.jpg" alt="">
</div>
<div class="form-container">
<h2>Contact Us</h2>
<input type="text" name="" id="" placeholder="Name">
<input type="email" name="" id="" placeholder="E-Mail">
<textarea name="" id="" cols="30" rows="10" placeholder="Type your message here"></textarea>
<a href="#" class="btn btn-primary">Submit</a>
</div>
</div>
</section>
<footer id="footer">
<h2>Restaurant Website © all rights reserved.</h2>
</footer>
<!-- ############################# Unknwon JavaScript Code for - Smooth Scrolling ############################# -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
// Add smooth scrolling to all links
$("a").on('click', function(event) {
// Make sure this.hash has a value before overriding default behavior
if (this.hash !== "") {
// Prevent default anchor click behavior
event.preventDefault();
// Store hash
var hash = this.hash;
// Using jQuery's animate() method to add smooth page scroll
// The optional number (600) specifies the number of milliseconds it takes to scroll to the specified area
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 600, function(){
// Add hash (#) to URL when done scrolling (default click behavior)
window.location.hash = hash;
});
} // End if
});
});
</script>
</body>
</html>