Spaces:
Sleeping
Sleeping
Update templates/order.html
Browse files- templates/order.html +50 -13
templates/order.html
CHANGED
|
@@ -9,44 +9,57 @@
|
|
| 9 |
<style>
|
| 10 |
body {
|
| 11 |
font-family: 'Arial', sans-serif;
|
| 12 |
-
background-color: #
|
|
|
|
|
|
|
|
|
|
| 13 |
}
|
|
|
|
| 14 |
.order-container {
|
| 15 |
max-width: 768px;
|
| 16 |
margin: 40px auto;
|
| 17 |
padding: 20px;
|
| 18 |
background-color: #ffffff; /* White card background */
|
| 19 |
border-radius: 15px;
|
| 20 |
-
box-shadow: 0
|
|
|
|
| 21 |
}
|
|
|
|
| 22 |
.order-title {
|
| 23 |
font-size: 2rem;
|
| 24 |
font-weight: bold;
|
| 25 |
-
color: #
|
| 26 |
text-align: center;
|
| 27 |
margin-bottom: 20px;
|
| 28 |
}
|
|
|
|
| 29 |
.section-title {
|
| 30 |
font-size: 1.5rem;
|
| 31 |
font-weight: bold;
|
| 32 |
-
color: #
|
| 33 |
margin-bottom: 10px;
|
| 34 |
}
|
|
|
|
| 35 |
.order-details {
|
| 36 |
-
background-color: #
|
| 37 |
-
border-radius:
|
| 38 |
padding: 15px;
|
| 39 |
font-size: 1rem;
|
| 40 |
line-height: 1.8;
|
| 41 |
-
color: #
|
| 42 |
}
|
|
|
|
| 43 |
.order-item {
|
| 44 |
margin-bottom: 10px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
}
|
| 46 |
-
|
| 47 |
-
color: #ff5722; /* Bright orange for key details */
|
| 48 |
-
font-weight: bold;
|
| 49 |
-
}
|
| 50 |
.order-summary {
|
| 51 |
margin-top: 20px;
|
| 52 |
font-size: 1.2rem;
|
|
@@ -54,9 +67,33 @@
|
|
| 54 |
text-align: right;
|
| 55 |
color: #333333; /* Dark gray */
|
| 56 |
}
|
|
|
|
| 57 |
.total-price {
|
| 58 |
font-size: 1.8rem;
|
| 59 |
-
color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
}
|
| 61 |
</style>
|
| 62 |
</head>
|
|
@@ -72,7 +109,7 @@
|
|
| 72 |
<div class="order-details">
|
| 73 |
{% for line in order.Order_Details__c.split('\n') %}
|
| 74 |
<div class="order-item">
|
| 75 |
-
{{ line | safe }}
|
| 76 |
</div>
|
| 77 |
{% endfor %}
|
| 78 |
</div>
|
|
|
|
| 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 |
}
|
| 17 |
+
|
| 18 |
.order-container {
|
| 19 |
max-width: 768px;
|
| 20 |
margin: 40px auto;
|
| 21 |
padding: 20px;
|
| 22 |
background-color: #ffffff; /* White card background */
|
| 23 |
border-radius: 15px;
|
| 24 |
+
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow for modern look */
|
| 25 |
+
border: 1px solid #ffe5b4; /* Light orange border */
|
| 26 |
}
|
| 27 |
+
|
| 28 |
.order-title {
|
| 29 |
font-size: 2rem;
|
| 30 |
font-weight: bold;
|
| 31 |
+
color: #c04e01; /* Warm orange color for the title */
|
| 32 |
text-align: center;
|
| 33 |
margin-bottom: 20px;
|
| 34 |
}
|
| 35 |
+
|
| 36 |
.section-title {
|
| 37 |
font-size: 1.5rem;
|
| 38 |
font-weight: bold;
|
| 39 |
+
color: #555555; /* Slightly lighter dark gray */
|
| 40 |
margin-bottom: 10px;
|
| 41 |
}
|
| 42 |
+
|
| 43 |
.order-details {
|
| 44 |
+
background-color: #fff5e1; /* Soft beige for the details section */
|
| 45 |
+
border-radius: 10px;
|
| 46 |
padding: 15px;
|
| 47 |
font-size: 1rem;
|
| 48 |
line-height: 1.8;
|
| 49 |
+
color: #4a4a4a; /* Medium gray text for readability */
|
| 50 |
}
|
| 51 |
+
|
| 52 |
.order-item {
|
| 53 |
margin-bottom: 10px;
|
| 54 |
+
padding: 10px;
|
| 55 |
+
background-color: #fffcf5; /* Slightly lighter beige for individual items */
|
| 56 |
+
border-radius: 8px;
|
| 57 |
+
border: 1px solid #ffe5b4; /* Light orange border for separation */
|
| 58 |
+
display: flex;
|
| 59 |
+
justify-content: space-between;
|
| 60 |
+
align-items: center;
|
| 61 |
}
|
| 62 |
+
|
|
|
|
|
|
|
|
|
|
| 63 |
.order-summary {
|
| 64 |
margin-top: 20px;
|
| 65 |
font-size: 1.2rem;
|
|
|
|
| 67 |
text-align: right;
|
| 68 |
color: #333333; /* Dark gray */
|
| 69 |
}
|
| 70 |
+
|
| 71 |
.total-price {
|
| 72 |
font-size: 1.8rem;
|
| 73 |
+
color: #2b9348; /* Green for the total price */
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
/* Responsive Design */
|
| 77 |
+
@media (max-width: 768px) {
|
| 78 |
+
.order-container {
|
| 79 |
+
padding: 15px;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
.order-title {
|
| 83 |
+
font-size: 1.6rem;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.section-title {
|
| 87 |
+
font-size: 1.3rem;
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
.order-details {
|
| 91 |
+
font-size: 0.9rem;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
.total-price {
|
| 95 |
+
font-size: 1.5rem;
|
| 96 |
+
}
|
| 97 |
}
|
| 98 |
</style>
|
| 99 |
</head>
|
|
|
|
| 109 |
<div class="order-details">
|
| 110 |
{% for line in order.Order_Details__c.split('\n') %}
|
| 111 |
<div class="order-item">
|
| 112 |
+
<span>{{ line | safe }}</span>
|
| 113 |
</div>
|
| 114 |
{% endfor %}
|
| 115 |
</div>
|