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 43
43
}
44
44
45
45
@mixin scrollbar {
46
+
46
47
// firefox's solution for "customizing" scrollbars
47
48
& {
48
49
scrollbar-width : thin ;
67
68
}
68
69
}
69
70
}
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 57
57
text-decoration : line-through ;
58
58
color : $black-40 ;
59
59
}
60
+
61
+ :global(.body-main-bold ) {
62
+ font-style : normal ;
63
+ }
64
+ }
65
+
66
+ .freeLabel {
67
+ @include freeLabel ;
60
68
}
61
69
}
62
70
}
Original file line number Diff line number Diff line change @@ -99,17 +99,9 @@ const CertificationDetailsSidebar: FC<CertificationDetailsSidebarProps> = (props
99
99
< IconSolid . CurrencyDollarIcon />
100
100
</ span >
101
101
< 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 >
104
104
< 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
- />
113
105
</ span >
114
106
</ li >
115
107
) }
Original file line number Diff line number Diff line change 9
9
.header {
10
10
text-align : center ;
11
11
12
- h3 {
13
- color : $blue-140 ;
12
+ .freeLabel {
13
+ @include freeLabel ;
14
+
15
+ margin-bottom : $space-sm ;
14
16
}
15
17
16
18
:global (.strike ) {
Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ interface EnrollmentSidebarProps {
13
13
const EnrollmentSidebar : FC < EnrollmentSidebarProps > = ( props : EnrollmentSidebarProps ) => (
14
14
< StickySidebar className = { styles . wrap } >
15
15
< div className = { styles . header } >
16
- < h3 className = 'marketing' > Free </ h3 >
16
+ < div className = { styles . freeLabel } > FREE </ div >
17
17
< span className = 'strike' > $20</ span >
18
- < strong className = 'overline' > Total payment</ strong >
19
18
</ div >
20
19
< hr />
21
20
< div className = { styles . form } >
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export interface TCACertificationProgress extends LearnModelBase {
14
14
completionUuid : string
15
15
coursesCount : number
16
16
topcoderCertification : TCACertification
17
+ topcoderCertificationId : number
17
18
status : TCACertificationProgressStatus
18
19
completedAt : null | Date
19
20
certificationProgress : number
Original file line number Diff line number Diff line change 29
29
flex-direction : column ;
30
30
position : relative ;
31
31
padding : $space-xxxxl ;
32
- margin : $space-mx 0 ;
32
+ margin : $space-mx 0 0 ;
33
33
background-image : url (" ./assets/certs-banner-bg.png" );
34
34
background-size : cover ;
35
- border-radius : 8px ;
35
+ border-top-left-radius : 8px ;
36
+ border-top-right-radius : 8px ;
36
37
37
38
@include ltemd {
38
39
padding : 88px $space-lg $space-lg ;
39
- margin : $space-lg 0 ;
40
+ margin : $space-lg 0 0 ;
40
41
background-image : url (" ./assets/certs-banner-bg-mobile.png" );
41
42
}
42
43
57
58
}
58
59
}
59
60
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
+
60
83
.certsList {
61
84
display : grid ;
62
85
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
50
50
of our pilot Certification program. Click on a certification below to learn more.
51
51
</ p >
52
52
</ 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 >
53
58
54
59
< div className = { styles . certsList } >
55
60
{
Original file line number Diff line number Diff line change 18
18
19
19
@include ltemd {
20
20
align-items : flex-start ;
21
+
22
+ >svg {
23
+ max-width : 60px ;
24
+ max-height : 56px ;
25
+ }
21
26
}
22
27
23
28
.cardTitleWrap {
26
31
flex : 1 ;
27
32
margin-left : $space-xxl ;
28
33
34
+ @include ltesm {
35
+ margin-left : $space-lg ;
36
+ }
37
+
29
38
>p {
30
39
text-align : left ;
31
40
}
57
66
}
58
67
}
59
68
60
- .newLabel {
61
- padding : 3px 4px ;
62
- background-color : $green-140 ;
63
- font-weight : 500 ;
64
- font-size : 11px ;
65
- line-height : 10px ;
66
- color : $tc-white ;
67
- border-radius : 2px ;
68
- margin-bottom : $space-xl ;
69
+ .cardLabels {
70
+ display : flex ;
71
+ align-items : flex-start ;
72
+
73
+ .newLabel {
74
+ font-weight : 500 ;
75
+ font-size : 11px ;
76
+ line-height : 10px ;
77
+ border-radius : 2px ;
78
+ margin-bottom : $space-xl ;
79
+ background-color : $green-140 ;
80
+ padding : 3px $space-xs ;
81
+ color : $tc-white ;
82
+ }
83
+
84
+ .freeLabel {
85
+ @include freeLabel ;
86
+
87
+ margin-left : $space-sm ;
88
+ padding : 3px $space-xs ;
89
+ font-weight : 500 ;
90
+ font-size : 11px ;
91
+ line-height : 10px ;
92
+ }
69
93
}
70
94
}
71
95
}
Original file line number Diff line number Diff line change @@ -136,7 +136,10 @@ const TCCertCard: FC<TCCertCardProps> = (props: TCCertCardProps) => {
136
136
)
137
137
}
138
138
</ div >
139
- < div className = { styles . newLabel } > NEW</ div >
139
+ < div className = { styles . cardLabels } >
140
+ < div className = { styles . newLabel } > NEW</ div >
141
+ < div className = { styles . freeLabel } > FREE</ div >
142
+ </ div >
140
143
</ div >
141
144
142
145
{ renderProgressBar ( ) }
You can’t perform that action at this time.
0 commit comments