-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Expand file tree
/
Copy pathindex.js
More file actions
99 lines (87 loc) · 2.5 KB
/
index.js
File metadata and controls
99 lines (87 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import React from 'react';
import { useTranslation } from 'react-i18next';
import i18n from 'i18next'
import { Banner } from '../Banner/Banner';
import { BodyText } from '../BodyText/BodyText';
import { CompaniesBanner } from '../CompaniesBanner/CompaniesBanner';
import Element from '../Element/Element';
import Form from '../Form/Form';
import { Image } from '../Image/Image';
import Layout from '../layout';
import SEO from '../seo';
import { SubHeader } from '../SubHeader/SubHeader';
import landingImage from '../../images/haaste.svg';
import mainSEOtags from '../../content/seo/mainSEOtags';
const ChallengePage = ({
lang,
title,
seoDescription,
aboutContent,
joinContent,
}) => {
const { t } = useTranslation();
const isRtl = i18n.dir() === 'rtl';
return (
<Layout>
<SEO
lang={lang}
title={title}
description={seoDescription}
keywords={[
...mainSEOtags,
'fullstackhaaste',
'full stack haaste',
'elisa',
'terveystalo',
'sympa',
'konecranes',
'unity technologies',
'täydennyskoulutus',
'koodari',
'haaste',
]}
/>
<Banner style={{ paddingBottom: 0, overflow: 'hidden' }}>
<div className="container challenge__banner">
<Image
contain
className="col-10"
alt="Stacked cubes with React logo and JavaScript text"
src={landingImage}
/>
</div>
</Banner>
<Element className="container spacing">
<SubHeader
className={`col-10col-8 ${isRtl ? 'push-left-1' : 'push-right-1'}`}
text={t('challengePage:aboutTitle')}
headingLevel="h1"
/>
<Element className={`spacing--after col-6 ${isRtl ? 'push-left-2' : 'push-right-2'}`}>
<BodyText headingFont text={aboutContent} />
<BodyText
className="spacing"
headingFont
heading={{
level: 'h2',
title: t('challengePage:joinTitle'),
}}
text={joinContent}
/>
<Form lang={lang} />
</Element>
</Element>
<CompaniesBanner lang={lang} />
<SubHeader
className="col-10 spacing--after centered"
text="#fullstackchallenge"
headingLevel="h3"
style={{
direction: 'ltr',
fontFamily: 'IBM Plex Mono, monospace'
}}
/>
</Layout>
);
};
export default ChallengePage;