Skip to content

Commit 8dab0d0

Browse files
authored
Merge pull request #536 from topcoder-platform/TCA-1077
TCA-1077 free promo
2 parents a9a44fd + 6ca1843 commit 8dab0d0

File tree

12 files changed

+102
-27
lines changed

12 files changed

+102
-27
lines changed

src-ts/lib/styles/mixins/_layout.mixins.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
}
4444

4545
@mixin scrollbar {
46+
4647
// firefox's solution for "customizing" scrollbars
4748
& {
4849
scrollbar-width: thin;
@@ -67,3 +68,20 @@
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+
}

src-ts/tools/learn/certification-details/certification-details-sidebar/CertificationDetailsSidebar.module.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@
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
}

src-ts/tools/learn/certification-details/certification-details-sidebar/CertificationDetailsSidebar.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff 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-
&nbsp;until April 30&nbsp;
102+
<strong className={styles.freeLabel}>FREE</strong>
103+
<span className='body-main-bold'>&nbsp;until April 30&nbsp;</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
)}

src-ts/tools/learn/certification-details/enrollment-page/enrollment-sidebar/EnrollmentSidebar.module.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
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) {

src-ts/tools/learn/certification-details/enrollment-page/enrollment-sidebar/EnrollmentSidebar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ interface EnrollmentSidebarProps {
1313
const 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}>

src-ts/tools/learn/learn-lib/data-providers/tca-certifications-provider/tca-certification-progress/tca-certification-progress.model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

src-ts/tools/learn/welcome/tc-certifications/TCCertifications.module.scss

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@
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

@@ -57,6 +58,28 @@
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;

src-ts/tools/learn/welcome/tc-certifications/TCCertifications.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
&nbsp;
56+
<span className='body-large'>Certifications are free until April 30th.</span>
57+
</div>
5358

5459
<div className={styles.certsList}>
5560
{
Loading
Loading

src-ts/tools/learn/welcome/tc-certifications/cert-card/TCCertCard.module.scss

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
@include ltemd {
2020
align-items: flex-start;
21+
22+
>svg {
23+
max-width: 60px;
24+
max-height: 56px;
25+
}
2126
}
2227

2328
.cardTitleWrap {
@@ -26,6 +31,10 @@
2631
flex: 1;
2732
margin-left: $space-xxl;
2833

34+
@include ltesm {
35+
margin-left: $space-lg;
36+
}
37+
2938
>p {
3039
text-align: left;
3140
}
@@ -57,15 +66,30 @@
5766
}
5867
}
5968

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+
}
6993
}
7094
}
7195
}

src-ts/tools/learn/welcome/tc-certifications/cert-card/TCCertCard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ const TCCertCard: FC<TCCertCardProps> = (props: TCCertCardProps) => {
136136
)
137137
}
138138
</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>
140143
</div>
141144

142145
{renderProgressBar()}

0 commit comments

Comments
 (0)