lokesh341 commited on
Commit
e47a353
·
verified ·
1 Parent(s): 6ddba4d

Create cart_page.html

Browse files
Files changed (1) hide show
  1. templates/cart_page.html +79 -0
templates/cart_page.html ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Your Cart</title>
7
+ <style>
8
+ body {
9
+ font-family: Arial, sans-serif;
10
+ background-color: #f4f4f4;
11
+ margin: 0;
12
+ padding: 0;
13
+ }
14
+ .container {
15
+ width: 80%;
16
+ margin: 50px auto;
17
+ }
18
+ h1 {
19
+ text-align: center;
20
+ color: #333;
21
+ }
22
+ .cart-item {
23
+ background-color: #fff;
24
+ padding: 20px;
25
+ margin: 10px 0;
26
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
27
+ border-radius: 8px;
28
+ }
29
+ .item-name {
30
+ font-size: 1.5em;
31
+ color: #4CAF50;
32
+ }
33
+ .item-price {
34
+ font-size: 1.2em;
35
+ font-weight: bold;
36
+ color: #000;
37
+ }
38
+ .item-quantity {
39
+ font-size: 1.2em;
40
+ color: #555;
41
+ }
42
+ .btn-proceed {
43
+ padding: 10px;
44
+ background-color: #4CAF50;
45
+ color: white;
46
+ border: none;
47
+ border-radius: 4px;
48
+ cursor: pointer;
49
+ text-decoration: none;
50
+ }
51
+ .btn-proceed:hover {
52
+ background-color: #45a049;
53
+ }
54
+ </style>
55
+ </head>
56
+ <body>
57
+
58
+ <div class="container">
59
+ <h1>Your Cart</h1>
60
+
61
+ {% if cart_items %}
62
+ <div id="cart-items">
63
+ {% for item in cart_items %}
64
+ <div class="cart-item">
65
+ <div class="item-name">{{ item.name }}</div>
66
+ <div class="item-quantity">Quantity: {{ item.quantity }}</div>
67
+ <div class="item-price">$ {{ item.price }}</div>
68
+ </div>
69
+ {% endfor %}
70
+ </div>
71
+
72
+ <a href="/order-summary" class="btn-proceed">Proceed to Order Summary</a>
73
+ {% else %}
74
+ <p>Your cart is empty. Please add items to your cart.</p>
75
+ {% endif %}
76
+ </div>
77
+
78
+ </body>
79
+ </html>