Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +11 -1
templates/cart.html
CHANGED
@@ -75,12 +75,22 @@
|
|
75 |
color: #fff;
|
76 |
padding: 5px 20px;
|
77 |
font-size: 1rem;
|
|
|
78 |
cursor: pointer;
|
79 |
border-radius: 5px;
|
|
|
|
|
80 |
}
|
81 |
.apply-button:disabled {
|
82 |
background-color: #6c757d;
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
}
|
|
|
84 |
.checkout-button {
|
85 |
background-color: #007bff;
|
86 |
color: #fff;
|
@@ -131,7 +141,7 @@
|
|
131 |
<option value="{{ coupon.Coupon_Code__c }}">{{ coupon.Coupon_Code__c }}</option>
|
132 |
{% endfor %}
|
133 |
</select>
|
134 |
-
<button type="button" onclick="applyCoupon()">Apply Coupon</button>
|
135 |
<p id="coupon-message" class="coupon-message"></p>
|
136 |
</div>
|
137 |
|
|
|
75 |
color: #fff;
|
76 |
padding: 5px 20px;
|
77 |
font-size: 1rem;
|
78 |
+
font-weight: bold;
|
79 |
cursor: pointer;
|
80 |
border-radius: 5px;
|
81 |
+
border: none;
|
82 |
+
transition: background-color 0.3s ease, transform 0.2s ease;
|
83 |
}
|
84 |
.apply-button:disabled {
|
85 |
background-color: #6c757d;
|
86 |
+
cursor: not-allowed;
|
87 |
+
}
|
88 |
+
|
89 |
+
.apply-button:hover {
|
90 |
+
background-color: #218838; /* Darker green on hover */
|
91 |
+
transform: scale(1.05); /* Slightly enlarge the button when hovered */
|
92 |
}
|
93 |
+
|
94 |
.checkout-button {
|
95 |
background-color: #007bff;
|
96 |
color: #fff;
|
|
|
141 |
<option value="{{ coupon.Coupon_Code__c }}">{{ coupon.Coupon_Code__c }}</option>
|
142 |
{% endfor %}
|
143 |
</select>
|
144 |
+
<button type="button" class="apply-button" onclick="applyCoupon()">Apply Coupon</button>
|
145 |
<p id="coupon-message" class="coupon-message"></p>
|
146 |
</div>
|
147 |
|