Skip to content

Commit

Permalink
Add feature flag for new title
Browse files Browse the repository at this point in the history
  • Loading branch information
nkalupahana committed Feb 29, 2024
1 parent c0bfeac commit dd6ec20
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<img class="phoneScreenshot" src="/assets/summary-iphone.webp" alt="baseline summary screen" fetchPriority="high" />
</div>
<div class="home-right">
<h1>better mental health, <br class="heading-break" />within <i>your</i> reach</h1>
<h1 id="landing-title">better mental health, <br class="heading-break" />within <i>your</i> reach</h1>
<p>Start journaling and mood tracking with baseline today.</p>
<p>100% free and private.</p>
<div class="downloadButtonsContainer">
Expand Down Expand Up @@ -254,4 +254,10 @@ <h2>Ready to get started?</h2>
} else {
document.addEventListener("DOMContentLoaded", ready);
}

posthog.onFeatureFlags(() => {
if (posthog.getFeatureFlag('new-landing-title-ab') === "test") {
document.getElementById("landing-title").innerHTML = `take <b><i>control</i></b> of <br class="heading-break" /> your mental health`;
}
})
</script>

0 comments on commit dd6ec20

Please sign in to comment.