Skip to content

Commit 37b4ea6

Browse files
committed
TCA-710 TCACert card updates
1 parent 737a6b4 commit 37b4ea6

File tree

5 files changed

+34
-4
lines changed

5 files changed

+34
-4
lines changed

src-ts/tools/learn/learn-lib/data-providers/tca-certifications-provider/tca-certifications.provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function useGetAllTCACertificationsMOCK(): TCACertificationsProviderData
4646
sequentialCourses: false,
4747
status: 'active',
4848
certificationCategoryId: '',
49-
skills: ['HTML', 'CSS', 'JavaScript'],
49+
skills: ['HTML', 'CSS', 'JavaScript', 'HTML', 'CSS', 'JavaScript', 'HTML', 'CSS', 'JavaScript', 'HTML', 'CSS', 'JavaScript', 'HTML', 'CSS', 'JavaScript'],
5050
},
5151
{
5252
id: 2,

src-ts/tools/learn/welcome/courses-card/CoursesCard.module.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
flex-direction: column;
1111

1212
width: 100%;
13-
min-height: 225px;
1413

1514
@include ltemd {
1615
padding: $space-lg;
@@ -54,6 +53,11 @@
5453
font-size: 14px;
5554
line-height: 22px;
5655
color: $black-60;
56+
margin-right: $space-lg;
57+
58+
&:last-child {
59+
margin-right: 0;
60+
}
5761
}
5862
}
5963
}

src-ts/tools/learn/welcome/courses-card/CoursesCard.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ const CoursesCard: FC<CoursesCardProps> = (props: CoursesCardProps) => {
8686
<div className={styles.cardHeaderTitleWrap}>
8787
<p className='body-medium-medium'>{props.certification.title}</p>
8888
<div className={styles.subTitleWrap}>
89+
<IconSolid.DocumentTextIcon width={16} height={16} />
90+
<em>
91+
{/* {props.certification.estimatedCompletionTime} */}
92+
{' modules'}
93+
</em>
8994
<IconSolid.ClockIcon width={16} height={16} />
9095
<em>
9196
{props.certification.completionHours}

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
>svg {
3232
margin-right: $space-xs;
33+
color: $blue-140;
3334
}
3435
}
3536
}
@@ -48,10 +49,12 @@
4849

4950
.skills {
5051
display: flex;
52+
flex-wrap: wrap;
5153
margin: $space-sm 0;
5254

5355
>div {
5456
margin-right: $space-sm;
57+
margin-bottom: $space-sm;
5558

5659
&:last-child {
5760
margin-right: 0;
@@ -68,5 +71,9 @@
6871
.infoText {
6972
font-style: italic;
7073
color: $black-60;
71-
margin-right: $space-sm;
74+
margin-right: $space-lg;
75+
76+
&:last-child {
77+
margin-right: 0;
78+
}
7279
}

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { FC, memo, ReactNode } from 'react'
22
import classNames from 'classnames'
33

4-
import { FccLogoBlackSvg, IconLevel1, IconLevel2, IconLevel3 } from '../../../../../lib'
4+
import { FccLogoBlackSvg, IconLevel1, IconLevel2, IconLevel3, IconSolid } from '../../../../../lib'
55
import { TCACertification } from '../../../learn-lib/data-providers/tca-certifications-provider'
66
import { SkillLabel } from '../../skill'
77
import { ReactComponent as TCACertBadgeDEV1 } from '../assets/web-dev-cert-badge-1.svg'
@@ -34,6 +34,20 @@ const TCCertCard: FC<TCCertCardProps> = (props: TCCertCardProps) => {
3434
<span className={classNames('body-small', styles.infoText)}>
3535
{props.certification.learnerLevel}
3636
</span>
37+
<IconSolid.DocumentTextIcon width={16} height={16} />
38+
<span className={classNames('body-small', styles.infoText)}>
39+
{/* {props.certification.estimatedCompletionTime} */}
40+
{' courses'}
41+
</span>
42+
<IconSolid.ClockIcon width={16} height={16} />
43+
<span className={classNames('body-small', styles.infoText)}>
44+
{props.certification.estimatedCompletionTime}
45+
{' hours'}
46+
</span>
47+
<IconSolid.CurrencyDollarIcon width={16} height={16} />
48+
<span className={classNames('body-small', styles.infoText)}>
49+
{' One time payment'}
50+
</span>
3751
</div>
3852
</div>
3953
<div className={styles.newLabel}>NEW</div>

0 commit comments

Comments
 (0)