Spaces:
Runtime error
Runtime error
Update templates/cart.html
Browse files- templates/cart.html +77 -6
templates/cart.html
CHANGED
@@ -121,9 +121,67 @@
|
|
121 |
margin: 0 5px;
|
122 |
}
|
123 |
.cart-summary {
|
124 |
-
|
125 |
-
|
126 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
|
128 |
.suggestion-section {
|
129 |
margin-top: 20px;
|
@@ -263,9 +321,22 @@
|
|
263 |
</select>
|
264 |
</div>
|
265 |
{% endif %}
|
266 |
-
<
|
267 |
-
|
268 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
<button class="checkout-button" onclick="proceedToOrder()">Proceed to Order</button>
|
270 |
</div>
|
271 |
</div>
|
|
|
121 |
margin: 0 5px;
|
122 |
}
|
123 |
.cart-summary {
|
124 |
+
text-align: left;
|
125 |
+
margin-top: 15px;
|
126 |
+
padding: 20px;
|
127 |
+
background-color: #fff;
|
128 |
+
border-radius: 12px;
|
129 |
+
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
|
130 |
+
}
|
131 |
+
|
132 |
+
.bill-details {
|
133 |
+
display: grid;
|
134 |
+
grid-template-columns: 1fr 1fr; /* Two-column layout */
|
135 |
+
grid-gap: 10px;
|
136 |
+
margin-bottom: 10px;
|
137 |
+
}
|
138 |
+
|
139 |
+
.bill-details .label {
|
140 |
+
font-weight: 600;
|
141 |
+
font-size: 1rem;
|
142 |
+
}
|
143 |
+
|
144 |
+
.bill-details .amount {
|
145 |
+
text-align: right;
|
146 |
+
font-weight: 600;
|
147 |
+
font-size: 1rem;
|
148 |
+
}
|
149 |
+
|
150 |
+
.dotted-line {
|
151 |
+
border-bottom: 2px dotted #ccc;
|
152 |
+
margin: 15px 0;
|
153 |
+
}
|
154 |
+
|
155 |
+
.total-bill {
|
156 |
+
display: grid;
|
157 |
+
grid-template-columns: 1fr 1fr;
|
158 |
+
font-weight: 600;
|
159 |
+
font-size: 1.2rem;
|
160 |
+
margin-top: 10px;
|
161 |
+
}
|
162 |
+
|
163 |
+
.total-bill .label {
|
164 |
+
font-size: 1.1rem;
|
165 |
+
}
|
166 |
+
|
167 |
+
.total-bill .amount {
|
168 |
+
text-align: right;
|
169 |
+
font-size: 1.1rem;
|
170 |
+
color: #0FAA39; /* Green color for total */
|
171 |
+
}
|
172 |
+
|
173 |
+
.checkout-button {
|
174 |
+
background-color: #0FAA39;
|
175 |
+
color: #fff;
|
176 |
+
padding: 12px;
|
177 |
+
border-radius: 8px;
|
178 |
+
border: none;
|
179 |
+
width: 100%;
|
180 |
+
font-size: 1.2rem;
|
181 |
+
cursor: pointer;
|
182 |
+
transition: background-color 0.3s, color 0.3s;
|
183 |
+
}
|
184 |
+
|
185 |
|
186 |
.suggestion-section {
|
187 |
margin-top: 20px;
|
|
|
321 |
</select>
|
322 |
</div>
|
323 |
{% endif %}
|
324 |
+
<div class="bill-details">
|
325 |
+
<div class="label">Cart Total</div>
|
326 |
+
<div class="amount">${{ subtotal }}</div>
|
327 |
+
|
328 |
+
<div class="label">Discount</div>
|
329 |
+
<div class="amount">-${{ discount }}</div>
|
330 |
+
|
331 |
+
|
332 |
+
</div>
|
333 |
+
|
334 |
+
<div class="dotted-line"></div>
|
335 |
+
|
336 |
+
<div class="total-bill">
|
337 |
+
<div class="label">To Pay</div>
|
338 |
+
<div class="amount">₹{{ total_bill }}</div>
|
339 |
+
</div>
|
340 |
<button class="checkout-button" onclick="proceedToOrder()">Proceed to Order</button>
|
341 |
</div>
|
342 |
</div>
|