Skip to content
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
8 changes: 4 additions & 4 deletions src-ts/tools/learn/learn-lib/wave-hero/WaveHero.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
}
}

&-inner {
padding: calc($space-xxxxl + $space-sm) 0 $space-lg;
@include contentWidth;
Expand Down Expand Up @@ -47,13 +47,13 @@
flex-direction: column;
}
}

&-card-col {
flex: 0 0 auto;
}

&-text {
@extend .body-medium-normal;
margin-top: $space-xxl;
margin-top: $space-sm;
}
}
2 changes: 1 addition & 1 deletion src-ts/tools/learn/learn-lib/wave-hero/WaveHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface WaveHeroProps {
children?: ReactNode
text: string
theme?: 'light'
title: string
title: ReactNode
}

const WaveHero: FC<WaveHeroProps> = (props: WaveHeroProps) => {
Expand Down
15 changes: 10 additions & 5 deletions src-ts/tools/learn/welcome/WelcomePage.module.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
@import '../../../lib/styles/includes';

.hero-wrap {
svg:global(.tca-logo) {
margin-bottom: $space-xxl;
max-width: calc(100% - 70px);
}

:global(.hero-card-col) {
width: 43.5%;
max-width: 600px;

@include ltemd {
width: 100%;
max-width: none;
Expand All @@ -15,7 +20,7 @@
.courses-section {
padding: $space-xxxxl 0;
position: relative;

@include ltemd {
padding-top: $space-xxl;
}
Expand All @@ -38,12 +43,12 @@
@include ltelg {
grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 576px) {
grid-template-columns: repeat(1, 1fr);
}

@include ltemd {
margin-top: $space-xxl;
}
}
}
8 changes: 7 additions & 1 deletion src-ts/tools/learn/welcome/WelcomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {

import { CoursesCard } from './courses-card'
import { ProgressBlock } from './progress-block'
import { ReactComponent as TcAcademyFullLogoSvg } from './tca-full-logo.svg'
import styles from './WelcomePage.module.scss'

const WelcomePage: FC<{}> = () => {
Expand All @@ -30,7 +31,12 @@ const WelcomePage: FC<{}> = () => {
<Portal portalId='page-subheader-portal-el'>
<div className={styles['hero-wrap']}>
<WaveHero
title='Welcome to Topcoder ACADEMY'
title={(
<>
<TcAcademyFullLogoSvg className='tca-logo' />
Welcome!
</>
)}
text={`
The Topcoder Academy will provide you with learning opportunities
in the form of guided learning paths.
Expand Down
24 changes: 24 additions & 0 deletions src-ts/tools/learn/welcome/tca-full-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.