Spaces:
Sleeping
Sleeping
File size: 2,127 Bytes
e47a353 a5ed800 e47a353 a5ed800 e47a353 a5ed800 e47a353 a5ed800 e47a353 a5ed800 e47a353 |
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 |
<!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>
|