voicemenu1433 / templates /cart_page.html
lokesh341's picture
Update templates/cart_page.html
a5ed800 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Cart</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.container {
width: 80%;
margin: 50px auto;
}
h1 {
text-align: center;
color: #333;
}
.cart-item {
background-color: #fff;
padding: 20px;
margin: 10px 0;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
.item-name {
font-size: 1.5em;
color: #4CAF50;
}
.item-quantity {
font-size: 1.2em;
color: #555;
}
.item-price {
font-size: 1.2em;
font-weight: bold;
color: #000;
}
.btn-proceed {
padding: 12px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
text-decoration: none;
display: block;
margin-top: 20px;
text-align: center;
}
.btn-proceed:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="container">
<h1>Your Cart</h1>
{% if cart_items %}
<div id="cart-items">
{% for item in cart_items %}
<div class="cart-item">
<div class="item-name">{{ item.name }}</div>
<div class="item-quantity">Quantity: {{ item.quantity }}</div>
<div class="item-price">$ {{ item.price }}</div>
</div>
{% endfor %}
</div>
<a href="/order-summary" class="btn-proceed">Proceed to Order Summary</a>
{% else %}
<p>Your cart is empty. Please add items to your cart.</p>
{% endif %}
</div>
</body>
</html>