Commit 04de913d by Ahsan Ulhaq

Updated Styling for Courses and Existing Messaging

ECOM-2435
parent b50daf5f
...@@ -314,6 +314,12 @@ ...@@ -314,6 +314,12 @@
color: $action-primary-fg; color: $action-primary-fg;
} }
%btn-pl-white-base{
@extend %btn-pl-default-base;
background-color: $action-primary-fg;
color: $action-primary-bg;
}
%btn-pl-green-base { %btn-pl-green-base {
@extend %btn-pl-default-base; @extend %btn-pl-default-base;
background-color: darken($green-d1,10%); background-color: darken($green-d1,10%);
......
...@@ -251,6 +251,10 @@ ...@@ -251,6 +251,10 @@
border-bottom: 4px solid $border-color-l4; border-bottom: 4px solid $border-color-l4;
padding-bottom: $baseline; padding-bottom: $baseline;
.course-container{
border: 1px solid $border-color-l4;
border-radius: 3px;
}
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
border-bottom: none; border-bottom: none;
...@@ -528,7 +532,7 @@ ...@@ -528,7 +532,7 @@
} }
.enter-course { .enter-course {
@extend %btn-pl-primary-base; @extend %btn-pl-white-base;
@include float(right); @include float(right);
&.archived { &.archived {
...@@ -672,20 +676,43 @@ ...@@ -672,20 +676,43 @@
} }
.wrapper-extended { .wrapper-extended {
padding: ($baseline/2) 0; padding: ($baseline/4) 0;
.message-copy { .message-copy {
margin-bottom: $baseline; width: flex-grid(9, 12);
display: inline-block;
.message-copy-bold{
font-weight: 600;
}
} }
} }
.action-upgrade-container{
@include float(right);
display: inline-block;
margin-top: ($baseline/2);
}
.action-upgrade { .action-upgrade {
@extend %btn-primary-green; @extend %btn-primary-green;
@include clearfix(); @include clearfix();
position: relative; position: relative;
left: ($baseline/2); left: ($baseline/2);
padding: 8px $baseline 8px ($baseline*2); padding: ($baseline * 0.4) 0 ($baseline * 0.4) ($baseline * 0.75);
.action-upgrade-icon{
@include float(left);
display: inline;
@include margin-right($baseline*0.4);
margin-top: ($baseline/4);
background: url('#{$static-path}/images/icon-sm-verified.png') no-repeat;
background-position: -($baseline*0.3);
background-color: white;
width: ($baseline*0.8);
height: ($baseline*0.7);
}
.deco-graphic { .deco-graphic {
position: absolute; position: absolute;
top: -($baseline/4); top: -($baseline/4);
......
...@@ -42,7 +42,7 @@ from student.helpers import ( ...@@ -42,7 +42,7 @@ from student.helpers import (
% else: % else:
<% mode_class = '' %> <% mode_class = '' %>
% endif % endif
<div class="course-container">
<article class="course${mode_class}"> <article class="course${mode_class}">
<% course_target = reverse('info', args=[unicode(course_overview.id)]) %> <% course_target = reverse('info', args=[unicode(course_overview.id)]) %>
<section class="details"> <section class="details">
...@@ -319,26 +319,22 @@ from student.helpers import ( ...@@ -319,26 +319,22 @@ from student.helpers import (
% if course_mode_info['show_upsell'] and not is_course_blocked: % if course_mode_info['show_upsell'] and not is_course_blocked:
<div class="message message-upsell has-actions is-shown"> <div class="message message-upsell has-actions is-shown">
<div class="wrapper-tip">
<h4 class="message-title">
<span class="value">${_("Challenge Yourself!")}</span>
</h4>
<p class="message-copy">${_("Take this course as an ID-verified student.")}</p>
</div>
<div class="wrapper-extended"> <div class="wrapper-extended">
<p class="message-copy">${_("You can still sign up for an ID verified {cert_name_long} for this course. If you plan to complete the whole course, it is a great way to recognize your achievement. {link_start}Learn more about the verified {cert_name_long}{link_end}.").format(link_start='<a href="{}">'.format(marketing_link('WHAT_IS_VERIFIED_CERT')), link_end="</a>", cert_name_long=cert_name_long)}</p> <p class="message-copy" align="justify">
<b class="message-copy-bold">
<ul class="actions message-actions"> ${_("Pursue a {cert_name_long} to highlight the knowledge and skills you gain in this course.").format(cert_name_long=cert_name_long)}
<li class="action-item"> </b><br>
${_("It's official. It's easily shareable. It's a proven motivator to complete the course. <br>{link_start}Learn more about the verified {cert_name_long}{link_end}.").format(link_start='<a href="{}">'.format(marketing_link('WHAT_IS_VERIFIED_CERT')), link_end="</a>", cert_name_long=cert_name_long)}
</p>
<div class="action-upgrade-container">
<a class="action action-upgrade" href="${reverse('verify_student_upgrade_and_verify', kwargs={'course_id': unicode(course_overview.id)})}" data-course-id="${course_overview.id | h}" data-user="${user.username | h}"> <a class="action action-upgrade" href="${reverse('verify_student_upgrade_and_verify', kwargs={'course_id': unicode(course_overview.id)})}" data-course-id="${course_overview.id | h}" data-user="${user.username | h}">
<img class="deco-graphic" src="${static.url('images/vcert-ribbon-s.png')}" alt="${_("ID Verified Ribbon/Badge")}"> <i class="action-upgrade-icon"></i>
<span class="wrapper-copy"> <span class="wrapper-copy">
<span class="copy" id="upgrade-to-verified">${_("Upgrade to Verified Track")}</span> <span class="copy" id="upgrade-to-verified">${_("Upgrade to Verified")}</span>
</span> </span>
</a> </a>
</li> </div>
</ul>
</div> </div>
</div> </div>
%endif %endif
...@@ -383,6 +379,7 @@ from student.helpers import ( ...@@ -383,6 +379,7 @@ from student.helpers import (
</ul> </ul>
</footer> </footer>
</article> </article>
</div>
</li> </li>
<script> <script>
$( document ).ready(function() { $( document ).ready(function() {
......
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