File tree Expand file tree Collapse file tree 4 files changed +76
-9
lines changed
src-ts/tools/learn/welcome
tc-certifications/cert-card Expand file tree Collapse file tree 4 files changed +76
-9
lines changed Original file line number Diff line number Diff line change 1919
2020.completed {
2121 background : $tc-white ;
22- border : 1 px solid $black-20 ;
22+ border : 2 px solid $turq-75 ;
2323}
2424
2525.cardHeader {
4848 display : flex ;
4949 align-items : center ;
5050
51+ @include ltexs {
52+ display : grid ;
53+ grid-template-columns : 30px 1fr ;
54+ }
55+
5156 >svg {
5257 color : $blue-140 ;
5358 margin-right : $space-xs ;
103108 a :nth-child (2 ) {
104109 margin-left : $space-sm ;
105110 }
111+
112+ .completedCTAs {
113+ display : flex ;
114+ justify-content : space-between ;
115+ align-items : flex-end ;
116+
117+ @include ltexs {
118+ flex-direction : column ;
119+ align-items : flex-start ;
120+ }
121+
122+ .completedLabel {
123+ background-color : $turq-75 ;
124+ padding : $space-xs $space-sm ;
125+ border-radius : $space-xs ;
126+ color : $black-100 ;
127+ font-weight : $font-weight-medium ;
128+
129+ @include ltexs {
130+ margin-top : $space-lg ;
131+ }
132+ }
133+ }
106134}
107135
108136.infoText {
Original file line number Diff line number Diff line change @@ -43,10 +43,14 @@ const CoursesCard: FC<CoursesCardProps> = (props: CoursesCardProps) => {
4343 switch ( status ) {
4444 case UserCertificationProgressStatus . completed :
4545 return (
46- < >
47- < Button buttonStyle = 'primary' size = 'xs' label = 'View Certificate' route = { certifRoute } />
48- < Button buttonStyle = 'secondary' size = 'xs' label = 'Details' route = { detailsRoute } />
49- </ >
46+ < div className = { styles . completedCTAs } >
47+ < div >
48+ < Button buttonStyle = 'primary' size = 'xs' label = 'View Certificate' route = { certifRoute } />
49+ < Button buttonStyle = 'secondary' size = 'xs' label = 'Details' route = { detailsRoute } />
50+
51+ </ div >
52+ < div className = { styles . completedLabel } > Completed</ div >
53+ </ div >
5054 )
5155 case UserCertificationProgressStatus . inProgress :
5256 return < Button buttonStyle = 'primary' size = 'xs' label = 'Resume' route = { resumeRoute } />
Original file line number Diff line number Diff line change 88 border-radius : 8px ;
99 overflow : auto ;
1010
11+ @include ltesm {
12+ padding : $space-xxl $space-lg ;
13+ }
14+
1115 .cardHeader {
1216 display : flex ;
1317 align-items : center ;
3034 display : flex ;
3135 align-items : center ;
3236
37+ @include ltexs {
38+ display : grid ;
39+ grid-template-columns : 30px 1fr ;
40+ }
41+
3342 >svg {
3443 margin-right : $space-xs ;
3544 color : $blue-140 ;
6372
6473.completed {
6574 background : $tc-white ;
66- border : 1 px solid $black-20 ;
75+ border : 2 px solid $turq-75 ;
6776}
6877
6978.separatorBar {
8695.cardBottom {
8796 margin-top : $space-lg ;
8897
98+ .completedCTAs {
99+ display : flex ;
100+ justify-content : space-between ;
101+ align-items : flex-end ;
102+
103+ @include ltesm {
104+ flex-direction : column ;
105+ align-items : flex-start ;
106+ }
107+
108+ .completedLabel {
109+ background-color : $turq-75 ;
110+ padding : $space-xs $space-sm ;
111+ border-radius : $space-xs ;
112+ color : $black-100 ;
113+ font-weight : $font-weight-medium ;
114+
115+ @include ltesm {
116+ margin-top : $space-lg ;
117+ }
118+ }
119+ }
120+
89121 .certCTAButtons {
90122 a :first-child {
91123 margin-right : $space-sm ;
Original file line number Diff line number Diff line change @@ -50,9 +50,12 @@ const TCCertCard: FC<TCCertCardProps> = (props: TCCertCardProps) => {
5050
5151 if ( isCompleted ) {
5252 return (
53- < div className = { styles . certCTAButtons } >
54- { getCtaBtn ( 'primary' , 'View Certificate' , getTCACertificateUrl ( dashedName ) ) }
55- { getCtaBtn ( 'secondary' , 'Details' , getTCACertificationPath ( dashedName ) ) }
53+ < div className = { styles . completedCTAs } >
54+ < div className = { styles . certCTAButtons } >
55+ { getCtaBtn ( 'primary' , 'View Certificate' , getTCACertificateUrl ( dashedName ) ) }
56+ { getCtaBtn ( 'secondary' , 'Details' , getTCACertificationPath ( dashedName ) ) }
57+ </ div >
58+ < div className = { styles . completedLabel } > Completed</ div >
5659 </ div >
5760 )
5861 }
You can’t perform that action at this time.
0 commit comments