Skip to content

Commit

Permalink
upgrade button designs
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Jan 10, 2025
1 parent d08ea67 commit 91003f5
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 5 deletions.
38 changes: 37 additions & 1 deletion frontend/public/scss/product-page/product-details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,40 @@ body.new-design {
outline: 2px #28977e solid;
}

form.new-design {
text-align: right !important;

.btn-upgrade {
width: 86%;
padding: 15px 30px;
background-image: none !important;

div.upgrade-btn-text {
display: inline-block;
margin-left: 16px;
}

strong {
font-size: 20px;
line-height: 24.2px;
}

span {
font-size: 18px;
line-height: 21.78px;
}

i.shopping-cart-line-icon {
background-image: url("/static/images/shopping-cart-line.svg");
display: inline-block;
filter: invert(100%) sepia(95%) saturate(0%) hue-rotate(19deg) brightness(103%) contrast(100%);
vertical-align: super;
width: 24px;
height: 24px;
}
}
}

form {
margin-bottom: 0;

Expand All @@ -493,12 +527,14 @@ body.new-design {
background-position: 90% 50% !important;
background-repeat: no-repeat !important;
padding: 14px 22px;


}
.btn-upgrade:focus-visible {
border-color: #82192a;
outline: 0;
box-shadow: 0 0 0 0.25rem rgba(177, 65, 82, .5);
}
}
}

ul {
Expand Down
11 changes: 7 additions & 4 deletions frontend/public/src/components/CourseProductDetailEnroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export class CourseProductDetailEnroll extends React.Component<
<form
action="/cart/add/"
method="get"
className="text-center"
className={`text-center ${newCartDesign ? "new-design" : ""}`}
>
<input
type="hidden"
Expand All @@ -351,9 +351,12 @@ export class CourseProductDetailEnroll extends React.Component<
className="btn btn-upgrade btn-gradient-red-to-blue"
disabled={!canUpgrade}
>
<strong>Enroll and Pay</strong>
<br />
<span>for the certificate track</span>
<i className="shopping-cart-line-icon"/>
<div className="upgrade-btn-text">
<strong>Add to Cart</strong>
<br />
<span>to get a Certificate</span>
</div>
</button>
</form>
</div>
Expand Down

0 comments on commit 91003f5

Please sign in to comment.