Update templates/menu_page.html
Browse files- templates/menu_page.html +83 -0
templates/menu_page.html
CHANGED
@@ -192,3 +192,86 @@
|
|
192 |
|
193 |
</body>
|
194 |
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
|
193 |
</body>
|
194 |
</html>
|
195 |
+
|
196 |
+
<!DOCTYPE html>
|
197 |
+
<html lang="en">
|
198 |
+
<head>
|
199 |
+
<meta charset="UTF-8">
|
200 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
201 |
+
<title>Your Cart</title>
|
202 |
+
<style>
|
203 |
+
body {
|
204 |
+
font-family: Arial, sans-serif;
|
205 |
+
background-color: #f4f4f4;
|
206 |
+
margin: 0;
|
207 |
+
padding: 0;
|
208 |
+
}
|
209 |
+
.container {
|
210 |
+
width: 80%;
|
211 |
+
margin: 50px auto;
|
212 |
+
}
|
213 |
+
h1 {
|
214 |
+
text-align: center;
|
215 |
+
color: #333;
|
216 |
+
}
|
217 |
+
.cart-item {
|
218 |
+
background-color: #fff;
|
219 |
+
padding: 20px;
|
220 |
+
margin: 10px 0;
|
221 |
+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
|
222 |
+
border-radius: 8px;
|
223 |
+
}
|
224 |
+
.item-name {
|
225 |
+
font-size: 1.5em;
|
226 |
+
color: #4CAF50;
|
227 |
+
}
|
228 |
+
.item-quantity {
|
229 |
+
font-size: 1.2em;
|
230 |
+
color: #555;
|
231 |
+
}
|
232 |
+
.item-price {
|
233 |
+
font-size: 1.2em;
|
234 |
+
font-weight: bold;
|
235 |
+
color: #000;
|
236 |
+
}
|
237 |
+
.btn-proceed {
|
238 |
+
padding: 12px 20px;
|
239 |
+
background-color: #4CAF50;
|
240 |
+
color: white;
|
241 |
+
border: none;
|
242 |
+
border-radius: 4px;
|
243 |
+
cursor: pointer;
|
244 |
+
text-decoration: none;
|
245 |
+
display: block;
|
246 |
+
margin-top: 20px;
|
247 |
+
text-align: center;
|
248 |
+
}
|
249 |
+
.btn-proceed:hover {
|
250 |
+
background-color: #45a049;
|
251 |
+
}
|
252 |
+
</style>
|
253 |
+
</head>
|
254 |
+
<body>
|
255 |
+
|
256 |
+
<div class="container">
|
257 |
+
<h1>Your Cart</h1>
|
258 |
+
|
259 |
+
{% if cart_items %}
|
260 |
+
<div id="cart-items">
|
261 |
+
{% for item in cart_items %}
|
262 |
+
<div class="cart-item">
|
263 |
+
<div class="item-name">{{ item.name }}</div>
|
264 |
+
<div class="item-quantity">Quantity: {{ item.quantity }}</div>
|
265 |
+
<div class="item-price">$ {{ item.price }}</div>
|
266 |
+
</div>
|
267 |
+
{% endfor %}
|
268 |
+
</div>
|
269 |
+
|
270 |
+
<a href="/order-summary" class="btn-proceed">Proceed to Order Summary</a>
|
271 |
+
{% else %}
|
272 |
+
<p>Your cart is empty. Please add items to your cart.</p>
|
273 |
+
{% endif %}
|
274 |
+
</div>
|
275 |
+
|
276 |
+
</body>
|
277 |
+
</html>
|