Skip to content

TCA-1077 free promo #536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2023
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
18 changes: 18 additions & 0 deletions src-ts/lib/styles/mixins/_layout.mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
}

@mixin scrollbar {

// firefox's solution for "customizing" scrollbars
& {
scrollbar-width: thin;
Expand All @@ -67,3 +68,20 @@
}
}
}

@mixin freeLabel {
font-size: 24px;
line-height: 32px;
font-weight: $font-weight-bold;
font-style: normal;
background-color: $orange-100;
padding: 2px $space-sm;
border-radius: 4px;
color: $black-100;
display: inline-block;

@include ltesm {
font-size: 20px;
line-height: 28px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@
text-decoration: line-through;
color: $black-40;
}

:global(.body-main-bold) {
font-style: normal;
}
}

.freeLabel {
@include freeLabel;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,9 @@ const CertificationDetailsSidebar: FC<CertificationDetailsSidebarProps> = (props
<IconSolid.CurrencyDollarIcon />
</span>
<span className='quote-main'>
<strong>Free</strong>
&nbsp;until April 30&nbsp;
<strong className={styles.freeLabel}>FREE</strong>
<span className='body-main-bold'>&nbsp;until April 30&nbsp;</span>
<span className='strike'>$20</span>
<Tooltip
content={renderTooltipContents(<IconSolid.CurrencyDollarIcon />, [
'Introductory low pricing',
])}
place='bottom'
trigger={<IconOutline.InformationCircleIcon />}
triggerOn='hover'
/>
</span>
</li>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
.header {
text-align: center;

h3 {
color: $blue-140;
.freeLabel {
@include freeLabel;

margin-bottom: $space-sm;
}

:global(.strike) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ interface EnrollmentSidebarProps {
const EnrollmentSidebar: FC<EnrollmentSidebarProps> = (props: EnrollmentSidebarProps) => (
<StickySidebar className={styles.wrap}>
<div className={styles.header}>
<h3 className='marketing'>Free</h3>
<div className={styles.freeLabel}>FREE</div>
<span className='strike'>$20</span>
<strong className='overline'>Total payment</strong>
</div>
<hr />
<div className={styles.form}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface TCACertificationProgress extends LearnModelBase {
completionUuid: string
coursesCount: number
topcoderCertification: TCACertification
topcoderCertificationId: number
status: TCACertificationProgressStatus
completedAt: null | Date
certificationProgress: number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@
flex-direction: column;
position: relative;
padding: $space-xxxxl;
margin: $space-mx 0;
margin: $space-mx 0 0;
background-image: url("./assets/certs-banner-bg.png");
background-size: cover;
border-radius: 8px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;

@include ltemd {
padding: 88px $space-lg $space-lg;
margin: $space-lg 0;
margin: $space-lg 0 0;
background-image: url("./assets/certs-banner-bg-mobile.png");
}

Expand All @@ -57,6 +58,28 @@
}
}

.freeBanner {
display: flex;
align-items: center;
padding: $space-lg $space-xxxxl;
margin: 0 0 $space-mx;
background-image: url("./assets/free-banner-bg.png");
background-size: cover;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;

@include ltemd {
padding: $space-lg $space-xxl;
margin-bottom: $space-xxl;
background-image: url("./assets/free-banner-bg-mobile.png");

>span {
font-size: 14px;
line-height: 20px;
}
}
}

.certsList {
display: grid;
grid-template-columns: 1fr 1fr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ const TCCertifications: FC<TCCertificationsProps> = (props: TCCertificationsProp
of our pilot Certification program. Click on a certification below to learn more.
</p>
</div>
<div className={styles.freeBanner}>
<strong className='body-large-bold'>FREE!</strong>
&nbsp;
<span className='body-large'>Certifications are free until April 30th.</span>
</div>

<div className={styles.certsList}>
{
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@

@include ltemd {
align-items: flex-start;

>svg {
max-width: 60px;
max-height: 56px;
}
}

.cardTitleWrap {
Expand All @@ -26,6 +31,10 @@
flex: 1;
margin-left: $space-xxl;

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

>p {
text-align: left;
}
Expand Down Expand Up @@ -57,15 +66,30 @@
}
}

.newLabel {
padding: 3px 4px;
background-color: $green-140;
font-weight: 500;
font-size: 11px;
line-height: 10px;
color: $tc-white;
border-radius: 2px;
margin-bottom: $space-xl;
.cardLabels {
display: flex;
align-items: flex-start;

.newLabel {
font-weight: 500;
font-size: 11px;
line-height: 10px;
border-radius: 2px;
margin-bottom: $space-xl;
background-color: $green-140;
padding: 3px $space-xs;
color: $tc-white;
}

.freeLabel {
@include freeLabel;

margin-left: $space-sm;
padding: 3px $space-xs;
font-weight: 500;
font-size: 11px;
line-height: 10px;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ const TCCertCard: FC<TCCertCardProps> = (props: TCCertCardProps) => {
)
}
</div>
<div className={styles.newLabel}>NEW</div>
<div className={styles.cardLabels}>
<div className={styles.newLabel}>NEW</div>
<div className={styles.freeLabel}>FREE</div>
</div>
</div>

{renderProgressBar()}
Expand Down