-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.js
More file actions
351 lines (332 loc) · 11.6 KB
/
index.js
File metadata and controls
351 lines (332 loc) · 11.6 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
import React from 'react'
import './style.scss'
import KEYS from '../../../redux/staticcontent/keys'
import MEDIA_KEYS from '../../../redux/staticmedia/keys'
import SectionImage from '../../../components/SectionImage'
import NewsLetterForm from '../../../components/NewsLetterForm'
import BlockSection from '../../../components/BlockSection'
import DividerLine from '../../../components/DividerLine'
import HeaderSection from '../../../components/HeaderSection'
import { content as selectContent } from '../../../redux/staticcontent/selectors'
import { connect } from 'react-redux'
import { Link, Element } from 'react-scroll'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import Page from '../../PageHOC'
import Button from '../../../components/Button'
//HELMET
import { Helmet } from 'react-helmet'
const textsJSON = require('./texts.json')
const ConnectedHome = (props) => {
return (
<Page
// metaDescKey={KEYS.whoAreWeBody}
className="Connected ConnectedContent ConnectedHome"
pageTitle="Junction 2020 Connected"
// metaDescKey={KEYS.whoAreWeBody}
// ogImageKey={MEDIA_KEYS.homePageHeaderImage}
>
<div className="Connected-parallax">
<Helmet>
<meta charSet="utf-8" />
<title>"Junction 2020 Connected"</title>
<meta
name="keywords"
content="junction 2020 connected, connected, junction, junction 2020"
/>
<meta name="title" content="Junction 2020 Connected" />
<meta property="og:title" content="Junction 2020 Connected" />
<meta name="twitter:title" content="Junction 2020 Connected" />
<meta
name="description"
content="Junction 2020 Connected is a new take on the established concept of a hackathon; participants all over the world can join physical locations hosted by Junction and other organizations, or participate in the event fully online."
/>
<meta
property="og:description"
content="Junction 2020 Connected is a new take on the established concept of a hackathon; participants all over the world can join physical locations hosted by Junction and other organizations, or participate in the event fully online."
/>
<meta
name="twitter:description"
content="Junction 2020 Connected is a new take on the established concept of a hackathon; participants all over the world can join physical locations hosted by Junction and other organizations, or participate in the event fully online."
/>
<meta name="og:type" content="website" />
<meta
property="og:image"
content={require('../../../assets/images/photo-hub-visualisation.svg')}
/>
<meta
name="twitter:image"
content={require('../../../assets/images/photo-hub-visualisation.svg')}
/>
</Helmet>
<Link
activeClass="active"
to="mainContent"
spy={true}
smooth={true}
duration={500}
>
<p>Apply now!</p>
<FontAwesomeIcon icon="angle-down" size="4x" color="#f5d2a2" />
</Link>
<video autoPlay loop muted playsInline className="HeaderVideo--video">
<source
src={require('../../../assets/videos/J2020C_Animation_Main.webm')}
type="video/webm"
></source>
<source
src={require('../../../assets/videos/J2020C_Animation_Main.mp4')}
type="video/mp4"
></source>
Your browser does not support the video tag.
</video>
</div>
<DividerLine />
<Element name="mainContent" />
<HeaderSection
className="ScrollSnapElem wholePage"
logo={require('../../../assets/logos/connected_logo.svg')}
title={props.HeaderTitle}
body={props.HeaderBody}
>
<div className="Button-row">
<Button
className="Button-small Button-apply"
to="https://app.hackjunction.com/events/junction-2020-connected"
text="Apply Here"
/>
<Button className="Button-small" to="/info" text="Event info" />
<Button
className="Button-small"
to="https://hackjunction.com/partners"
text="Partner with us"
/>
</div>
</HeaderSection>
<DividerLine />
<SectionImage
image={{
url: require('../../../assets/images/connected/website5.webp'),
}}
alt="Junction 2020 Connected"
/>
<DividerLine />
<BlockSection
className="ScrollSnapElem"
halfpage
title={props.Section1Title}
subtitle={props.Section1Body}
extra={
<Button
className="Button-default"
to="/info"
text="Learn more about the event"
/>
}
>
<img
src={require('../../../assets/images/photo-hub-visualisation.svg')}
alt="connected-logo-here"
/>
</BlockSection>
<BlockSection
halfpage
inverted
title={props.Section2Title}
subtitle={props.Section2Body}
extra={
<Button
className="Button-default"
to="/hubs"
text="Learn more about hubs"
/>
}
>
<img
src={require('../../../assets/images/hub_globe.svg')}
alt="connected-logo-here"
/>
</BlockSection>
<div className="hide">
{' '}
<DividerLine />
</div>
<BlockSection
halfpage
title={props.Section3Title}
subtitle={props.Section3Body}
className="ScrollSnapElem Footer RemoveBorder"
extra={
<div className="RemoveBorder--flex">
<NewsLetterForm />
</div>
}
>
<img
src={require('../../../assets/images/3part-chain.svg')}
alt="connected-logo-here"
/>
</BlockSection>
<DividerLine />
<div className="YouTube--wrapper">
<div className="YouTube--inside">
<h2>{props.YouTubeWrapperTitle}</h2>
<h3>{props.YouTubeWrapperBody}</h3>
<iframe
style={{
width: '70%',
height: '70%',
}}
src={props.YouTubeWrapperLink}
frameBorder="0"
/>
</div>
</div>
<DividerLine />
<HeaderSection className="ScrollSnapElem PartnerSection" title="Partners">
<div className="logoBGR">
<div class="logoContainer">
<a href="https://www.genelec.com/" target="_blank">
<img
className="BIGLOGO"
src={require('../../../assets/logos/partner/genelec_BW.png')}
alt="connected-logo-here"
/>
</a>
</div>
<div class="logoContainer">
<a href="https://www.espoo.fi/en-US" target="_blank">
<img
className="BIGLOGO"
src={require('../../../assets/logos/partner/espoo_BW.png')}
alt="connected-logo-here"
/>
</a>
</div>
<div class="logoContainer">
<a
href="https://www.businessfinland.fi/suomalaisille-asiakkaille/etusivu/"
target="_blank"
>
<img
className="BIGLOGO"
src={require('../../../assets/logos/partner/bf_BW.png')}
alt="connected-logo-here"
/>
</a>
</div>
<div class="logoContainer">
<a href="https://www.hkscan.com/en/" target="_blank">
<img
className="BIGLOGO"
src={require('../../../assets/logos/partner/hkscan_BW.png')}
alt="connected-logo-here"
/>
</a>
</div>
<div class="logoContainer">
<a href="https://www.pauliggroup.com/" target="_blank">
<img
className="BIGLOGO"
src={require('../../../assets/logos/partner/Paulig_Logo-V-C_neg_SLOGAN_large.png')}
alt="connected-logo-here"
/>
</a>
</div>
<div class="logoContainer">
<a href="https://www.smartly.io/" target="_blank">
<img
className="BIGLOGO"
src={require('../../../assets/logos/partner/smartly_BW.png')}
alt="connected-logo-here"
/>
</a>
</div>
</div>
<div class="logoBGR">
<div class="logoContainer">
<a href="https://aito.ai/" target="_blank">
<img
className="logoIMG"
src={require('../../../assets/logos/partner/aito_BW.png')}
alt="connected-logo-here"
/>
</a>
</div>
<div class="logoContainer">
<a href="https://www.brella.io/" target="_blank">
<img
className="logoIMG"
src={require('../../../assets/logos/partner/brella_BW.png')}
alt="connected-logo-here"
/>
</a>
</div>
<div class="logoContainer">
<a href="https://www.op.fi/" target="_blank">
<img
className="logoIMG"
src={require('../../../assets/logos/partner/op_orange-white.png')}
alt="connected-logo-here"
/>
</a>
</div>
<div class="logoContainer">
<a href="https://www.columbiaroad.com/" target="_blank">
<img
className="logoIMG"
src={require('../../../assets/logos/partner/columbiaroad_BW.png')}
alt="connected-logo-here"
/>
</a>
</div>
<div class="logoContainer">
<a href="https://www.rovio.com/" target="_blank">
<img
className="logoIMG"
src={require('../../../assets/logos/partner/rovio_BW.png')}
alt="connected-logo-here"
/>
</a>
</div>
<div class="logoContainer">
<a href="https://www.hus.fi/" target="_blank">
<img
className="logoIMG"
src={require('../../../assets/logos/partner/hus_white.png')}
alt="connected-logo-here"
/>
</a>
</div>
<div class="logoContainer">
<a href="https://www.justai.nl/" target="_blank">
<img
className="logoIMG"
src={require('../../../assets/logos/partner/justai_white.png')}
alt="connected-logo-here"
/>
</a>
</div>
<div class="logoContainer">
<a href="https://www.d-fence.fi/home" target="_blank">
<img
className="logoIMG"
src={require('../../../assets/logos/partner/dfence_BW.png')}
alt="connected-logo-here"
/>
</a>
</div>
</div>
</HeaderSection>
</Page>
)
}
const mapStateToProps = (state) => {
const content = selectContent(state)
let contentTexts = {}
for (let key of Object.keys(textsJSON)) {
//Find key in strapi if exists, else use fallback in texts.json
contentTexts[key] = content[textsJSON.prefix + key] || textsJSON[key]
}
return contentTexts
}
export default connect(mapStateToProps)(ConnectedHome)