Skip to content

Commit 3dcfdfb

Browse files
authored
Merge pull request #543 from topcoder-platform/TCA-996_404-cert-page
TCA-996 404 cert page -> dev
2 parents c167986 + 1dacb5e commit 3dcfdfb

39 files changed

+763
-532
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
$tca-certif-aspect-ratio: 1.25715;
1+
$tca-certif-aspect-ratio: 1.2571;

src-ts/lib/svgs/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { ReactComponent as SocialIconYoutube } from './social-yt-icon.svg'
2121
import { ReactComponent as TooltipArrowIcon } from './tooltip-arrow.svg'
2222
import { ReactComponent as TcAcademyLogoSvg } from './tc-academy-logo.svg'
2323
import { ReactComponent as TCAcademyLogoWhiteSvg } from './tc-academy-logo-white.svg'
24+
import { ReactComponent as TCAcademyLogoMixedSvg } from './tc-academy-logo-mixed.svg'
2425
import { ReactComponent as TcLogoSvg } from './tc-logo.svg'
2526
import { ReactComponent as TCLogoSvg } from './tc-logo-white.svg'
2627
import { ReactComponent as FccLogoSvg } from './vendor-fcc-logo.svg'
@@ -49,6 +50,7 @@ export {
4950
IconCheck,
5051
TcAcademyLogoSvg,
5152
TCAcademyLogoWhiteSvg,
53+
TCAcademyLogoMixedSvg,
5254
TcLogoSvg,
5355
TCLogoSvg,
5456
FccLogoSvg,

src-ts/lib/svgs/tc-academy-logo-mixed.svg

Lines changed: 24 additions & 0 deletions
Loading
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
@import '../../../../lib/styles/includes';
2+
3+
.wrap {
4+
display: flex;
5+
height: 100%;
6+
z-index: 1;
7+
overflow: hidden;
8+
9+
@include ltemd {
10+
border: 1px dashed $blue-25;
11+
border-radius: 8px;
12+
}
13+
> svg {
14+
position: absolute;
15+
top: 50%;
16+
left: 0;
17+
width: 100%;
18+
height: auto;
19+
display: block;
20+
z-index: -1;
21+
transform: translateY(-50%);
22+
23+
@include ltemd {
24+
:global(.rect-border) {
25+
display: none;
26+
}
27+
}
28+
}
29+
}
30+
31+
.details {
32+
width: 55%;
33+
padding: calc($space-mx + $space-lg);
34+
display: flex;
35+
flex-direction: column;
36+
flex: 1;
37+
38+
&Inner {
39+
max-width: 385px;
40+
flex: 1;
41+
display: flex;
42+
flex-direction: column;
43+
}
44+
45+
h2 {
46+
color: $blue-25;
47+
}
48+
49+
h3 {
50+
font-size: 48px;
51+
line-height: 50px;
52+
font-weight: 500;
53+
color: $tc-white;
54+
margin-top: $space-sm;
55+
56+
:global(.nw) {
57+
white-space: nowrap;
58+
}
59+
}
60+
}
61+
62+
.logos {
63+
margin-top: auto;
64+
display: flex;
65+
}
66+
67+
.logo {
68+
display: flex;
69+
align-items: center;
70+
height: 52px;
71+
72+
svg {
73+
width: auto;
74+
75+
}
76+
&.whiteLogo svg > path {
77+
fill: $tc-white;
78+
}
79+
}
80+
81+
.divider {
82+
width: $border;
83+
background: $black-10;
84+
margin: 0 $space-lg;
85+
flex: 0 0 auto;
86+
}
87+
88+
.rightSide {
89+
width: 45%;
90+
91+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import { FC } from 'react'
2+
import classNames from 'classnames'
3+
4+
import { TCAcademyLogoMixedSvg, TcLogoSvg } from '../../../../lib'
5+
import { CertificateNotFoundContent } from '../../learn-lib'
6+
7+
import { ReactComponent as BackgroundSvg } from './bg.svg'
8+
import styles from './CertificateNotFound.module.scss'
9+
10+
const CertificateNotFound: FC<{}> = () => (
11+
<div className={styles.wrap}>
12+
<BackgroundSvg />
13+
<div className={styles.details}>
14+
<div className={styles.detailsInner}>
15+
<h2 className='details'>Topcoder Academy</h2>
16+
<h3>
17+
Certificate
18+
{' '}
19+
<span className='nw'>not found</span>
20+
</h3>
21+
<CertificateNotFoundContent className='mobile-hide' />
22+
<div className={styles.logos}>
23+
<div className={classNames(styles.logo, styles.whiteLogo)}>
24+
<TcLogoSvg />
25+
</div>
26+
<div className={styles.divider} />
27+
<div className={styles.logo}>
28+
<TCAcademyLogoMixedSvg />
29+
</div>
30+
</div>
31+
</div>
32+
</div>
33+
<div className={styles.rightSide} />
34+
</div>
35+
)
36+
37+
export default CertificateNotFound
Lines changed: 38 additions & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as CertificateNotFound } from './CertificateNotFound'

0 commit comments

Comments
 (0)