Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Signup links for black friday #316

Merged
merged 2 commits into from
Nov 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/app/containers/SignupContainer/SignupContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ const SignupContainer = ({ match, history, onLogin, stopRedirect }) => {
</div>
);

const isBlackFridayCoupon = appliedCoupon && appliedCoupon.code === 'BF2019';
const homepageUrl = isBlackFridayCoupon ? 'https://protonvpn.com/blackfriday' : 'https://protonvpn.com';

return (
<PublicPage title={c('Title').t`Sign up`}>
<main className="flex flex-item-fluid main-area--noHeader">
Expand All @@ -183,12 +186,13 @@ const SignupContainer = ({ match, history, onLogin, stopRedirect }) => {
selectedPlan.planName !== PLAN.BUNDLE_PLUS ? (
<Button onClick={() => history.goBack()}>{c('Action').t`Back`}</Button>
) : (
<Href className="pm-button" url="https://protonvpn.com" target="_self">{c('Action')
.t`Homepage`}</Href>
<Href className="pm-button" url={homepageUrl} target="_self">
{isBlackFridayCoupon ? c('Action').t`Back` : c('Action').t`Homepage`}
</Href>
))}
</div>
<div className="onmobile-min-w100 onmobile-aligncenter onmobile-mt0-5">
<Href url="https://protonvpn.com" target="_self">
<Href url={homepageUrl} target="_self">
<VpnLogo className="fill-primary" />
</Href>
</div>
Expand Down