diff --git a/src-ts/lib/breadcrumb/Breadcrumb.module.scss b/src-ts/lib/breadcrumb/Breadcrumb.module.scss index c93a17794..bec3f036d 100644 --- a/src-ts/lib/breadcrumb/Breadcrumb.module.scss +++ b/src-ts/lib/breadcrumb/Breadcrumb.module.scss @@ -38,7 +38,12 @@ display: inline-flex; align-items: center; padding: 0; - + @include ltesm { + flex: 0 1 auto; + &:first-child { + flex: 1 0 auto; + } + } a { @extend .overline; display: block; diff --git a/src-ts/tools/learn/learn-lib/tca-certificate-preview/tca-certificate/TCACertificate.module.scss b/src-ts/tools/learn/learn-lib/tca-certificate-preview/tca-certificate/TCACertificate.module.scss index 0765e293e..d71602e47 100644 --- a/src-ts/tools/learn/learn-lib/tca-certificate-preview/tca-certificate/TCACertificate.module.scss +++ b/src-ts/tools/learn/learn-lib/tca-certificate-preview/tca-certificate/TCACertificate.module.scss @@ -4,6 +4,17 @@ .wrap { background-color: $tc-white; height: 100%; + position: relative; + z-index: 1; +} + +.background { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: -1; } // TODO: add cross track theme @@ -19,8 +30,6 @@ } &-dev { - background-image: url('./assets/bg-dev.png'); - .certTitle { color: $tc-dev-track-color; } @@ -31,8 +40,6 @@ } &-datascience { - background-image: url('./assets/bg-datascience.png'); - .certTitle { color: $tc-datascience-track-color; } @@ -43,8 +50,6 @@ } &-design { - background-image: url('./assets/bg-design.png'); - .certTitle { color: $tc-design-track-color; } @@ -55,8 +60,6 @@ } &-qa { - background-image: url('./assets/bg-qa.png'); - .certTitle { color: $tc-qa-track-color; } diff --git a/src-ts/tools/learn/learn-lib/tca-certificate-preview/tca-certificate/TCACertificate.tsx b/src-ts/tools/learn/learn-lib/tca-certificate-preview/tca-certificate/TCACertificate.tsx index 1311ec29c..43d716619 100644 --- a/src-ts/tools/learn/learn-lib/tca-certificate-preview/tca-certificate/TCACertificate.tsx +++ b/src-ts/tools/learn/learn-lib/tca-certificate-preview/tca-certificate/TCACertificate.tsx @@ -9,6 +9,7 @@ import { TCACertificateType, TCACertification } from '../../data-providers' import { CertificateBadgeIcon } from '../../dynamic-icons' import { DougSigSvg } from '../../svgs' +import { CertificateBackground } from './certificate-background' import styles from './TCACertificate.module.scss' interface TCACertificateProps { @@ -47,7 +48,8 @@ const TCACertificate: FC = (props: TCACertificateProps) => className={classNames(styles.wrap, props.viewStyle)} ref={props.elRef} > -
+
+
= (props: CertificateBackgroundProps) => ( + +) + +export default CertificateBackground diff --git a/src-ts/tools/learn/learn-lib/tca-certificate-preview/tca-certificate/certificate-background/certificate-bg.svg b/src-ts/tools/learn/learn-lib/tca-certificate-preview/tca-certificate/certificate-background/certificate-bg.svg new file mode 100644 index 000000000..4f04ce340 --- /dev/null +++ b/src-ts/tools/learn/learn-lib/tca-certificate-preview/tca-certificate/certificate-background/certificate-bg.svg @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src-ts/tools/learn/learn-lib/tca-certificate-preview/tca-certificate/certificate-background/index.ts b/src-ts/tools/learn/learn-lib/tca-certificate-preview/tca-certificate/certificate-background/index.ts new file mode 100644 index 000000000..e527ee9c4 --- /dev/null +++ b/src-ts/tools/learn/learn-lib/tca-certificate-preview/tca-certificate/certificate-background/index.ts @@ -0,0 +1 @@ +export { default as CertificateBackground } from './CertificateBackground'