Skip to content

Commit 626a503

Browse files
committed
TCA-1131 - add preview watermark
1 parent 27a7fac commit 626a503

File tree

5 files changed

+21
-0
lines changed

5 files changed

+21
-0
lines changed

src-ts/tools/learn/learn-lib/hiring-manager-view/HiringManagerView.module.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,22 @@
3434
background: url('./bg-curve-white.png') no-repeat center bottom / 100vw, $tc-qa-grad;
3535
}
3636

37+
&.asPreview {
38+
position: relative;
39+
z-index: 1;
40+
&:before {
41+
content: "";
42+
display: block;
43+
position: absolute;
44+
top: 0;
45+
left: 0;
46+
width: 100%;
47+
height: 100%;
48+
background: url('./bg-curve-white.png') no-repeat center bottom / 100vw, url('./preview-watermark.png') no-repeat top left / cover;
49+
z-index: -1;
50+
}
51+
}
52+
3753
.heroInner {
3854
display: flex;
3955
gap: $space-mx;

src-ts/tools/learn/learn-lib/hiring-manager-view/HiringManagerView.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export interface HiringManagerViewProps {
5454
certification?: TCACertification
5555
completedAt?: string
5656
completionUuid?: string
57+
isPreview?: boolean
5758
isModalView?: boolean
5859
isMemberVerified?: boolean
5960
isOwner?: boolean
@@ -154,6 +155,7 @@ const HiringManagerView: FC<HiringManagerViewProps> = (props: HiringManagerViewP
154155
className={classNames(
155156
styles.hero,
156157
styles[`hero-${certificationCategory?.track.toLowerCase() || 'dev'}`],
158+
props.isPreview && styles.asPreview,
157159
)}
158160
>
159161
<ContentLayout outerClass={props.isModalView ? styles.contentOuter : ''}>
41.2 KB
Loading

src-ts/tools/learn/tca-certificate/user-certification-view/UserCertificationPreview.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ const UserCertificationPreview: FC<{}> = () => {
4848
enrollment={placeholderEnrollment}
4949
certification={certification}
5050
profile={placeholderUserProfile}
51+
isPreview
5152
/>
5253
</>
5354
)

src-ts/tools/learn/tca-certificate/user-certification-view/UserCertificationViewBase.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ interface UserCertificationViewBaseProps {
2828
certification?: TCACertification
2929
enrollment?: TCACertificationEnrollmentBase
3030
enrollmentError?: boolean
31+
isPreview?: boolean
3132
profile?: UserProfile
3233
}
3334

@@ -82,6 +83,7 @@ const UserCertificationViewBase: FC<UserCertificationViewBaseProps> = (props: Us
8283
userName={props.enrollment.userName}
8384
isOwner={isOwnProfile}
8485
validationUrl={validationUrl}
86+
isPreview={props.isPreview}
8587
/>
8688
</div>
8789
)}

0 commit comments

Comments
 (0)