Skip to content

Commit

Permalink
Fixed #1644 - Updated featured branch button to go through OAuth flow…
Browse files Browse the repository at this point in the history
… when on treatment branch.
  • Loading branch information
maxxcrawford committed Apr 22, 2020
1 parent ec4b731 commit 9856dce
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
5 changes: 5 additions & 0 deletions public/css/monitor.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
margin-bottom: 0;
}

.featured-breach.experiment-subhead h2.landing-headline {
margin-bottom: 22px;
}

.landing-bottom-bar {
background-image: url(/img/landing/background-noodle-middle.svg), linear-gradient(224deg, #2150c8, #712291);
background-repeat: no-repeat;
Expand Down Expand Up @@ -137,6 +141,7 @@ h3.sb-callout {
min-height: 100vh;
}

.featured-breach.experiment-subhead h2.landing-headline,
.featured-breach h2.landing-headline,
h2.landing-headline,
.landing-subhead {
Expand Down
4 changes: 4 additions & 0 deletions template-helpers/homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ function makeLanding(args) {
body: LocaleUtils.fluentFormat(locales, "sensitive-sites-copy"),
});
}
// Growth Experiment
if (featuredBreach && experimentBranchB) {
landingCopy.subhead = "Your free Firefox account alerts you if you’ve been involved in a known data breach.";
}

return args.fn(landingCopy);

Expand Down
2 changes: 1 addition & 1 deletion views/monitor.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{!< default }}
<main class="container monitor-homepage clear-header {{#if featuredBreach}} featured-breach {{/if}} {{#if featuredBreach.IsSensitive}} sensitive-landing {{/if}}" data-page-label={{> analytics/landing_page_label }}>
<main class="container monitor-homepage clear-header {{#if featuredBreach}} featured-breach {{/if}} {{#if featuredBreach.IsSensitive}} sensitive-landing {{/if}} {{#if experimentBranchB}} experiment-subhead {{/if}}" data-page-label={{> analytics/landing_page_label }}>
<section class="row jst-cntr monitor-landing">
<div class="col-12 flx-cntr landing-content">
{{#makeLanding}}
Expand Down
12 changes: 8 additions & 4 deletions views/partials/forms/scan-email-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,21 @@
{{/if}}
<div class="input-group-button">
{{#if featuredBreach}}
<input type="submit" value="{{ getString "find-out" }}"/>
{{#if experimentBranchB}}
<input type="submit" class="open-oauth" {{> analytics/fxa id="fx-monitor-create-account-blue-btn-find-out" }} value="{{ getString "find-out" }}"/>
{{else}}
<input type="submit" value="{{ getString "find-out" }}"/>
{{/if}}
{{else if experimentBranchB}}
<input type="submit" class="open-oauth" {{> analytics/fxa id="fx-monitor-create-account-blue-btn" }} value="Get Started"/>
<input type="submit" class="open-oauth" {{> analytics/fxa id="fx-monitor-create-account-blue-btn-get-started" }} value="Get Started"/>
{{else}}
<input type="submit" value="{{ getString "check-for-breaches" }}"/>
{{/if}}
{{> forms/loader }}
</div>
</form>
{{#if experimentBranchB}}
<p class="paragraph form-desc txt-cntr txt-purple7 experiment">Firefox browser not required for a Firefox Account. You may receive info about Mozilla&nbsp;services.</p>
<p class="paragraph form-desc txt-cntr txt-purple7 experiment">Firefox browser not required for a Firefox Account. You may receive info about Mozilla&nbsp;services.</p>
{{else}}
<p class="paragraph form-desc txt-cntr txt-purple7">{{ getString "search-for-your-email" }}</p>
<p class="paragraph form-desc txt-cntr txt-purple7">{{ getString "search-for-your-email" }}</p>
{{/if}}

0 comments on commit 9856dce

Please sign in to comment.