Homepage relaunch: contrast fix, heading hierarchy, order widget refactor, final CTA band, depth & polish

This commit is contained in:
2026-08-15 09:35:00 +00:00
parent cc5667bf7b
commit 85334fc4d2
7 changed files with 982 additions and 93 deletions
+12 -1
View File
@@ -158,6 +158,17 @@ var si = 0,
document.getElementById("orderWidgetOverlay").style.display =
"none";
}
// Escape key closes the order widget
document.addEventListener("keydown", function (e) {
if (e.key === "Escape") {
var widget = document.getElementById(
"orderWidgetOverlay",
);
if (widget && widget.style.display === "flex") {
closeOrderWidget();
}
}
});
document
.getElementById("orderServerLocation")
.addEventListener("change", function () {
@@ -185,7 +196,7 @@ var si = 0,
if (code.toLowerCase() === "free trial") {
status.textContent =
"\u2713 Coupon FREE TRIAL applied - 1 month free";
status.style.color = "#28a745";
status.style.color = "#1a7f37";
} else {
status.textContent = "Invalid coupon code";
status.style.color = "#dc3545";