Skip to content

Commit

Permalink
Update from main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
msali123 committed Sep 29, 2023
2 parents 0d166b2 + 612af36 commit 17918cd
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
1 change: 0 additions & 1 deletion posts.txt

This file was deleted.

18 changes: 10 additions & 8 deletions website/_includes/growthbook.html
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}*/
}
});
});
</script>
16 changes: 15 additions & 1 deletion website/_includes/home/v2/hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ <h1 class="font-medium text-5xl sm:text-7xl text-center xl:text-left text-slate-
</a>
</div>

<p class="text-center xl:text-left text-slate-400">Open Source on <a class="underline" href="https://github.com/earthly/earthly">GitHub</a></p>
<!-- Gavin, homepage-hero-install-no-login-test, 20230926: Added div, p inside existed -->
<div id="homepage-hero-install-no-login-control">
<p class="text-center xl:text-left text-slate-400">Open Source on <a class="underline" href="https://github.com/earthly/earthly">GitHub</a></p>
</div>
<!-- Gavin, homepage-hero-install-no-login-test, 20230926: Added div -->
<div id="homepage-hero-install-no-login-test" style="display: none;">
<p class="text-center xl:text-left text-slate-400 text-sm">Open Source on <a class="underline" href="https://github.com/earthly/earthly">GitHub</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="underline" href="https://earthly.dev/get-earthly" onclick="homepageHeroInstallNoLoginClick()">Install Earthly w/o logging in</a></p>
</div>

<div class="absolute bottom-0 right-0 hidden min-[1800px]:flex" style="margin-bottom: -64px; top: 88px;">
{% svg assets/svg/earthly-animation.svg class="h-full absolute -right-32" %}
Expand All @@ -47,4 +54,11 @@ <h1 class="font-medium text-5xl sm:text-7xl text-center xl:text-left text-slate-
label: 'homepage-get-started-free-click'
});
}

function homepageHeroInstallNoLoginClick() {
analytics.track('homepage-hero-install-no-login-click', {
category: 'Install No Login Click',
label: 'homepage-hero-install-no-login-click'
});
}
</script>

0 comments on commit 17918cd

Please sign in to comment.