Commit 74524569 by Matthew Piatetsky Committed by GitHub

Merge pull request #15616 from edx/LEARNER-1726

LEARNER-1726 Track Selection V3
parents 7d9cc90c c8250fd5
...@@ -4,22 +4,26 @@ ...@@ -4,22 +4,26 @@
// Please list the ticket number of the experiment // Please list the ticket number of the experiment
// -------------------- // --------------------
// LEARNER-1312 Track Selection V2 // LEARNER-1726 Track Selection V3
/* This css was added as part of the LEARNER-1312 experiment */ /* This css was added as part of the LEARNER-1726 experiment */
.v2.register-choice { .v2.register-choice {
margin: 0 2% 20px 0 !important margin: 0 2% 20px 0 !important
} }
.v2.register-choice-certificate .list-actions { .v2.register-choice-certificate .list-actions {
text-align: left !important; text-align: left !important;
} }
.v2.register-choice-donate .list-actions { .v2.register-choice-donate .list-actions {
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
.v2.register-choice-donate .action-select { .v2.register-choice-donate .action-select {
display: inline-block !important; display: inline-block !important;
list-style-type: none !important; list-style-type: none !important;
width: 100% !important; width: 100% !important;
} }
.v2.register-choice-donate .donation-link { .v2.register-choice-donate .donation-link {
display: inline-block !important; display: inline-block !important;
padding: 10px 15px !important; padding: 10px 15px !important;
...@@ -30,219 +34,361 @@ ...@@ -30,219 +34,361 @@
text-align: center !important; text-align: center !important;
color: #D7548E !important; color: #D7548E !important;
float: left !important; float: left !important;
font-size: 15px;
font-weight: 500 !important;
} }
@media (min-width: 375px) {
.donation-link {
font-size: 16px;
}
}
.v2.register-choice-v2-audit { .v2.register-choice-v2-audit {
height: 250px !important; height: 300px;
background: none !important; background: none !important;
border-top-color: grey !important; border-top-color: grey !important;
border-top-width: 1px !important; border-top-width: 1px !important;
} }
@media screen and (min-width: 375px) {
.v2.register-choice-v2-audit {
height: 250px;
}
}
.v2.register-choice-v2-audit .list-actions { .v2.register-choice-v2-audit .list-actions {
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
.v2.register-choice-v2-audit .list-actions input { .v2.register-choice-v2-audit .list-actions input {
background: transparent !important; background: transparent !important;
color: #0075b4 !important; color: #0075b4 !important;
box-shadow: none !important; box-shadow: none !important;
text-decoration: underline !important; text-decoration: underline !important;
border: none !important; border: none !important;
white-space: normal;
} }
.v2.register-choice-v2-audit .wrapper-copy-inline { .v2.register-choice-v2-audit .wrapper-copy-inline {
height: 70px !important; height: 70px !important;
width: 100% !important; width: 100% !important;
display: flex !important; display: flex !important;
} }
.v2.register-choice-v2-audit .wrapper-copy { .v2.register-choice-v2-audit .wrapper-copy {
width: 70% !important; width: 70% !important;
height: auto !important; height: auto !important;
} }
.v2.page-header { .v2.page-header {
padding-bottom: 0; padding: 0;
} }
.v2 img { .v2 img {
margin-top: 20px; margin-top: 20px;
margin-left: 5px; margin-left: 5px;
} }
.v2 .donation-link { .v2 .donation-link {
font-weight: bold !important; font-weight: bold !important;
} }
@media (min-width: 320px) {
.v2.register-choice-certificate, .v2.register-choice-certificate,
.v2.register-choice-donate, .v2.register-choice-donate,
.v2.register-choice-view { .v2.register-choice-view {
width: 100%; width: 100%;
} }
.v2 .wrapper-copy-inline {
max-height: 115px; .v2.register-choice-donate {
} border-color: #D7548E !important;
.v2.register-choice-v2-audit .wrapper-copy-inline { }
display: block !important;
} .v2 .wrapper-copy-inline {
.v2.register-choice-v2-audit .copy-inline { max-height: 115px;
width: 100% !important; }
}
.v2.register-choice-v2-audit .list-actions { .v2.register-choice-v2-audit .wrapper-copy-inline {
width: 100% !important; display: block !important;
margin-top: 20px !important; }
text-align: center !important;
} .v2.register-choice-v2-audit .copy-inline {
.v2 .wrapper-copy-inline .wrapper-copy { width: 100% !important;
width: 100% !important; }
.v2.register-choice-v2-audit .list-actions {
width: 100% !important;
margin-top: 20px !important;
text-align: center !important;
}
.v2 .wrapper-copy-inline .wrapper-copy {
width: 100% !important;
}
.v2 input{
font-size: 15px !important;
}
.v2 button {
background-color: rgb(0, 103, 0);
border-color: rgb(0, 103, 0);
border-radius: 2px;
box-shadow: rgb(0, 77, 0) 0px 2px 1px 0px;
cursor: pointer;
font-family: "Open Sans";
height: auto;
margin-right: 4px;
margin-top: 0px;
padding: 10px 15px;
width: initial;
background-image: none !important;
font-size: 14px !important;
font-weight: 500 !important;
&:hover, &:focus {
background-color: #009b00 !important;
border-color: #009b00;
box-shadow: #004d00 0px 2px 1px 0px;
} }
.v2 .donation-link, .v2 input { }
width: 100% !important;
font-size: 15px !important; .savings-message {
margin-top: 10px;
font-size: 11px;
}
@media screen and (min-width: 375px) {
.savings-message {
font-size: 13px;
margin-left: 16px;
} }
.v2 img { }
display: none;
.v2 .donation-link, .v2 input, .v2 button {
width: 100%;
}
.v2 img {
display: none;
}
.v2 .deco-divider {
display: none;
}
.v2 .visual-reference {
width: 38%;
}
@media (min-width: 420px) {
.v2 button {
height: 45px;
font-size: 16px !important;
} }
} }
@media (min-width: 768px) { @media (min-width: 768px) {
.v2.register-choice-certificate, .v2.register-choice-certificate,
.v2.register-choice-donate { .v2.register-choice-donate {
width: 48% !important; width: 46.5% !important;
display: inline-block; display: inline-block;
min-height: 250px; min-height: 270px;
} }
.v2.register-choice-v2-audit .wrapper-copy-inline { .v2.register-choice-v2-audit .wrapper-copy-inline {
display: flex !important; display: flex !important;
} }
.v2.register-choice-v2-audit .copy-inline { .v2.register-choice-v2-audit .copy-inline {
width: 40% !important; width: 40% !important;
} }
.v2.register-choice-v2-audit .list-actions { .v2.register-choice-v2-audit .list-actions {
margin-top: 0 !important; margin-top: 0 !important;
text-align: right !important; text-align: right !important;
} }
.v2 .wrapper-copy-inline .wrapper-copy { .v2 .wrapper-copy-inline .wrapper-copy {
width: 58% !important; width: 100% !important;
} }
.v2 .donation-link, .v2 input {
.v2 input {
font-size: 15px !important; font-size: 15px !important;
width: 55% !important;
} }
.v2 .donation-link, .v2.register-choice-certificate button {
margin-top: 20px;
width: initial;
}
.v2.register-choice-v2-audit input {
width: 100% !important;
}
.v2.register-choice-view { .v2.register-choice-view {
height: 250px; height: 250px;
} }
.v2 img { .v2 img {
display: initial; display: initial;
} }
.v2.register-choice { .v2.register-choice {
margin: 0 2% 20px 0; margin: 0 2% 20px 0;
} }
.v2.deco-divider { .v2.register-choice-donate .wrapper-copy-inline .wrapper-copy, .v2.register-choice-certificate .wrapper-copy-inline .wrapper-copy {
width: 3% !important; width: 60%;
box-sizing: border-box;
float: left;
display: inline-block;
height: 400px;
margin: 0px 0 40px 0 !important;
border-left: 4px solid #f5f5f5 !important;
border-top: none !important;
} }
}
@media (min-width: 320px) { .v2.register-choice-view .wrapper-copy-inline .wrapper-copy {
.v2 .visual-reference { width: 100%;
width: 38%;
} }
}
@media (min-width: 768px) {
@media (min-width: 320px) { .v2.register-choice {
.v2.register-choice-donate .wrapper-copy-inline .wrapper-copy, .v2.register-choice-certificate .wrapper-copy-inline .wrapper-copy { padding: 15px !important;
width: 60%;
}
}
@media (min-width: 768px) {
.v2.register-choice-donate .wrapper-copy-inline .wrapper-copy, .v2.register-choice-certificate .wrapper-copy-inline .wrapper-copy {
width: 60%;
}
} }
@media (min-width: 320px) {
.v2.register-choice-view .wrapper-copy-inline .wrapper-copy { .v2.register-choice-donate .wrapper-copy-inline .wrapper-copy, .v2.register-choice-certificate .wrapper-copy-inline .wrapper-copy {
width: 100%; width: 60%;
}
} }
@media (min-width: 320px) {
.v2.register-choice { .v2.register-choice {
padding: 15px !important; padding: 20px !important;
}
} }
@media (min-width: 768px) {
.v2.register-choice { .v2.register-choice.register-choice-view {
padding: 20px !important; margin-right: 0;
}
.v2.register-choice.register-choice-view {
margin-right: 0;
}
} }
@media screen and (min-width: 769px) {
.v2.register-choice .list-actions:last-child { .v2.register-choice .list-actions:last-child {
float: left; float: left;
width: 100%; width: 100%;
margin-top: 0px; margin-top: 0px;
}
} }
@media screen and (min-width: 769px) {
.v2.register-choice .action-select { .v2.register-choice .action-select {
width: 100% !important; width: 100% !important;
}
} }
.v2 .donation-link:hover, .v2 .donation-link:hover,
.v2 .donation-link:focus { .v2 .donation-link:focus {
background-color: #D7548E !important; background-color: #D7548E !important;
color: white !important; color: white !important;
text-decoration: none; text-decoration: none;
} }
.v2 .donation-link:hover { .v2 .donation-link:hover {
cursor: pointer; cursor: pointer;
} }
.v2 .copy li { .v2 .copy li {
margin-bottom: 5px; margin-bottom: 5px;
} }
.v2.register-choice .copy-inline { .v2.register-choice .copy-inline {
width: 100%; width: 100%;
} }
.v2.register-choice-donate {
border-color: #D7548E !important;
}
.v2 .register-choice-view { .v2 .register-choice-view {
border-color: #2991c3 !important; border-color: #2991c3 !important;
} }
.v2 .visual-reference { .v2 .visual-reference {
vertical-align: top; vertical-align: top;
} }
.v2 .wrapper-copy-inline .wrapper-copy ul { .v2 .wrapper-copy-inline .wrapper-copy ul {
margin-top: 0px; margin-top: 0px;
padding-left: 30px; padding-left: 30px;
} }
.v2 .img-certificate { .v2 .img-certificate {
border: 2px solid #009b00 !important; border: 2px solid #009b00 !important;
float: right;
height: 120px;
width: auto;
margin-top: 0 !important;
display: none;
} }
.v2 .img-donate { .v2 .img-donate {
margin-top: 0;
float: right;
border: 2px solid #D7548E !important; border: 2px solid #D7548E !important;
display: none;
} }
.v2 .img-view { .v2 .img-view {
border: 2px solid #2991c3 !important; border: 2px solid #2991c3 !important;
} }
.v2.register-choice .title { .v2.register-choice .title {
width: 100%; width: 100%;
margin-bottom: 20px; margin-bottom: 20px;
} }
.v2.register-choice.register-choice-view .action-select { .v2.register-choice.register-choice-view .action-select {
border: 1px solid transparent !important; border: 1px solid transparent !important;
border-radius: 3px; border-radius: 3px;
} }
.v2.register-choice.register-choice-view .action-select input {
.v2.register-choice.register-choice-view .action-select button {
border: 1px solid transparent !important; border: 1px solid transparent !important;
} }
.v2.register-choice.register-choice-view .action-select:hover { .v2.register-choice.register-choice-view .action-select:hover {
border: 1px solid #0075b4 !important; border: 1px solid #0075b4 !important;
} }
.v2.deco-divider { .v2.deco-divider {
display: none !important; width: 3% !important;
box-sizing: border-box;
float: left;
display: inline-block;
height: 250px;
margin: 0px 0 40px 0 !important;
border-left: 4px solid #f5f5f5 !important; border-top:none !important;
.copy {
position: absolute;
top: 110px !important;
left: calc(50% - 40px) !important;
margin-left: 20px;
background: white;
text-align: center;
color: #474747;
width: 10px;
padding: 0 !important;
}
}
}
@media (min-width: 835px) {
.v2.register-choice-certificate,
.v2.register-choice-donate {
min-height: 250px;
}
}
@media (min-width: 1024px) {
.v2 .donation-link {
width: 55%;
}
.v2.deco-divider .copy {
margin-left: 15px;
} }
} }
@media (min-width: 1064px) {
.v2.register-choice-certificate,
.v2.register-choice-donate {
min-height: 260px;
}
.v2 .img-certificate, .v2 .img-donate {
display: initial;
}
.v2 .donation-link, .v2.register-choice-certificate button {
margin-top: -22px !important;
}
}
\ No newline at end of file
...@@ -75,7 +75,7 @@ from openedx.core.djangolib.markup import HTML, Text ...@@ -75,7 +75,7 @@ from openedx.core.djangolib.markup import HTML, Text
<h3 class="title v1"> <h3 class="title v1">
${title_content} ${title_content}
</h3> </h3>
<!-- This div was added as part of the LEARNER-1312 experiment. The v2 class should be removed if the experiment is implemented--> <!-- This div was added as part of the LEARNER-1726 experiment. The v2 class should be removed if the experiment is implemented-->
<h3 class="title v2 hidden"> <h3 class="title v2 hidden">
Next, Select Your Learning Path Next, Select Your Learning Path
</h3> </h3>
...@@ -86,7 +86,7 @@ from openedx.core.djangolib.markup import HTML, Text ...@@ -86,7 +86,7 @@ from openedx.core.djangolib.markup import HTML, Text
b_tag_kwargs = {'b_start': HTML('<b>'), 'b_end': HTML('</b>')} b_tag_kwargs = {'b_start': HTML('<b>'), 'b_end': HTML('</b>')}
%> %>
% if "verified" in modes: % if "verified" in modes:
<!-- This div was added as part of the LEARNER-1312 experiment. The v2 class should be removed if the experiment is implemented--> <!-- This div was added as part of the LEARNER-1726 experiment. The v2 class should be removed if the experiment is implemented-->
<div class="register-choice register-choice-certificate v2 hidden"> <div class="register-choice register-choice-certificate v2 hidden">
<h4 class="title">Pursue a Verified Certificate</h4> <h4 class="title">Pursue a Verified Certificate</h4>
<div class="wrapper-copy-inline"> <div class="wrapper-copy-inline">
...@@ -102,7 +102,14 @@ from openedx.core.djangolib.markup import HTML, Text ...@@ -102,7 +102,14 @@ from openedx.core.djangolib.markup import HTML, Text
<li class="action action-select"> <li class="action action-select">
<input type="hidden" name="contribution" value="${min_price}" /> <input type="hidden" name="contribution" value="${min_price}" />
<!-- The class verified_mode should be added to this selector if the experiment is implemented--> <!-- The class verified_mode should be added to this selector if the experiment is implemented-->
<input type="submit" name="verified_mode" value="Upgrade to a Certificate ($${min_price} USD)" /> <div class="upgradev1">
<input type="submit" name="verified_mode" value="Upgrade to a Certificate ($${min_price} USD)" />
</div>
<div class="upgradev2 hidden">
<button type="submit" name="verified_mode">Upgrade to a Certificate (<del>$${min_price} USD</del>)</button>
<br>
<div class="savings-message">Save 5% if you upgrade now! ($${int(min_price * .95)} USD)</div>
</div>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -192,41 +199,41 @@ from openedx.core.djangolib.markup import HTML, Text ...@@ -192,41 +199,41 @@ from openedx.core.djangolib.markup import HTML, Text
<span class="deco-divider v1"> <span class="deco-divider v1">
<span class="copy">${_("or")}</span> <span class="copy">${_("or")}</span>
</span> </span>
<!-- This div was added as part of the LEARNER-1312 experiment. The v2 class should be removed if the experiment is implemented--> <!-- This div was added as part of the LEARNER-1726 experiment. The v2 class should be removed if the experiment is implemented-->
<span class="deco-divider v2 hidden"> <span class="deco-divider v2 hidden">
<span class="copy">${_("or")}</span> <span class="copy">${_("or")}</span>
</span> </span>
<!-- This div was added as part of the LEARNER-1312 experiment. The v2 class should be removed if the experiment is implemented--> <!-- This div was added as part of the LEARNER-1726 experiment. The v2 class should be removed if the experiment is implemented-->
<div class="register-choice register-choice-donate v2 hidden"> <div class="register-choice register-choice-donate v2 hidden">
<h4 class="title"> <h4 class="title">
Donate to Support our Non-Profit Mission I Don't Want to Upgrade or Donate Today
</h4> </h4>
<div class="wrapper-copy-inline"> <div class="wrapper-copy-inline">
<div class="wrapper-copy"> <div class="wrapper-copy">
Any amount will support our mission to make the world's best education more accessible. If you do not want to add a certificate or donate to edX's mission today, you can skip this step for now and continue to the course.
</div> </div>
<img src="/static/images/edx-home-graphic.png" class="visual-reference img-donate" alt="Visual of two hands forming a heart shape" > <img src="/static/images/edx-home-graphic.png" class="visual-reference img-donate" alt="Visual of two hands forming a heart shape" >
</div> </div>
<div class="copy-inline"> <div class="copy-inline">
<ul class="list-actions"> <ul class="list-actions">
<li class="action action-select"> <li class="action action-select">
<a class="donation-link" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=MJUBGL54QTCTA">Donate and Continue to Course</a> <a class="donation-link" href="/dashboard">Continue to Course</a>
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>
<!-- This div was added as part of the LEARNER-1312 experiment. The v2 class should be removed if the experiment is implemented--> <!-- This div was added as part of the LEARNER-1726 experiment. The v2 class should be removed if the experiment is implemented-->
<div class="register-choice register-choice-v2-audit register-choice-view v2 hidden"> <div class="register-choice register-choice-v2-audit register-choice-view v2 hidden">
<h4 class="title">I Don't Want to Upgrade or Donate Today</h4> <h4 class="title">Donate to Support our Non-Profit Mission</h4>
<div class="wrapper-copy-inline"> <div class="wrapper-copy-inline">
<div class="wrapper-copy"> <div class="wrapper-copy">
If you do not want to buy a certificate or donate to edX's mission today, you can skip this step for now and continue to the course. Even if you are not interested in pursuing a Verified Certificate, a donation helps edX continue to work towards its non-profit mission of making the world's best education more accessible to learners everywhere.
</div> </div>
<div class="copy-inline"> <div class="copy-inline">
<ul class="list-actions"> <ul class="list-actions">
<input type="submit" name="audit_mode" value="Continue to Course"> <input type="submit" name="audit_mode" action="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=AG9VK2LC29L5Y" value="Donate and Continue to Course">
</ul> </ul>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment