Skip to content

Commit c9de2fd

Browse files
authored
Merge pull request #467 from topcoder-platform/TCA-881
TCA-881 modify jumbo to match design -> TCA-701
2 parents a6070ed + 7d56a3f commit c9de2fd

File tree

7 files changed

+30
-25
lines changed

7 files changed

+30
-25
lines changed

src-ts/tools/learn/learn-lib/wave-hero/WaveHero.module.scss

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,34 @@
33

44
.hero {
55
&-wrap {
6-
background: url('./learn-welcome-bg-curve.png') repeat-x center bottom , $tc-grad15;
7-
background-size: 1440px 40px, auto;
6+
background: url('./learn-welcome-bg-curve.png') repeat-x center bottom, url('./learn-welcome-banner-img.png') no-repeat center, $tc-grad15;
87
overflow: hidden;
9-
padding-bottom: 40px;
8+
padding-bottom: 100px;
9+
1010
@include ltelg {
1111
background-size: 100vw $space-lg, auto;
12-
padding-bottom: $space-lg;
12+
padding-bottom: $space-mx;
1313
}
14+
1415
&:global(.light) {
15-
background: url('./learn-welcome-bg-curve-white.png') repeat-x center bottom , $tc-grad15;
16-
background-size: 1440px 40px, auto;
16+
background: url('./learn-welcome-bg-curve-white.png') repeat-x center bottom / 100vw, url('./learn-welcome-banner-img.png') no-repeat center, $tc-grad15;
17+
1718
@include ltelg {
18-
background-size: 100vw $space-lg, auto;
19+
background: url('./learn-welcome-bg-curve-white.png') repeat-x center bottom / 100vw, url('./learn-welcome-banner-img-mobile.png') no-repeat top, $tc-grad15;
1920
}
2021
}
2122
}
2223

2324
&-inner {
24-
padding: calc($space-xxxxl + $space-sm) 0 $space-lg;
25+
padding: calc($space-mx * 2) 0 $space-lg;
2526
@include contentWidth;
2627

2728
@include ltelg {
2829
padding-bottom: $space-mx;
2930
}
31+
3032
@include ltemd {
31-
padding-top: $space-xxl;
33+
padding-top: calc($space-mx * 4);
3234
padding-bottom: $space-xxl;
3335
}
3436
}
@@ -39,9 +41,21 @@
3941

4042
color: $tc-white;
4143

44+
h1 {
45+
font-size: 80px;
46+
line-height: 72px;
47+
margin-bottom: $space-xxxxl;
48+
49+
@include ltemd {
50+
font-size: 42px;
51+
line-height: 40px;
52+
}
53+
}
54+
4255
@include ltelg {
4356
gap: $space-mx;
4457
}
58+
4559
@include ltemd {
4660
gap: $space-xxl;
4761
flex-direction: column;
@@ -53,7 +67,8 @@
5367
}
5468

5569
&-text {
56-
@extend .body-medium-normal;
70+
@extend .body-large;
5771
margin-top: $space-sm;
72+
max-width: 910px;
5873
}
59-
}
74+
}
Loading
Loading
Loading
-2.07 KB
Loading

src-ts/tools/learn/welcome/WelcomePage.tsx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ import {
1515
import '../../../lib/styles/index.scss'
1616

1717
import { AvailableCoursesList } from './available-courses-list'
18-
import { ProgressBlock } from './progress-block'
1918
import { WhatTCACanDo } from './what-tca-cando'
2019
import { TCCertifications } from './tc-certifications'
21-
import { ReactComponent as TcAcademyFullLogoSvg } from './tca-full-logo.svg'
2220
import styles from './WelcomePage.module.scss'
2321

2422
const WelcomePage: FC = () => {
@@ -40,10 +38,7 @@ const WelcomePage: FC = () => {
4038
<div className={styles['hero-wrap']}>
4139
<WaveHero
4240
title={(
43-
<>
44-
<TcAcademyFullLogoSvg className='tca-logo' />
45-
Welcome!
46-
</>
41+
<>Topcoder Academy</>
4742
)}
4843
text={`
4944
The Topcoder Academy will provide you with learning opportunities
@@ -52,14 +47,7 @@ const WelcomePage: FC = () => {
5247
prepare you to earn on the Topcoder platform.
5348
`}
5449
theme='light'
55-
>
56-
<ProgressBlock
57-
allCertifications={allCertsData.certifications}
58-
userCompletedCertifications={userCertsData.completed}
59-
userInProgressCertifications={userCertsData.inProgress}
60-
ready={coursesReady}
61-
/>
62-
</WaveHero>
50+
/>
6351
</div>
6452
</Portal>
6553

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
// Deprecated components
2+
// TODO: remove it at some point if not needed somewhere else...
13
export { default as ProgressBlock } from './ProgressBlock'

0 commit comments

Comments
 (0)