From b6b9a0f20504793e98621e97e0ca8b210d55fa36 Mon Sep 17 00:00:00 2001 From: G14 Date: Sun, 18 Sep 2016 23:17:30 +0500 Subject: [PATCH] update maitre logic on form submit --- src/css/main.css | 6 ++---- src/sass/index.scss | 6 ++---- src/waitlist.html | 14 +++++++++++--- src/welcome.html | 4 ++-- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/css/main.css b/src/css/main.css index 932ce06..73cfc59 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -1316,10 +1316,8 @@ a.maitre-widget-social { font-weight: 400; font-size: 1.1em; } #maitre-content p[data-maitre-instructions] { - margin-top: 20px; - color: #999; - font-weight: 300; - font-size: 1em; } + margin-top: 12px; + color: #808591; } #maitre-content div[data-maitre-share-container] { padding-top: 50px; } diff --git a/src/sass/index.scss b/src/sass/index.scss index eace528..5d16f14 100644 --- a/src/sass/index.scss +++ b/src/sass/index.scss @@ -1367,10 +1367,8 @@ a.maitre-widget-social { font-size: 1.1em; } p[data-maitre-instructions] { - margin-top: 20px; - color: #999; - font-weight: 300; - font-size: 1em; + margin-top: 12px; + color: #808591; } div[data-maitre-share-container] { padding-top: 50px; diff --git a/src/waitlist.html b/src/waitlist.html index 7c25a30..aa276b7 100644 --- a/src/waitlist.html +++ b/src/waitlist.html @@ -100,6 +100,9 @@ }, afterSuccess: function(data, form) { + console.log(data); + + jQuery("#maitre-people-behind-number").html("0"); jQuery("#maitre-share-plain-url").on('click', function () { var link = document.createRange(); @@ -117,16 +120,21 @@ }); if (data.response == "subscriber_created") { - jQuery(".status-text").removeClass('shown'); jQuery("#maitre-verification").html( "Remember to confirm your email to be added to the signup queue.
Improve your position by referring your friends and spreading the word."); - jQuery("#maitre-people-behind-number").html("0"); - jQuery("#maitre-share-plain-url").html("https://status.im/invite/" + data.code) + jQuery("#maitre-share-plain-url").html("https://status.im/invite/" + data.code); jQuery(".gradient-text").empty(); ga('send', 'event', 'Waitlist', 'Sign Up', 'Waitlist'); } + + if (data.response == "subscriber_retrieved") { + jQuery(".status-text").removeClass('shown'); + jQuery("#maitre-header").html("You're already on the Waitlist!"); + jQuery("#maitre-instructions").html("You'll be notifed when Status is ready to launch.
Your position on the waitlist is shown below. Get access sooner by spreading the word!"); + jQuery("#maitre-share-plain-url").html("https://status.im/invite/" + data.code); + } }, } }; diff --git a/src/welcome.html b/src/welcome.html index 61ff015..8cfe0cd 100644 --- a/src/welcome.html +++ b/src/welcome.html @@ -97,13 +97,13 @@

Thanks for confirming your email.

You'll be notifed when Status is ready to launch.
Help us spread the word by inviting your friends! The more friends you invite, the sooner you'll get access:

- +

Or share your unique link: