Update templates/order.html
Browse files- templates/order.html +30 -15
templates/order.html
CHANGED
|
@@ -8,37 +8,50 @@
|
|
| 8 |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 9 |
<style>
|
| 10 |
body {
|
| 11 |
-
font-family: Arial, sans-serif;
|
| 12 |
-
background-color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
}
|
| 14 |
.order-container {
|
| 15 |
max-width: 768px;
|
| 16 |
-
margin:
|
| 17 |
-
padding:
|
| 18 |
-
background-color: #
|
| 19 |
-
border-radius:
|
| 20 |
-
box-shadow: 0
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
.cart-item {
|
| 23 |
display: flex;
|
| 24 |
align-items: center;
|
| 25 |
justify-content: space-between;
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
| 28 |
}
|
| 29 |
.cart-item img {
|
| 30 |
width: 70px;
|
| 31 |
height: 70px;
|
| 32 |
object-fit: cover;
|
| 33 |
border-radius: 5px;
|
|
|
|
| 34 |
}
|
| 35 |
.cart-item-details {
|
| 36 |
flex: 1;
|
| 37 |
margin-left: 15px;
|
| 38 |
}
|
| 39 |
.cart-item-title {
|
| 40 |
-
font-size:
|
| 41 |
font-weight: bold;
|
|
|
|
| 42 |
}
|
| 43 |
.cart-item-addons,
|
| 44 |
.cart-item-instructions {
|
|
@@ -47,7 +60,8 @@
|
|
| 47 |
}
|
| 48 |
.cart-item-actions {
|
| 49 |
font-size: 1.2rem;
|
| 50 |
-
|
|
|
|
| 51 |
}
|
| 52 |
.order-summary {
|
| 53 |
text-align: right;
|
|
@@ -56,13 +70,13 @@
|
|
| 56 |
.total-price {
|
| 57 |
font-size: 1.5rem;
|
| 58 |
font-weight: bold;
|
| 59 |
-
color: #
|
| 60 |
}
|
| 61 |
.back-to-menu {
|
| 62 |
display: block;
|
| 63 |
margin: 30px auto 10px auto;
|
| 64 |
-
padding: 10px;
|
| 65 |
-
background-color: #ff5722;
|
| 66 |
color: #ffffff;
|
| 67 |
border: none;
|
| 68 |
border-radius: 25px;
|
|
@@ -83,6 +97,7 @@
|
|
| 83 |
color: #ffffff;
|
| 84 |
text-align: center;
|
| 85 |
padding: 15px 10px;
|
|
|
|
| 86 |
}
|
| 87 |
footer p {
|
| 88 |
margin: 0;
|
|
@@ -123,7 +138,7 @@
|
|
| 123 |
|
| 124 |
<!-- Price -->
|
| 125 |
<div class="cart-item-actions">
|
| 126 |
-
<strong
|
| 127 |
</div>
|
| 128 |
</div>
|
| 129 |
{% endfor %}
|
|
|
|
| 8 |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 9 |
<style>
|
| 10 |
body {
|
| 11 |
+
font-family: 'Arial', sans-serif;
|
| 12 |
+
background-color: #fdf4e3; /* Light cream background */
|
| 13 |
+
color: #333333; /* Dark gray text */
|
| 14 |
+
margin: 0;
|
| 15 |
+
padding: 0;
|
| 16 |
+
display: flex;
|
| 17 |
+
flex-direction: column;
|
| 18 |
+
min-height: 100vh;
|
| 19 |
}
|
| 20 |
.order-container {
|
| 21 |
max-width: 768px;
|
| 22 |
+
margin: 40px auto;
|
| 23 |
+
padding: 20px;
|
| 24 |
+
background-color: #ffffff; /* White card background */
|
| 25 |
+
border-radius: 15px;
|
| 26 |
+
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
|
| 27 |
+
border: 1px solid #ffe5b4; /* Light orange border */
|
| 28 |
+
flex-grow: 1;
|
| 29 |
}
|
| 30 |
.cart-item {
|
| 31 |
display: flex;
|
| 32 |
align-items: center;
|
| 33 |
justify-content: space-between;
|
| 34 |
+
background-color: #fffcf5; /* Slightly lighter beige */
|
| 35 |
+
border-radius: 8px;
|
| 36 |
+
border: 1px solid #ffe5b4; /* Light orange border */
|
| 37 |
+
padding: 10px;
|
| 38 |
+
margin-bottom: 10px;
|
| 39 |
}
|
| 40 |
.cart-item img {
|
| 41 |
width: 70px;
|
| 42 |
height: 70px;
|
| 43 |
object-fit: cover;
|
| 44 |
border-radius: 5px;
|
| 45 |
+
border: 1px solid #ffcc80; /* Light orange border around images */
|
| 46 |
}
|
| 47 |
.cart-item-details {
|
| 48 |
flex: 1;
|
| 49 |
margin-left: 15px;
|
| 50 |
}
|
| 51 |
.cart-item-title {
|
| 52 |
+
font-size: 1.2rem;
|
| 53 |
font-weight: bold;
|
| 54 |
+
color: #c04e01; /* Warm orange color for the title */
|
| 55 |
}
|
| 56 |
.cart-item-addons,
|
| 57 |
.cart-item-instructions {
|
|
|
|
| 60 |
}
|
| 61 |
.cart-item-actions {
|
| 62 |
font-size: 1.2rem;
|
| 63 |
+
font-weight: bold;
|
| 64 |
+
color: #2b9348; /* Green for the price */
|
| 65 |
}
|
| 66 |
.order-summary {
|
| 67 |
text-align: right;
|
|
|
|
| 70 |
.total-price {
|
| 71 |
font-size: 1.5rem;
|
| 72 |
font-weight: bold;
|
| 73 |
+
color: #2b9348; /* Green for the total price */
|
| 74 |
}
|
| 75 |
.back-to-menu {
|
| 76 |
display: block;
|
| 77 |
margin: 30px auto 10px auto;
|
| 78 |
+
padding: 10px 20px;
|
| 79 |
+
background-color: #ff5722; /* Bright orange button */
|
| 80 |
color: #ffffff;
|
| 81 |
border: none;
|
| 82 |
border-radius: 25px;
|
|
|
|
| 97 |
color: #ffffff;
|
| 98 |
text-align: center;
|
| 99 |
padding: 15px 10px;
|
| 100 |
+
margin-top: auto;
|
| 101 |
}
|
| 102 |
footer p {
|
| 103 |
margin: 0;
|
|
|
|
| 138 |
|
| 139 |
<!-- Price -->
|
| 140 |
<div class="cart-item-actions">
|
| 141 |
+
<strong>{{ item_parts[3].strip().replace('Price:', '') }}</strong>
|
| 142 |
</div>
|
| 143 |
</div>
|
| 144 |
{% endfor %}
|