Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

.completed {
background: $tc-white;
border: 1px solid $black-20;
border: 2px solid $turq-75;
}

.cardHeader {
Expand Down Expand Up @@ -48,6 +48,11 @@
display: flex;
align-items: center;

@include ltexs {
display: grid;
grid-template-columns: 30px 1fr;
}

>svg {
color: $blue-140;
margin-right: $space-xs;
Expand Down Expand Up @@ -103,6 +108,29 @@
a:nth-child(2) {
margin-left: $space-sm;
}

.completedCTAs {
display: flex;
justify-content: space-between;
align-items: flex-end;

@include ltexs {
flex-direction: column;
align-items: flex-start;
}

.completedLabel {
background-color: $turq-75;
padding: $space-xs $space-sm;
border-radius: $space-xs;
color: $black-100;
font-weight: $font-weight-medium;

@include ltexs {
margin-top: $space-lg;
}
}
}
}

.infoText {
Expand Down
12 changes: 8 additions & 4 deletions src-ts/tools/learn/welcome/courses-card/CoursesCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ const CoursesCard: FC<CoursesCardProps> = (props: CoursesCardProps) => {
switch (status) {
case UserCertificationProgressStatus.completed:
return (
<>
<Button buttonStyle='primary' size='xs' label='View Certificate' route={certifRoute} />
<Button buttonStyle='secondary' size='xs' label='Details' route={detailsRoute} />
</>
<div className={styles.completedCTAs}>
<div>
<Button buttonStyle='primary' size='xs' label='View Certificate' route={certifRoute} />
<Button buttonStyle='secondary' size='xs' label='Details' route={detailsRoute} />

</div>
<div className={styles.completedLabel}>Completed</div>
</div>
)
case UserCertificationProgressStatus.inProgress:
return <Button buttonStyle='primary' size='xs' label='Resume' route={resumeRoute} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
border-radius: 8px;
overflow: auto;

@include ltesm {
padding: $space-xxl $space-lg;
}

.cardHeader {
display: flex;
align-items: center;
Expand All @@ -30,6 +34,11 @@
display: flex;
align-items: center;

@include ltexs {
display: grid;
grid-template-columns: 30px 1fr;
}

>svg {
margin-right: $space-xs;
color: $blue-140;
Expand Down Expand Up @@ -63,7 +72,7 @@

.completed {
background: $tc-white;
border: 1px solid $black-20;
border: 2px solid $turq-75;
}

.separatorBar {
Expand All @@ -86,6 +95,29 @@
.cardBottom {
margin-top: $space-lg;

.completedCTAs {
display: flex;
justify-content: space-between;
align-items: flex-end;

@include ltesm {
flex-direction: column;
align-items: flex-start;
}

.completedLabel {
background-color: $turq-75;
padding: $space-xs $space-sm;
border-radius: $space-xs;
color: $black-100;
font-weight: $font-weight-medium;

@include ltesm {
margin-top: $space-lg;
}
}
}

.certCTAButtons {
a:first-child {
margin-right: $space-sm;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@ const TCCertCard: FC<TCCertCardProps> = (props: TCCertCardProps) => {

if (isCompleted) {
return (
<div className={styles.certCTAButtons}>
{getCtaBtn('primary', 'View Certificate', getTCACertificateUrl(dashedName))}
{getCtaBtn('secondary', 'Details', getTCACertificationPath(dashedName))}
<div className={styles.completedCTAs}>
<div className={styles.certCTAButtons}>
{getCtaBtn('primary', 'View Certificate', getTCACertificateUrl(dashedName))}
{getCtaBtn('secondary', 'Details', getTCACertificationPath(dashedName))}
</div>
<div className={styles.completedLabel}>Completed</div>
</div>
)
}
Expand Down