From 2421f2cec5d26a46ea62f7e451ff414153126300 Mon Sep 17 00:00:00 2001
From: Gavin <57272374+thtmnisamnstr@users.noreply.github.com>
Date: Tue, 26 Sep 2023 18:02:31 -0700
Subject: [PATCH 1/2] homepage-hero-install-no-login-test ab test changes
(#667)
Signed-off-by: thtmnisamnstr
---
website/_includes/growthbook.html | 18 ++++++++++--------
website/_includes/home/v2/hero.html | 16 +++++++++++++++-
2 files changed, 25 insertions(+), 9 deletions(-)
diff --git a/website/_includes/growthbook.html b/website/_includes/growthbook.html
index bf4cd9088..f7646a80b 100644
--- a/website/_includes/growthbook.html
+++ b/website/_includes/growthbook.html
@@ -26,18 +26,20 @@
// Wait for features to be available
gb.loadFeatures({ autoRefresh: true, timeout: 2000 }).then(() => {
// console.log("Features loaded");
- /*if(document.getElementById("homepage-shorter-copy-benefits-1-headline-control")){
+
+ // Gavin, homepage-hero-install-no-login-test, 20230926: Configured for homepage-hero-install-no-login-test
+ if(document.getElementById("homepage-hero-install-no-login-control")){
//console.log("control element rendered");
- const shortCopy = gb.isOn("homepage-shorter-copy")
- if(shortCopy) {
- document.getElementById("homepage-shorter-copy-benefits-1-headline-control").style.display = "none";
- document.getElementById("homepage-shorter-copy-benefits-1-headline-test").style.display = "block";
+ const testOn = gb.isOn("homepage-hero-install-no-login")
+ if(testOn) {
+ document.getElementById("homepage-hero-install-no-login-control").style.display = "none";
+ document.getElementById("homepage-hero-install-no-login-test").style.display = "block";
} else {
- document.getElementById("homepage-shorter-copy-benefits-1-headline-control").style.display = "block";
- document.getElementById("homepage-shorter-copy-benefits-1-headline-test").style.display = "none";
+ document.getElementById("homepage-hero-install-no-login-control").style.display = "block";
+ document.getElementById("homepage-hero-install-no-login-test").style.display = "none";
}
- }*/
+ }
});
});
\ No newline at end of file
diff --git a/website/_includes/home/v2/hero.html b/website/_includes/home/v2/hero.html
index 8a723f00b..30fa6ad6f 100644
--- a/website/_includes/home/v2/hero.html
+++ b/website/_includes/home/v2/hero.html
@@ -26,7 +26,14 @@ Open Source on GitHub
+
+
+
Open Source on GitHub
+
+
+
{% svg assets/svg/earthly-animation.svg class="h-full absolute -right-32" %}
@@ -47,4 +54,11 @@