File tree Expand file tree Collapse file tree 12 files changed +102
-27
lines changed
learn-lib/data-providers/tca-certifications-provider/tca-certification-progress
welcome/tc-certifications Expand file tree Collapse file tree 12 files changed +102
-27
lines changed Original file line number Diff line number Diff line change 4343}
4444
4545@mixin scrollbar {
46+
4647 // firefox's solution for "customizing" scrollbars
4748 & {
4849 scrollbar-width : thin ;
6768 }
6869 }
6970}
71+
72+ @mixin freeLabel {
73+ font-size : 24px ;
74+ line-height : 32px ;
75+ font-weight : $font-weight-bold ;
76+ font-style : normal ;
77+ background-color : $orange-100 ;
78+ padding : 2px $space-sm ;
79+ border-radius : 4px ;
80+ color : $black-100 ;
81+ display : inline-block ;
82+
83+ @include ltesm {
84+ font-size : 20px ;
85+ line-height : 28px ;
86+ }
87+ }
Original file line number Diff line number Diff line change 5757 text-decoration : line-through ;
5858 color : $black-40 ;
5959 }
60+
61+ :global(.body-main-bold ) {
62+ font-style : normal ;
63+ }
64+ }
65+
66+ .freeLabel {
67+ @include freeLabel ;
6068 }
6169 }
6270}
Original file line number Diff line number Diff line change @@ -99,17 +99,9 @@ const CertificationDetailsSidebar: FC<CertificationDetailsSidebarProps> = (props
9999 < IconSolid . CurrencyDollarIcon />
100100 </ span >
101101 < span className = 'quote-main' >
102- < strong > Free </ strong >
103- until April 30
102+ < strong className = { styles . freeLabel } > FREE </ strong >
103+ < span className = 'body-main-bold' > until April 30 </ span >
104104 < span className = 'strike' > $20</ span >
105- < Tooltip
106- content = { renderTooltipContents ( < IconSolid . CurrencyDollarIcon /> , [
107- 'Introductory low pricing' ,
108- ] ) }
109- place = 'bottom'
110- trigger = { < IconOutline . InformationCircleIcon /> }
111- triggerOn = 'hover'
112- />
113105 </ span >
114106 </ li >
115107 ) }
Original file line number Diff line number Diff line change 99.header {
1010 text-align : center ;
1111
12- h3 {
13- color : $blue-140 ;
12+ .freeLabel {
13+ @include freeLabel ;
14+
15+ margin-bottom : $space-sm ;
1416 }
1517
1618 :global (.strike ) {
Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ interface EnrollmentSidebarProps {
1313const EnrollmentSidebar : FC < EnrollmentSidebarProps > = ( props : EnrollmentSidebarProps ) => (
1414 < StickySidebar className = { styles . wrap } >
1515 < div className = { styles . header } >
16- < h3 className = 'marketing' > Free </ h3 >
16+ < div className = { styles . freeLabel } > FREE </ div >
1717 < span className = 'strike' > $20</ span >
18- < strong className = 'overline' > Total payment</ strong >
1918 </ div >
2019 < hr />
2120 < div className = { styles . form } >
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export interface TCACertificationProgress extends LearnModelBase {
1414 completionUuid : string
1515 coursesCount : number
1616 topcoderCertification : TCACertification
17+ topcoderCertificationId : number
1718 status : TCACertificationProgressStatus
1819 completedAt : null | Date
1920 certificationProgress : number
Original file line number Diff line number Diff line change 2929 flex-direction : column ;
3030 position : relative ;
3131 padding : $space-xxxxl ;
32- margin : $space-mx 0 ;
32+ margin : $space-mx 0 0 ;
3333 background-image : url (" ./assets/certs-banner-bg.png" );
3434 background-size : cover ;
35- border-radius : 8px ;
35+ border-top-left-radius : 8px ;
36+ border-top-right-radius : 8px ;
3637
3738 @include ltemd {
3839 padding : 88px $space-lg $space-lg ;
39- margin : $space-lg 0 ;
40+ margin : $space-lg 0 0 ;
4041 background-image : url (" ./assets/certs-banner-bg-mobile.png" );
4142 }
4243
5758 }
5859 }
5960
61+ .freeBanner {
62+ display : flex ;
63+ align-items : center ;
64+ padding : $space-lg $space-xxxxl ;
65+ margin : 0 0 $space-mx ;
66+ background-image : url (" ./assets/free-banner-bg.png" );
67+ background-size : cover ;
68+ border-bottom-left-radius : 8px ;
69+ border-bottom-right-radius : 8px ;
70+
71+ @include ltemd {
72+ padding : $space-lg $space-xxl ;
73+ margin-bottom : $space-xxl ;
74+ background-image : url (" ./assets/free-banner-bg-mobile.png" );
75+
76+ >span {
77+ font-size : 14px ;
78+ line-height : 20px ;
79+ }
80+ }
81+ }
82+
6083 .certsList {
6184 display : grid ;
6285 grid-template-columns : 1fr 1fr ;
Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ const TCCertifications: FC<TCCertificationsProps> = (props: TCCertificationsProp
5050 of our pilot Certification program. Click on a certification below to learn more.
5151 </ p >
5252 </ div >
53+ < div className = { styles . freeBanner } >
54+ < strong className = 'body-large-bold' > FREE!</ strong >
55+
56+ < span className = 'body-large' > Certifications are free until April 30th.</ span >
57+ </ div >
5358
5459 < div className = { styles . certsList } >
5560 {
You can’t perform that action at this time.
0 commit comments