-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
267 lines (233 loc) · 8.14 KB
/
index.html
File metadata and controls
267 lines (233 loc) · 8.14 KB
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
<!-- NAVIGATION BAR -->
<header>
<nav class="navbar">
<h1 class="logo">My Restaurant</h1>
<ul class="nav-links">
<li><a href="#menu">Menu</a></li>
<li><a href="#cart">Cart </a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<!-- MENU SECTION -->
<section id="menu">
<h2>Menu</h2>
<div class="food-item">
<h3>Burger</h3>
<p>Ksh 300</p>
<button onclick="addToCart('Burger', 300)">Add to Cart</button>
</div>
<div class="food-item">
<h3>Pizza</h3>
<p>Ksh 800</p>
<button onclick="addToCart('Pizza', 800)">Add to Cart</button>
</div>
</section>
<!-- CART SECTION -->
<section id="cart">
<h2>Your Cart</h2>
<ul id="cart-items"></ul>
<p>Total: Ksh <span id="total">0</span></p>
</section>
<!-- CONTACT -->
<section id="contact">
<h2>Contact</h2>
<p>Call us: 0712345678</p>
</section>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grey Cafe</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- Header / Navbar -->
<div class="header">
<div class="container">
<div class="navbar">
<div class="logo">
<h2>Grey Cafe</h2>
</div>
<nav>
<ul id="menuItems">
<li><a href="#menu">Menu</a></li>
<li><a href="#about">About Us</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
<span id="cafeStatus"></span>
<!-- <img
src="https://images.unsplash.com/photo-1495474472287-4d71bcdd2085"
width="30px"
height="30px" -->
class="menu-icon"
onclick="menutoggle()"
/>
</div>
</div>
</div>
<!-- Hero Section -->
<div class="hero">
<div class="container">
<!-- Countdown Timer -->
<div id="countdown"></div>
<div class="row">
<div class="col-2">
<h1>Welcome to Grey Cafe<br />Good Coffee, Good Vibes</h1>
<p>
We serve handcrafted coffee, teas, and pastries made with love.<br />
Whether you need a morning boost or a cozy afternoon break,<br />
Grey Cafe is your place to be.
</p>
<a href="#menu" class="btn">See Our Menu →</a>
</div>
<div class="col-2">
<!-- <img src="https://images.unsplash.com/photo-1495474472287-4d71bcdd2085" /> -->
</div>
</div>
</div>
</div>
<!-- Categories -->
<div class="categories">
<div class="small-container">
<div class="row">
<div class="col-3">
<h4>HOT DRINKS</h4>
<!-- <img src="https://images.unsplash.com/photo-1593443320739-77f74939d0da" /> -->
</div>
<div class="col-3">
<h4>COLD DRINKS</h4>
<!-- <img src="https://images.unsplash.com/photo-1527156231393-7023794f363c" /> -->
</div>
<div class="col-3">
<h4>FOOD & PASTRIES</h4>
<!-- <img src="https://images.unsplash.com/photo-1530610476181-d83430b64dcd" /> -->
</div>
</div>
</div>
</div>
<!-- Menu -->
<div class="search-box">
<input type="text" id="searchBox" placeholder="Search Menu..." onkeyup="filterMenu()" />
</div>
<div id="menu">
<h2 class="title">Our Menu</h2>
<div class="small-container">
<div class="row">
<div class="menu-card">
<!-- <img src="https://images.unsplash.com/photo-1705952285570-113e76f63fb0" /> -->
<h3>Espresso</h3>
<p>A rich and bold shot of pure coffee.</p>
<span class="price">Ksh 200</span>
<span class="stock" id="stock-espresso"></span>
<button onclick="addToOrder('espresso', 200)">Add to Order</button>
</div>
<div class="menu-card">
<!-- <img src="https://images.unsplash.com/photo-1561882468-9110e03e0f78" /> -->
<h3>Latte</h3>
<p>Smooth espresso with steamed milk.</p>
<span class="price">Ksh 300</span>
<span class="stock" id="stock-latte"></span>
<button onclick="addToOrder('latte', 300)">Add to Order</button>
</div>
<div class="menu-card">
<!-- <img src="https://images.unsplash.com/photo-1593443320739-77f74939d0da" /> -->
<h3>Cappuccino</h3>
<p>Espresso topped with thick milk foam.</p>
<span class="price">Ksh 300</span>
<span class="stock" id="stock-cappuccino"></span>
<button onclick="addToOrder('cappuccino', 300)">Add to Order</button>
</div>
<div class="menu-card">
<!-- <img src="https://images.unsplash.com/photo-1536256263959-770b48d82b0a" /> -->
<h3>Matcha Latte</h3>
<p>Earthy matcha blended with creamy milk.</p>
<span class="price">Ksh 350</span>
<span class="stock" id="stock-matcha"></span>
<button onclick="addToOrder('matcha', 350)">Add to Order</button>
</div>
<div class="menu-card">
<!-- <img src="https://images.unsplash.com/photo-1527156231393-7023794f363c" /> -->
<h3>Cold Brew</h3>
<p>Slow-steeped coffee served over ice.</p>
<span class="price">Ksh 350</span>
<span class="stock" id="stock-cold-brew"></span>
<button onclick="addToOrder('cold-brew', 350)">Add to Order</button>
</div>
<div class="menu-card">
<!-- <img src="https://images.unsplash.com/photo-1530610476181-d83430b64dcd" /> -->
<h3>Croissant</h3>
<p>Buttery and flaky, baked fresh daily.</p>
<span class="price">Ksh 150</span>
<span class="stock" id="stock-croissant"></span>
<button onclick="addToOrder('croissant', 150)">Add to Order</button>
</div>
</div>
</div>
</div>
<!-- Order -->
<div class="order-summary">
<h3>Your Order</h3>
<ul id="orderList"></ul>
<p id="orderTotal">Total: Ksh 0</p>
<button onclick="clearOrder()">Clear Order</button>
</div>
<!-- About -->
<div id="about">
<div class="small-container">
<div class="row">
<div class="col-3">
<h2>Our Story</h2>
<p>Grey Cafe started a small corner shop with a big dream - to serve awesome coffee to awesome people.</p>
</div>
<div class="col-3">
<h2>Our promise</h2>
<p>Every cup is made with freshly ground beans and the finest ingredients. No shortcuts, ever.</p>
</div>
</div>
</div>
</div>
<!-- Footer and Contact -->
<div id="contact">
<div class="footer">
<div class="container">
<div class="row">
<div class="foooter-col-1">
<h3>Opening Hours</h3>
<p>Mon - Fri: 7am - 8pm</p>
<p>Sat - Sun: 8am - 6pm</p>
</div>
<div class="footer-col-2">
<h3>Grey Cafe</h3>
<p>Good Coffee, Good Vibes</p>
</div>
<div class="footer-col-3">
<h3>Find Us</h3>
<ul>
<li>1738 Westlands, Nairobi</li>
<li>info@greycafe.com</li>
<li>+254 712 345 678</li>
</ul>
</div>
<div class="footer-col-4">
<h3>Follow Us</h3>
<p>Instagram | Twitter | Facebook</p>
<div class="contact-form">
<h3>Get In Touch</h3>
<input type="text" id="contactName" placeholder="Your Name" />
<input type="email" id="contactEmail" placeholder="Your Email" />
<textarea id="contactMessage" placeholder="Your Message"></textarea>
<button onclick="validateForm()">Send Message</button>
</div>
</div>
</div>
<hr />
<p class="copyright">Copyright 2024 - Grey Cafe</p>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>