|
<!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-price { |
|
font-size: 1.2em; |
|
font-weight: bold; |
|
color: #000; |
|
} |
|
.item-quantity { |
|
font-size: 1.2em; |
|
color: #555; |
|
} |
|
.btn-proceed { |
|
padding: 10px; |
|
background-color: #4CAF50; |
|
color: white; |
|
border: none; |
|
border-radius: 4px; |
|
cursor: pointer; |
|
text-decoration: none; |
|
} |
|
.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> |
|
|